Reference documentation and code samples for the AI Platform Notebooks V1 API class Google::Cloud::Notebooks::V1::NotebookService::Rest::Client.
REST client for the NotebookService service.
API v1 service for Cloud AI Platform Notebooks.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the NotebookService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all NotebookService clients ::Google::Cloud::Notebooks::V1::NotebookService::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the NotebookService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_environment
def create_environment(request, options = nil) -> ::Gapic::Operation
def create_environment(parent: nil, environment_id: nil, environment: nil) -> ::Gapic::OperationCreates a new Environment.
def create_environment(request, options = nil) -> ::Gapic::Operationcreate_environment via a request object, either of type
CreateEnvironmentRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::CreateEnvironmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_environment(parent: nil, environment_id: nil, environment: nil) -> ::Gapic::Operationcreate_environment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Format:
projects/{project_id}/locations/{location} -
environment_id (::String) — Required. User-defined unique ID of this environment. The
environment_idmust be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash. - environment (::Google::Cloud::Notebooks::V1::Environment, ::Hash) — Required. The environment to be created.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#create_execution
def create_execution(request, options = nil) -> ::Gapic::Operation
def create_execution(parent: nil, execution_id: nil, execution: nil) -> ::Gapic::OperationCreates a new Execution in a given project and location.
def create_execution(request, options = nil) -> ::Gapic::Operationcreate_execution via a request object, either of type
CreateExecutionRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::CreateExecutionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_execution(parent: nil, execution_id: nil, execution: nil) -> ::Gapic::Operationcreate_execution via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Format:
parent=projects/{project_id}/locations/{location} - execution_id (::String) — Required. User-defined unique ID of this execution.
- execution (::Google::Cloud::Notebooks::V1::Execution, ::Hash) — Required. The execution to be created.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#create_instance
def create_instance(request, options = nil) -> ::Gapic::Operation
def create_instance(parent: nil, instance_id: nil, instance: nil) -> ::Gapic::OperationCreates a new Instance in a given project and location.
def create_instance(request, options = nil) -> ::Gapic::Operationcreate_instance via a request object, either of type
CreateInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::CreateInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_instance(parent: nil, instance_id: nil, instance: nil) -> ::Gapic::Operationcreate_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Format:
parent=projects/{project_id}/locations/{location} - instance_id (::String) — Required. User-defined unique ID of this instance.
- instance (::Google::Cloud::Notebooks::V1::Instance, ::Hash) — Required. The instance to be created.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#create_schedule
def create_schedule(request, options = nil) -> ::Gapic::Operation
def create_schedule(parent: nil, schedule_id: nil, schedule: nil) -> ::Gapic::OperationCreates a new Scheduled Notebook in a given project and location.
def create_schedule(request, options = nil) -> ::Gapic::Operationcreate_schedule via a request object, either of type
CreateScheduleRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::CreateScheduleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_schedule(parent: nil, schedule_id: nil, schedule: nil) -> ::Gapic::Operationcreate_schedule via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Format:
parent=projects/{project_id}/locations/{location} - schedule_id (::String) — Required. User-defined unique ID of this schedule.
- schedule (::Google::Cloud::Notebooks::V1::Schedule, ::Hash) — Required. The schedule to be created.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#delete_environment
def delete_environment(request, options = nil) -> ::Gapic::Operation
def delete_environment(name: nil) -> ::Gapic::OperationDeletes a single Environment.
def delete_environment(request, options = nil) -> ::Gapic::Operationdelete_environment via a request object, either of type
DeleteEnvironmentRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::DeleteEnvironmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_environment(name: nil) -> ::Gapic::Operationdelete_environment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/environments/{environment_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#delete_execution
def delete_execution(request, options = nil) -> ::Gapic::Operation
def delete_execution(name: nil) -> ::Gapic::OperationDeletes execution
def delete_execution(request, options = nil) -> ::Gapic::Operationdelete_execution via a request object, either of type
DeleteExecutionRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::DeleteExecutionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_execution(name: nil) -> ::Gapic::Operationdelete_execution via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/executions/{execution_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#delete_instance
def delete_instance(request, options = nil) -> ::Gapic::Operation
def delete_instance(name: nil) -> ::Gapic::OperationDeletes a single Instance.
def delete_instance(request, options = nil) -> ::Gapic::Operationdelete_instance via a request object, either of type
DeleteInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::DeleteInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_instance(name: nil) -> ::Gapic::Operationdelete_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#delete_schedule
def delete_schedule(request, options = nil) -> ::Gapic::Operation
def delete_schedule(name: nil) -> ::Gapic::OperationDeletes schedule and all underlying jobs
def delete_schedule(request, options = nil) -> ::Gapic::Operationdelete_schedule via a request object, either of type
DeleteScheduleRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::DeleteScheduleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_schedule(name: nil) -> ::Gapic::Operationdelete_schedule via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/schedules/{schedule_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#diagnose_instance
def diagnose_instance(request, options = nil) -> ::Gapic::Operation
def diagnose_instance(name: nil, diagnostic_config: nil) -> ::Gapic::OperationCreates a Diagnostic File and runs Diagnostic Tool given an Instance.
def diagnose_instance(request, options = nil) -> ::Gapic::Operationdiagnose_instance via a request object, either of type
DiagnoseInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::DiagnoseInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def diagnose_instance(name: nil, diagnostic_config: nil) -> ::Gapic::Operationdiagnose_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - diagnostic_config (::Google::Cloud::Notebooks::V1::DiagnosticConfig, ::Hash) — Required. Defines flags that are used to run the diagnostic tool
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_environment
def get_environment(request, options = nil) -> ::Google::Cloud::Notebooks::V1::Environment
def get_environment(name: nil) -> ::Google::Cloud::Notebooks::V1::EnvironmentGets details of a single Environment.
def get_environment(request, options = nil) -> ::Google::Cloud::Notebooks::V1::Environmentget_environment via a request object, either of type
GetEnvironmentRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::GetEnvironmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_environment(name: nil) -> ::Google::Cloud::Notebooks::V1::Environmentget_environment via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/environments/{environment_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::Environment)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_execution
def get_execution(request, options = nil) -> ::Google::Cloud::Notebooks::V1::Execution
def get_execution(name: nil) -> ::Google::Cloud::Notebooks::V1::ExecutionGets details of executions
def get_execution(request, options = nil) -> ::Google::Cloud::Notebooks::V1::Executionget_execution via a request object, either of type
GetExecutionRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::GetExecutionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_execution(name: nil) -> ::Google::Cloud::Notebooks::V1::Executionget_execution via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/executions/{execution_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::Execution)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_instance
def get_instance(request, options = nil) -> ::Google::Cloud::Notebooks::V1::Instance
def get_instance(name: nil) -> ::Google::Cloud::Notebooks::V1::InstanceGets details of a single Instance.
def get_instance(request, options = nil) -> ::Google::Cloud::Notebooks::V1::Instanceget_instance via a request object, either of type
GetInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::GetInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_instance(name: nil) -> ::Google::Cloud::Notebooks::V1::Instanceget_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::Instance)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_instance_health
def get_instance_health(request, options = nil) -> ::Google::Cloud::Notebooks::V1::GetInstanceHealthResponse
def get_instance_health(name: nil) -> ::Google::Cloud::Notebooks::V1::GetInstanceHealthResponseCheck if a notebook instance is healthy.
def get_instance_health(request, options = nil) -> ::Google::Cloud::Notebooks::V1::GetInstanceHealthResponseget_instance_health via a request object, either of type
GetInstanceHealthRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::GetInstanceHealthRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_instance_health(name: nil) -> ::Google::Cloud::Notebooks::V1::GetInstanceHealthResponseget_instance_health via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::GetInstanceHealthResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_schedule
def get_schedule(request, options = nil) -> ::Google::Cloud::Notebooks::V1::Schedule
def get_schedule(name: nil) -> ::Google::Cloud::Notebooks::V1::ScheduleGets details of schedule
def get_schedule(request, options = nil) -> ::Google::Cloud::Notebooks::V1::Scheduleget_schedule via a request object, either of type
GetScheduleRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::GetScheduleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_schedule(name: nil) -> ::Google::Cloud::Notebooks::V1::Scheduleget_schedule via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/schedules/{schedule_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::Schedule)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Rest::Client)
#initialize
def initialize() { |config| ... } -> ClientCreate a new NotebookService REST client object.
- (config) — Configure the NotebookService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Notebooks::V1::NotebookService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Notebooks::V1::NotebookService::Rest::Client.new do |config| config.timeout = 10.0 end
#is_instance_upgradeable
def is_instance_upgradeable(request, options = nil) -> ::Google::Cloud::Notebooks::V1::IsInstanceUpgradeableResponse
def is_instance_upgradeable(notebook_instance: nil, type: nil) -> ::Google::Cloud::Notebooks::V1::IsInstanceUpgradeableResponseCheck if a notebook instance is upgradable.
def is_instance_upgradeable(request, options = nil) -> ::Google::Cloud::Notebooks::V1::IsInstanceUpgradeableResponseis_instance_upgradeable via a request object, either of type
IsInstanceUpgradeableRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::IsInstanceUpgradeableRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def is_instance_upgradeable(notebook_instance: nil, type: nil) -> ::Google::Cloud::Notebooks::V1::IsInstanceUpgradeableResponseis_instance_upgradeable via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
notebook_instance (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - type (::Google::Cloud::Notebooks::V1::UpgradeType) — Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::IsInstanceUpgradeableResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_environments
def list_environments(request, options = nil) -> ::Google::Cloud::Notebooks::V1::ListEnvironmentsResponse
def list_environments(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::Notebooks::V1::ListEnvironmentsResponseLists environments in a project.
def list_environments(request, options = nil) -> ::Google::Cloud::Notebooks::V1::ListEnvironmentsResponselist_environments via a request object, either of type
ListEnvironmentsRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::ListEnvironmentsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_environments(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::Notebooks::V1::ListEnvironmentsResponselist_environments via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Format:
projects/{project_id}/locations/{location} - page_size (::Integer) — Maximum return size of the list call.
- page_token (::String) — A previous returned page token that can be used to continue listing from the last result.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::ListEnvironmentsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_executions
def list_executions(request, options = nil) -> ::Google::Cloud::Notebooks::V1::ListExecutionsResponse
def list_executions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Notebooks::V1::ListExecutionsResponseLists executions in a given project and location
def list_executions(request, options = nil) -> ::Google::Cloud::Notebooks::V1::ListExecutionsResponselist_executions via a request object, either of type
ListExecutionsRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::ListExecutionsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_executions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Notebooks::V1::ListExecutionsResponselist_executions via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Format:
parent=projects/{project_id}/locations/{location} - page_size (::Integer) — Maximum return size of the list call.
- page_token (::String) — A previous returned page token that can be used to continue listing from the last result.
-
filter (::String) — Filter applied to resulting executions. Currently only supports filtering
executions by a specified
schedule_id. Format:schedule_id=<Schedule_ID> - order_by (::String) — Sort by field.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::ListExecutionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_instances
def list_instances(request, options = nil) -> ::Google::Cloud::Notebooks::V1::ListInstancesResponse
def list_instances(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::Notebooks::V1::ListInstancesResponseLists instances in a given project and location.
def list_instances(request, options = nil) -> ::Google::Cloud::Notebooks::V1::ListInstancesResponselist_instances via a request object, either of type
ListInstancesRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::ListInstancesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_instances(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::Notebooks::V1::ListInstancesResponselist_instances via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Format:
parent=projects/{project_id}/locations/{location} - page_size (::Integer) — Maximum return size of the list call.
- page_token (::String) — A previous returned page token that can be used to continue listing from the last result.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::ListInstancesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_schedules
def list_schedules(request, options = nil) -> ::Google::Cloud::Notebooks::V1::ListSchedulesResponse
def list_schedules(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Notebooks::V1::ListSchedulesResponseLists schedules in a given project and location.
def list_schedules(request, options = nil) -> ::Google::Cloud::Notebooks::V1::ListSchedulesResponselist_schedules via a request object, either of type
ListSchedulesRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::ListSchedulesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_schedules(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::Notebooks::V1::ListSchedulesResponselist_schedules via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Format:
parent=projects/{project_id}/locations/{location} - page_size (::Integer) — Maximum return size of the list call.
- page_token (::String) — A previous returned page token that can be used to continue listing from the last result.
- filter (::String) — Filter applied to resulting schedules.
- order_by (::String) — Field to order results by.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::ListSchedulesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#location_client
def location_client() -> Google::Cloud::Location::Locations::Rest::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#operations_client
def operations_client() -> ::Google::Cloud::Notebooks::V1::NotebookService::Rest::OperationsGet the associated client for long-running operations.
#register_instance
def register_instance(request, options = nil) -> ::Gapic::Operation
def register_instance(parent: nil, instance_id: nil) -> ::Gapic::OperationRegisters 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.
def register_instance(request, options = nil) -> ::Gapic::Operationregister_instance via a request object, either of type
RegisterInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::RegisterInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def register_instance(parent: nil, instance_id: nil) -> ::Gapic::Operationregister_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Format:
parent=projects/{project_id}/locations/{location} -
instance_id (::String) — Required. User defined unique ID of this instance. The
instance_idmust be 1 to 63 characters long and contain only lowercase letters, numeric characters, and dashes. The first character must be a lowercase letter and the last character cannot be a dash.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#report_instance_info
def report_instance_info(request, options = nil) -> ::Gapic::Operation
def report_instance_info(name: nil, vm_id: nil, metadata: nil) -> ::Gapic::OperationAllows 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.
def report_instance_info(request, options = nil) -> ::Gapic::Operationreport_instance_info via a request object, either of type
ReportInstanceInfoRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::ReportInstanceInfoRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def report_instance_info(name: nil, vm_id: nil, metadata: nil) -> ::Gapic::Operationreport_instance_info via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - vm_id (::String) — Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
- metadata (::Hash{::String => ::String}) — The metadata reported to Notebooks API. This will be merged to the instance metadata store
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#reset_instance
def reset_instance(request, options = nil) -> ::Gapic::Operation
def reset_instance(name: nil) -> ::Gapic::OperationResets a notebook instance.
def reset_instance(request, options = nil) -> ::Gapic::Operationreset_instance via a request object, either of type
ResetInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::ResetInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def reset_instance(name: nil) -> ::Gapic::Operationreset_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#rollback_instance
def rollback_instance(request, options = nil) -> ::Gapic::Operation
def rollback_instance(name: nil, target_snapshot: nil) -> ::Gapic::OperationRollbacks a notebook instance to the previous version.
def rollback_instance(request, options = nil) -> ::Gapic::Operationrollback_instance via a request object, either of type
RollbackInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::RollbackInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def rollback_instance(name: nil, target_snapshot: nil) -> ::Gapic::Operationrollback_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} -
target_snapshot (::String) — Required. The snapshot for rollback.
Example:
projects/test-project/global/snapshots/krwlzipynril.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#set_instance_accelerator
def set_instance_accelerator(request, options = nil) -> ::Gapic::Operation
def set_instance_accelerator(name: nil, type: nil, core_count: nil) -> ::Gapic::OperationUpdates the guest accelerators of a single Instance.
def set_instance_accelerator(request, options = nil) -> ::Gapic::Operationset_instance_accelerator via a request object, either of type
SetInstanceAcceleratorRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::SetInstanceAcceleratorRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def set_instance_accelerator(name: nil, type: nil, core_count: nil) -> ::Gapic::Operationset_instance_accelerator via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - type (::Google::Cloud::Notebooks::V1::Instance::AcceleratorType) — Required. Type of this accelerator.
-
core_count (::Integer) — Required. Count of cores of this accelerator. Note that not all combinations
of
typeandcore_countare valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#set_instance_labels
def set_instance_labels(request, options = nil) -> ::Gapic::Operation
def set_instance_labels(name: nil, labels: nil) -> ::Gapic::OperationReplaces all the labels of an Instance.
def set_instance_labels(request, options = nil) -> ::Gapic::Operationset_instance_labels via a request object, either of type
SetInstanceLabelsRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::SetInstanceLabelsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def set_instance_labels(name: nil, labels: nil) -> ::Gapic::Operationset_instance_labels via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - labels (::Hash{::String => ::String}) — Labels to apply to this instance. These can be later modified by the setLabels method
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#set_instance_machine_type
def set_instance_machine_type(request, options = nil) -> ::Gapic::Operation
def set_instance_machine_type(name: nil, machine_type: nil) -> ::Gapic::OperationUpdates the machine type of a single Instance.
def set_instance_machine_type(request, options = nil) -> ::Gapic::Operationset_instance_machine_type via a request object, either of type
SetInstanceMachineTypeRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::SetInstanceMachineTypeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def set_instance_machine_type(name: nil, machine_type: nil) -> ::Gapic::Operationset_instance_machine_type via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - machine_type (::String) — Required. The Compute Engine machine type.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#start_instance
def start_instance(request, options = nil) -> ::Gapic::Operation
def start_instance(name: nil) -> ::Gapic::OperationStarts a notebook instance.
def start_instance(request, options = nil) -> ::Gapic::Operationstart_instance via a request object, either of type
StartInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::StartInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def start_instance(name: nil) -> ::Gapic::Operationstart_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#stop_instance
def stop_instance(request, options = nil) -> ::Gapic::Operation
def stop_instance(name: nil) -> ::Gapic::OperationStops a notebook instance.
def stop_instance(request, options = nil) -> ::Gapic::Operationstop_instance via a request object, either of type
StopInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::StopInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def stop_instance(name: nil) -> ::Gapic::Operationstop_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#trigger_schedule
def trigger_schedule(request, options = nil) -> ::Gapic::Operation
def trigger_schedule(name: nil) -> ::Gapic::OperationTriggers execution of an existing schedule.
def trigger_schedule(request, options = nil) -> ::Gapic::Operationtrigger_schedule via a request object, either of type
TriggerScheduleRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::TriggerScheduleRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def trigger_schedule(name: nil) -> ::Gapic::Operationtrigger_schedule via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_instance_config
def update_instance_config(request, options = nil) -> ::Gapic::Operation
def update_instance_config(name: nil, config: nil) -> ::Gapic::OperationUpdate Notebook Instance configurations.
def update_instance_config(request, options = nil) -> ::Gapic::Operationupdate_instance_config via a request object, either of type
UpdateInstanceConfigRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::UpdateInstanceConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_instance_config(name: nil, config: nil) -> ::Gapic::Operationupdate_instance_config via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - config (::Google::Cloud::Notebooks::V1::InstanceConfig, ::Hash) — The instance configurations to be updated.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_instance_metadata_items
def update_instance_metadata_items(request, options = nil) -> ::Google::Cloud::Notebooks::V1::UpdateInstanceMetadataItemsResponse
def update_instance_metadata_items(name: nil, items: nil) -> ::Google::Cloud::Notebooks::V1::UpdateInstanceMetadataItemsResponseAdd/update metadata items for an instance.
def update_instance_metadata_items(request, options = nil) -> ::Google::Cloud::Notebooks::V1::UpdateInstanceMetadataItemsResponseupdate_instance_metadata_items via a request object, either of type
UpdateInstanceMetadataItemsRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::UpdateInstanceMetadataItemsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_instance_metadata_items(name: nil, items: nil) -> ::Google::Cloud::Notebooks::V1::UpdateInstanceMetadataItemsResponseupdate_instance_metadata_items via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - items (::Hash{::String => ::String}) — Metadata items to add/update for the instance.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Notebooks::V1::UpdateInstanceMetadataItemsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_shielded_instance_config
def update_shielded_instance_config(request, options = nil) -> ::Gapic::Operation
def update_shielded_instance_config(name: nil, shielded_instance_config: nil) -> ::Gapic::OperationUpdates the Shielded instance configuration of a single Instance.
def update_shielded_instance_config(request, options = nil) -> ::Gapic::Operationupdate_shielded_instance_config via a request object, either of type
UpdateShieldedInstanceConfigRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::UpdateShieldedInstanceConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_shielded_instance_config(name: nil, shielded_instance_config: nil) -> ::Gapic::Operationupdate_shielded_instance_config via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - shielded_instance_config (::Google::Cloud::Notebooks::V1::Instance::ShieldedInstanceConfig, ::Hash) — ShieldedInstance configuration to be updated.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#upgrade_instance
def upgrade_instance(request, options = nil) -> ::Gapic::Operation
def upgrade_instance(name: nil, type: nil) -> ::Gapic::OperationUpgrades a notebook instance to the latest version.
def upgrade_instance(request, options = nil) -> ::Gapic::Operationupgrade_instance via a request object, either of type
UpgradeInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::UpgradeInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def upgrade_instance(name: nil, type: nil) -> ::Gapic::Operationupgrade_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - type (::Google::Cloud::Notebooks::V1::UpgradeType) — Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#upgrade_instance_internal
def upgrade_instance_internal(request, options = nil) -> ::Gapic::Operation
def upgrade_instance_internal(name: nil, vm_id: nil, type: nil) -> ::Gapic::OperationAllows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.
def upgrade_instance_internal(request, options = nil) -> ::Gapic::Operationupgrade_instance_internal via a request object, either of type
UpgradeInstanceInternalRequest or an equivalent Hash.
- request (::Google::Cloud::Notebooks::V1::UpgradeInstanceInternalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def upgrade_instance_internal(name: nil, vm_id: nil, type: nil) -> ::Gapic::Operationupgrade_instance_internal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id} - vm_id (::String) — Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
- type (::Google::Cloud::Notebooks::V1::UpgradeType) — Optional. The optional UpgradeType. Setting this field will search for additional compute images to upgrade this instance.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.