NotebookServiceAsyncClient(*, credentials: google.auth.credentials.Credentials = None, transport: Union[str, google.cloud.notebooks_v1.services.notebook_service.transports.base.NotebookServiceTransport] = 'grpc_asyncio', client_options: <module 'google.api_core.client_options' from '/workspace/python-notebooks/.nox/docfx/lib/python3.9/site-packages/google/api_core/client_options.py'> = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)
API v1 service for Cloud AI Platform Notebooks.
Properties
transport
Returns the transport used by the client instance.
Returns | |
---|---|
Type | Description |
NotebookServiceTransport | The transport used by the client instance. |
Methods
NotebookServiceAsyncClient
NotebookServiceAsyncClient(*, credentials: google.auth.credentials.Credentials = None, transport: Union[str, google.cloud.notebooks_v1.services.notebook_service.transports.base.NotebookServiceTransport] = 'grpc_asyncio', client_options: <module 'google.api_core.client_options' from '/workspace/python-notebooks/.nox/docfx/lib/python3.9/site-packages/google/api_core/client_options.py'> = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)
Instantiates the notebook service client.
Parameters | |
---|---|
Name | Description |
credentials |
Optional[google.auth.credentials.Credentials]
The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment. |
transport |
Union[str,
The transport to use. If set to None, a transport is chosen automatically. |
client_options |
ClientOptions
Custom options for the client. It won't take effect if a |
Exceptions | |
---|---|
Type | Description |
google.auth.exceptions.MutualTlsChannelError | If mutual TLS transport creation failed for any reason. |
common_billing_account_path
common_billing_account_path(billing_account: str)
Returns a fully-qualified billing_account string.
common_folder_path
common_folder_path(folder: str)
Returns a fully-qualified folder string.
common_location_path
common_location_path(project: str, location: str)
Returns a fully-qualified location string.
common_organization_path
common_organization_path(organization: str)
Returns a fully-qualified organization string.
common_project_path
common_project_path(project: str)
Returns a fully-qualified project string.
create_environment
create_environment(request: Optional[google.cloud.notebooks_v1.types.service.CreateEnvironmentRequest] = None, *, parent: Optional[str] = None, environment: Optional[google.cloud.notebooks_v1.types.environment.Environment] = None, environment_id: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates a new Environment.
Parameters | |
---|---|
Name | Description |
request |
CreateEnvironmentRequest
The request object. Request for creating a notebook environment. |
parent |
Required. Format: |
environment |
Environment
Required. The environment to be created. This corresponds to the |
environment_id |
Required. User-defined unique ID of this environment. The |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Environment Definition of a software environment that is used to start a notebook instance. |
create_execution
create_execution(request: Optional[google.cloud.notebooks_v1.types.service.CreateExecutionRequest] = None, *, parent: Optional[str] = None, execution: Optional[google.cloud.notebooks_v1.types.execution.Execution] = None, execution_id: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates a new Scheduled Notebook in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateExecutionRequest
The request object. Request to create notebook execution |
parent |
Required. Format: |
execution |
Execution
Required. The execution to be created. This corresponds to the |
execution_id |
Required. User-defined unique ID of this execution. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Execution The definition of a single executed notebook. |
create_instance
create_instance(request: Optional[google.cloud.notebooks_v1.types.service.CreateInstanceRequest] = None, *, parent: Optional[str] = None, instance: Optional[google.cloud.notebooks_v1.types.instance.Instance] = None, instance_id: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates a new Instance in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateInstanceRequest
The request object. Request for creating a notebook instance. |
parent |
Required. Format: |
instance |
Instance
Required. The instance to be created. This corresponds to the |
instance_id |
Required. User-defined unique ID of this instance. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
create_schedule
create_schedule(request: Optional[google.cloud.notebooks_v1.types.service.CreateScheduleRequest] = None, *, parent: Optional[str] = None, schedule: Optional[google.cloud.notebooks_v1.types.schedule.Schedule] = None, schedule_id: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates a new Scheduled Notebook in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateScheduleRequest
The request object. Request for created scheduled notebooks |
parent |
Required. Format: |
schedule |
Schedule
Required. The schedule to be created. This corresponds to the |
schedule_id |
Required. User-defined unique ID of this schedule. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Schedule The definition of a schedule. |
delete_environment
delete_environment(request: Optional[google.cloud.notebooks_v1.types.service.DeleteEnvironmentRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes a single Environment.
Parameters | |
---|---|
Name | Description |
request |
DeleteEnvironmentRequest
The request object. Request for deleting a notebook environment. |
name |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty 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 {}. |
delete_execution
delete_execution(request: Optional[google.cloud.notebooks_v1.types.service.DeleteExecutionRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes execution
Parameters | |
---|---|
Name | Description |
request |
DeleteExecutionRequest
The request object. Request for deleting a scheduled notebook execution |
name |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty 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 {}. |
delete_instance
delete_instance(request: Optional[google.cloud.notebooks_v1.types.service.DeleteInstanceRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes a single Instance.
Parameters | |
---|---|
Name | Description |
request |
DeleteInstanceRequest
The request object. Request for deleting a notebook instance. |
name |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty 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 {}. |
delete_schedule
delete_schedule(request: Optional[google.cloud.notebooks_v1.types.service.DeleteScheduleRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes schedule and all underlying jobs
Parameters | |
---|---|
Name | Description |
request |
DeleteScheduleRequest
The request object. Request for deleting an Schedule |
name |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be google.protobuf.empty_pb2.Empty 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 {}. |
environment_path
environment_path(project: str, environment: str)
Returns a fully-qualified environment string.
execution_path
execution_path(project: str, location: str, execution: str)
Returns a fully-qualified execution string.
from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
Parameter | |
---|---|
Name | Description |
filename |
str
The path to the service account private key json file. |
Returns | |
---|---|
Type | Description |
NotebookServiceAsyncClient | The constructed client. |
from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
Parameter | |
---|---|
Name | Description |
info |
dict
The service account private key info. |
Returns | |
---|---|
Type | Description |
NotebookServiceAsyncClient | The constructed client. |
from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
Parameter | |
---|---|
Name | Description |
filename |
str
The path to the service account private key json file. |
Returns | |
---|---|
Type | Description |
NotebookServiceAsyncClient | The constructed client. |
get_environment
get_environment(request: Optional[google.cloud.notebooks_v1.types.service.GetEnvironmentRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Gets details of a single Environment.
Parameters | |
---|---|
Name | Description |
request |
GetEnvironmentRequest
The request object. Request for getting a notebook environment. |
name |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.types.Environment | Definition of a software environment that is used to start a notebook instance. |
get_execution
get_execution(request: Optional[google.cloud.notebooks_v1.types.service.GetExecutionRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Gets details of executions
Parameters | |
---|---|
Name | Description |
request |
GetExecutionRequest
The request object. Request for getting scheduled notebook execution |
name |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.types.Execution | The definition of a single executed notebook. |
get_instance
get_instance(request: Optional[google.cloud.notebooks_v1.types.service.GetInstanceRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Gets details of a single Instance.
Parameters | |
---|---|
Name | Description |
request |
GetInstanceRequest
The request object. Request for getting a notebook instance. |
name |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.types.Instance | The definition of a notebook instance. |
get_instance_health
get_instance_health(request: Optional[google.cloud.notebooks_v1.types.service.GetInstanceHealthRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Check if a notebook instance is healthy.
Parameters | |
---|---|
Name | Description |
request |
GetInstanceHealthRequest
The request object. Request for checking if a notebook instance is healthy. |
name |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.types.GetInstanceHealthResponse | Response for checking if a notebook instance is healthy. |
get_schedule
get_schedule(request: Optional[google.cloud.notebooks_v1.types.service.GetScheduleRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Gets details of schedule
Parameters | |
---|---|
Name | Description |
request |
GetScheduleRequest
The request object. Request for getting scheduled notebook. |
name |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.types.Schedule | The definition of a schedule. |
get_transport_class
get_transport_class()
Returns an appropriate transport class.
instance_path
instance_path(project: str, instance: str)
Returns a fully-qualified instance string.
is_instance_upgradeable
is_instance_upgradeable(request: Optional[google.cloud.notebooks_v1.types.service.IsInstanceUpgradeableRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Check if a notebook instance is upgradable.
Parameters | |
---|---|
Name | Description |
request |
IsInstanceUpgradeableRequest
The request object. Request for checking if a notebook instance is upgradeable. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.types.IsInstanceUpgradeableResponse | Response for checking if a notebook instance is upgradeable. |
list_environments
list_environments(request: Optional[google.cloud.notebooks_v1.types.service.ListEnvironmentsRequest] = None, *, parent: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists environments in a project.
Parameters | |
---|---|
Name | Description |
request |
ListEnvironmentsRequest
The request object. Request for listing environments. |
parent |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.services.notebook_service.pagers.ListEnvironmentsAsyncPager | Response for listing environments. Iterating over this object will yield results and resolve additional pages automatically. |
list_executions
list_executions(request: Optional[google.cloud.notebooks_v1.types.service.ListExecutionsRequest] = None, *, parent: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists executions in a given project and location
Parameters | |
---|---|
Name | Description |
request |
ListExecutionsRequest
The request object. Request for listing scheduled notebook executions. |
parent |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.services.notebook_service.pagers.ListExecutionsAsyncPager | Response for listing scheduled notebook executions Iterating over this object will yield results and resolve additional pages automatically. |
list_instances
list_instances(request: Optional[google.cloud.notebooks_v1.types.service.ListInstancesRequest] = None, *, parent: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists instances in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListInstancesRequest
The request object. Request for listing notebook instances. |
parent |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.services.notebook_service.pagers.ListInstancesAsyncPager | Response for listing notebook instances. Iterating over this object will yield results and resolve additional pages automatically. |
list_schedules
list_schedules(request: Optional[google.cloud.notebooks_v1.types.service.ListSchedulesRequest] = None, *, parent: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Lists schedules in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListSchedulesRequest
The request object. Request for listing scheduled notebook job. |
parent |
Required. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.cloud.notebooks_v1.services.notebook_service.pagers.ListSchedulesAsyncPager | Response for listing scheduled notebook job. Iterating over this object will yield results and resolve additional pages automatically. |
parse_common_billing_account_path
parse_common_billing_account_path(path: str)
Parse a billing_account path into its component segments.
parse_common_folder_path
parse_common_folder_path(path: str)
Parse a folder path into its component segments.
parse_common_location_path
parse_common_location_path(path: str)
Parse a location path into its component segments.
parse_common_organization_path
parse_common_organization_path(path: str)
Parse a organization path into its component segments.
parse_common_project_path
parse_common_project_path(path: str)
Parse a project path into its component segments.
parse_environment_path
parse_environment_path(path: str)
Parses a environment path into its component segments.
parse_execution_path
parse_execution_path(path: str)
Parses a execution path into its component segments.
parse_instance_path
parse_instance_path(path: str)
Parses a instance path into its component segments.
parse_schedule_path
parse_schedule_path(path: str)
Parses a schedule path into its component segments.
register_instance
register_instance(request: Optional[google.cloud.notebooks_v1.types.service.RegisterInstanceRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API.
Parameters | |
---|---|
Name | Description |
request |
RegisterInstanceRequest
The request object. Request for registering a notebook instance. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
report_instance_info
report_instance_info(request: Optional[google.cloud.notebooks_v1.types.service.ReportInstanceInfoRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Allows notebook instances to report their latest instance information to the Notebooks API server. The server will merge the reported information to the instance metadata store. Do not use this method directly.
Parameters | |
---|---|
Name | Description |
request |
ReportInstanceInfoRequest
The request object. Request for notebook instances to report information to Notebooks API. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
reset_instance
reset_instance(request: Optional[google.cloud.notebooks_v1.types.service.ResetInstanceRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Resets a notebook instance.
Parameters | |
---|---|
Name | Description |
request |
ResetInstanceRequest
The request object. Request for reseting a notebook instance |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
rollback_instance
rollback_instance(request: Optional[google.cloud.notebooks_v1.types.service.RollbackInstanceRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Rollbacks a notebook instance to the previous version.
Parameters | |
---|---|
Name | Description |
request |
RollbackInstanceRequest
The request object. Request for rollbacking a notebook instance |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
schedule_path
schedule_path(project: str, location: str, schedule: str)
Returns a fully-qualified schedule string.
set_instance_accelerator
set_instance_accelerator(request: Optional[google.cloud.notebooks_v1.types.service.SetInstanceAcceleratorRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Updates the guest accelerators of a single Instance.
Parameters | |
---|---|
Name | Description |
request |
SetInstanceAcceleratorRequest
The request object. Request for setting instance accelerator. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
set_instance_labels
set_instance_labels(request: Optional[google.cloud.notebooks_v1.types.service.SetInstanceLabelsRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Replaces all the labels of an Instance.
Parameters | |
---|---|
Name | Description |
request |
SetInstanceLabelsRequest
The request object. Request for setting instance labels. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
set_instance_machine_type
set_instance_machine_type(request: Optional[google.cloud.notebooks_v1.types.service.SetInstanceMachineTypeRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Updates the machine type of a single Instance.
Parameters | |
---|---|
Name | Description |
request |
SetInstanceMachineTypeRequest
The request object. Request for setting instance machine type. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
start_instance
start_instance(request: Optional[google.cloud.notebooks_v1.types.service.StartInstanceRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Starts a notebook instance.
Parameters | |
---|---|
Name | Description |
request |
StartInstanceRequest
The request object. Request for starting a notebook instance |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
stop_instance
stop_instance(request: Optional[google.cloud.notebooks_v1.types.service.StopInstanceRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Stops a notebook instance.
Parameters | |
---|---|
Name | Description |
request |
StopInstanceRequest
The request object. Request for stopping a notebook instance |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
trigger_schedule
trigger_schedule(request: Optional[google.cloud.notebooks_v1.types.service.TriggerScheduleRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Triggers execution of an existing schedule.
Parameters | |
---|---|
Name | Description |
request |
TriggerScheduleRequest
The request object. Request for created scheduled notebooks |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Schedule The definition of a schedule. |
update_instance_config
update_instance_config(request: Optional[google.cloud.notebooks_v1.types.service.UpdateInstanceConfigRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Update Notebook Instance configurations.
Parameters | |
---|---|
Name | Description |
request |
UpdateInstanceConfigRequest
The request object. Request for updating instance configurations. |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
update_shielded_instance_config
update_shielded_instance_config(request: Optional[google.cloud.notebooks_v1.types.service.UpdateShieldedInstanceConfigRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Updates the Shielded instance configuration of a single Instance.
Parameters | |
---|---|
Name | Description |
request |
UpdateShieldedInstanceConfigRequest
The request object. Request for updating the Shielded Instance config for a notebook instance. You can only use this method on a stopped instance |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
upgrade_instance
upgrade_instance(request: Optional[google.cloud.notebooks_v1.types.service.UpgradeInstanceRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Upgrades a notebook instance to the latest version.
Parameters | |
---|---|
Name | Description |
request |
UpgradeInstanceRequest
The request object. Request for upgrading a notebook instance |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |
upgrade_instance_internal
upgrade_instance_internal(request: Optional[google.cloud.notebooks_v1.types.service.UpgradeInstanceInternalRequest] = None, *, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.
Parameters | |
---|---|
Name | Description |
request |
UpgradeInstanceInternalRequest
The request object. Request for upgrading a notebook instance from within the VM |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
google.api_core.operation_async.AsyncOperation | An object representing a long-running operation. The result type for the operation will be Instance The definition of a notebook instance. |