Google Cloud Ai Platform V1 Client - Class NotebookExecutionJob (1.5.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 Google\Cloud\AIPlatform\V1\NotebookExecutionJob\DataformRepositorySource

The Dataform Repository pointing to a single file notebook repository.

↳ gcs_notebook_source Google\Cloud\AIPlatform\V1\NotebookExecutionJob\GcsNotebookSource

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

↳ direct_notebook_source Google\Cloud\AIPlatform\V1\NotebookExecutionJob\DirectNotebookSource

The contents of an input notebook file.

↳ notebook_runtime_template_resource_name string

The NotebookRuntimeTemplate to source compute configuration from.

↳ 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.

↳ 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.

↳ encryption_spec Google\Cloud\AIPlatform\V1\EncryptionSpec

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

getDataformRepositorySource

The Dataform Repository pointing to a single file notebook repository.

Returns
Type Description
Google\Cloud\AIPlatform\V1\NotebookExecutionJob\DataformRepositorySource|null

hasDataformRepositorySource

setDataformRepositorySource

The Dataform Repository pointing to a single file notebook repository.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\NotebookExecutionJob\DataformRepositorySource
Returns
Type Description
$this

getGcsNotebookSource

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

Returns
Type Description
Google\Cloud\AIPlatform\V1\NotebookExecutionJob\GcsNotebookSource|null

hasGcsNotebookSource

setGcsNotebookSource

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

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\NotebookExecutionJob\GcsNotebookSource
Returns
Type Description
$this

getDirectNotebookSource

The contents of an input notebook file.

Returns
Type Description
Google\Cloud\AIPlatform\V1\NotebookExecutionJob\DirectNotebookSource|null

hasDirectNotebookSource

setDirectNotebookSource

The contents of an input notebook file.

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\NotebookExecutionJob\DirectNotebookSource
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

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

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
Google\Protobuf\Duration|null

hasExecutionTimeout

clearExecutionTimeout

setExecutionTimeout

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

Parameter
Name Description
var Google\Protobuf\Duration
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
Google\Rpc\Status|null

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
var Google\Rpc\Status
Returns
Type Description
$this

getCreateTime

Output only. Timestamp when this NotebookExecutionJob was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Timestamp when this NotebookExecutionJob was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

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

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
Name Description
var Google\Protobuf\Timestamp
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
Google\Protobuf\Internal\MapField

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
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getEncryptionSpec

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

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

Returns
Type Description
Google\Cloud\AIPlatform\V1\EncryptionSpec|null

hasEncryptionSpec

clearEncryptionSpec

setEncryptionSpec

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

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

Parameter
Name Description
var Google\Cloud\AIPlatform\V1\EncryptionSpec
Returns
Type Description
$this

getNotebookSource

Returns
Type Description
string

getEnvironmentSpec

Returns
Type Description
string

getExecutionSink

Returns
Type Description
string

getExecutionIdentity

Returns
Type Description
string