- 1.30.1 (latest)
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.1
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.64.0
- 0.63.0
- 0.62.0
- 0.61.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.
REST client for the NotebookService service.
The interface for Vertex Notebook service (a.k.a. Colab on Workbench).
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::AIPlatform::V1::NotebookService::Rest::Client.configure do |config| config.timeout = 10.0 end
#assign_notebook_runtime
def assign_notebook_runtime(request, options = nil) -> ::Gapic::Operation
def assign_notebook_runtime(parent: nil, notebook_runtime_template: nil, notebook_runtime: nil, notebook_runtime_id: nil) -> ::Gapic::OperationAssigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.
def assign_notebook_runtime(request, options = nil) -> ::Gapic::Operationassign_notebook_runtime via a request object, either of type
AssignNotebookRuntimeRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::AssignNotebookRuntimeRequest, ::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 assign_notebook_runtime(parent: nil, notebook_runtime_template: nil, notebook_runtime: nil, notebook_runtime_id: nil) -> ::Gapic::Operationassign_notebook_runtime 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. The resource name of the Location to get the NotebookRuntime
assignment. Format:
projects/{project}/locations/{location} - notebook_runtime_template (::String) — Required. The resource name of the NotebookRuntimeTemplate based on which a NotebookRuntime will be assigned (reuse or create a new one).
- notebook_runtime (::Google::Cloud::AIPlatform::V1::NotebookRuntime, ::Hash) — Required. Provide runtime specific information (e.g. runtime owner, notebook id) used for NotebookRuntime assignment.
- notebook_runtime_id (::String) — Optional. User specified ID for the notebook runtime.
- (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.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::AssignNotebookRuntimeRequest.new # Call the assign_notebook_runtime method. result = client.assign_notebook_runtime request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." 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_notebook_runtime_template
def create_notebook_runtime_template(request, options = nil) -> ::Gapic::Operation
def create_notebook_runtime_template(parent: nil, notebook_runtime_template: nil, notebook_runtime_template_id: nil) -> ::Gapic::OperationCreates a NotebookRuntimeTemplate.
def create_notebook_runtime_template(request, options = nil) -> ::Gapic::Operationcreate_notebook_runtime_template via a request object, either of type
CreateNotebookRuntimeTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CreateNotebookRuntimeTemplateRequest, ::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_notebook_runtime_template(parent: nil, notebook_runtime_template: nil, notebook_runtime_template_id: nil) -> ::Gapic::Operationcreate_notebook_runtime_template 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. The resource name of the Location to create the
NotebookRuntimeTemplate. Format:
projects/{project}/locations/{location} - notebook_runtime_template (::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate, ::Hash) — Required. The NotebookRuntimeTemplate to create.
- notebook_runtime_template_id (::String) — Optional. User specified ID for the notebook runtime template.
- (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.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CreateNotebookRuntimeTemplateRequest.new # Call the create_notebook_runtime_template method. result = client.create_notebook_runtime_template request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_notebook_runtime
def delete_notebook_runtime(request, options = nil) -> ::Gapic::Operation
def delete_notebook_runtime(name: nil) -> ::Gapic::OperationDeletes a NotebookRuntime.
def delete_notebook_runtime(request, options = nil) -> ::Gapic::Operationdelete_notebook_runtime via a request object, either of type
DeleteNotebookRuntimeRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeRequest, ::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_notebook_runtime(name: nil) -> ::Gapic::Operationdelete_notebook_runtime 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. The name of the NotebookRuntime resource to be deleted. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.
- (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.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeRequest.new # Call the delete_notebook_runtime method. result = client.delete_notebook_runtime request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_notebook_runtime_template
def delete_notebook_runtime_template(request, options = nil) -> ::Gapic::Operation
def delete_notebook_runtime_template(name: nil) -> ::Gapic::OperationDeletes a NotebookRuntimeTemplate.
def delete_notebook_runtime_template(request, options = nil) -> ::Gapic::Operationdelete_notebook_runtime_template via a request object, either of type
DeleteNotebookRuntimeTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeTemplateRequest, ::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_notebook_runtime_template(name: nil) -> ::Gapic::Operationdelete_notebook_runtime_template 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. The name of the NotebookRuntimeTemplate resource to be deleted.
Format:
projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}
- (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.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeTemplateRequest.new # Call the delete_notebook_runtime_template method. result = client.delete_notebook_runtime_template request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#get_notebook_runtime
def get_notebook_runtime(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntime
def get_notebook_runtime(name: nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeGets a NotebookRuntime.
def get_notebook_runtime(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeget_notebook_runtime via a request object, either of type
GetNotebookRuntimeRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::GetNotebookRuntimeRequest, ::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_notebook_runtime(name: nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeget_notebook_runtime 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. The name of the NotebookRuntime resource. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::AIPlatform::V1::NotebookRuntime)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::GetNotebookRuntimeRequest.new # Call the get_notebook_runtime method. result = client.get_notebook_runtime request # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntime. p result
#get_notebook_runtime_template
def get_notebook_runtime_template(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate
def get_notebook_runtime_template(name: nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplateGets a NotebookRuntimeTemplate.
def get_notebook_runtime_template(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplateget_notebook_runtime_template via a request object, either of type
GetNotebookRuntimeTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::GetNotebookRuntimeTemplateRequest, ::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_notebook_runtime_template(name: nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplateget_notebook_runtime_template 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. The name of the NotebookRuntimeTemplate resource.
Format:
projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::GetNotebookRuntimeTemplateRequest.new # Call the get_notebook_runtime_template method. result = client.get_notebook_runtime_template request # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate. p result
#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::AIPlatform::V1::NotebookService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_notebook_runtime_templates
def list_notebook_runtime_templates(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate>
def list_notebook_runtime_templates(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate>Lists NotebookRuntimeTemplates in a Location.
def list_notebook_runtime_templates(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate>list_notebook_runtime_templates via a request object, either of type
ListNotebookRuntimeTemplatesRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ListNotebookRuntimeTemplatesRequest, ::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_notebook_runtime_templates(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate>list_notebook_runtime_templates 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. The resource name of the Location from which to list the
NotebookRuntimeTemplates.
Format:
projects/{project}/locations/{location} -
filter (::String) —
Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported.
notebookRuntimeTemplatesupports = and !=.notebookRuntimeTemplaterepresents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's [resource name] [google.cloud.aiplatform.v1.NotebookRuntimeTemplate.name].display_namesupports = and !=labelssupports general map functions that is:labels.key=value- key:value equality- `labels.key:* or labels:key - key existence
- A key including a space must be quoted.
labels."a key".
notebookRuntimeTypesupports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK].
Some examples:
notebookRuntimeTemplate=notebookRuntimeTemplate123displayName="myDisplayName"labels.myKey="myValue"notebookRuntimeType=USER_DEFINED
- page_size (::Integer) — Optional. The standard list page size.
- page_token (::String) — Optional. The standard list page token. Typically obtained via ListNotebookRuntimeTemplatesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimeTemplates call.
- read_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. Mask specifying which fields to read.
-
order_by (::String) — Optional. A comma-separated list of fields to order by, sorted in ascending
order. Use "desc" after a field name for descending. Supported fields:
display_namecreate_timeupdate_time
Example:
display_name, create_time desc.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ListNotebookRuntimeTemplatesRequest.new # Call the list_notebook_runtime_templates method. result = client.list_notebook_runtime_templates request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate. p item end
#list_notebook_runtimes
def list_notebook_runtimes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntime>
def list_notebook_runtimes(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntime>Lists NotebookRuntimes in a Location.
def list_notebook_runtimes(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntime>list_notebook_runtimes via a request object, either of type
ListNotebookRuntimesRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ListNotebookRuntimesRequest, ::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_notebook_runtimes(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntime>list_notebook_runtimes 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. The resource name of the Location from which to list the
NotebookRuntimes.
Format:
projects/{project}/locations/{location} -
filter (::String) —
Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported.
notebookRuntimesupports = and !=.notebookRuntimerepresents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's [resource name] [google.cloud.aiplatform.v1.NotebookRuntime.name].displayNamesupports = and != and regex.notebookRuntimeTemplatesupports = and !=.notebookRuntimeTemplaterepresents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's [resource name] [google.cloud.aiplatform.v1.NotebookRuntimeTemplate.name].healthStatesupports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED].runtimeStatesupports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, INVALID].runtimeUsersupports = and !=.- API version is UI only:
uiStatesupports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. notebookRuntimeTypesupports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK].
Some examples:
notebookRuntime="notebookRuntime123"displayName="myDisplayName"anddisplayName=~"myDisplayNameRegex"notebookRuntimeTemplate="notebookRuntimeTemplate321"healthState=HEALTHYruntimeState=RUNNINGruntimeUser="test@google.com"uiState=UI_RESOURCE_STATE_BEING_DELETEDnotebookRuntimeType=USER_DEFINED
- page_size (::Integer) — Optional. The standard list page size.
- page_token (::String) — Optional. The standard list page token. Typically obtained via ListNotebookRuntimesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimes call.
- read_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. Mask specifying which fields to read.
-
order_by (::String) — Optional. A comma-separated list of fields to order by, sorted in ascending
order. Use "desc" after a field name for descending. Supported fields:
display_namecreate_timeupdate_time
Example:
display_name, create_time desc.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntime>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntime>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ListNotebookRuntimesRequest.new # Call the list_notebook_runtimes method. result = client.list_notebook_runtimes request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::NotebookRuntime. p item end
#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::AIPlatform::V1::NotebookService::Rest::OperationsGet the associated client for long-running operations.
#start_notebook_runtime
def start_notebook_runtime(request, options = nil) -> ::Gapic::Operation
def start_notebook_runtime(name: nil) -> ::Gapic::OperationStarts a NotebookRuntime.
def start_notebook_runtime(request, options = nil) -> ::Gapic::Operationstart_notebook_runtime via a request object, either of type
StartNotebookRuntimeRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::StartNotebookRuntimeRequest, ::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_notebook_runtime(name: nil) -> ::Gapic::Operationstart_notebook_runtime 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. The name of the NotebookRuntime resource to be started. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.
- (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.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::StartNotebookRuntimeRequest.new # Call the start_notebook_runtime method. result = client.start_notebook_runtime request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_notebook_runtime_template
def update_notebook_runtime_template(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate
def update_notebook_runtime_template(notebook_runtime_template: nil, update_mask: nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplateUpdates a NotebookRuntimeTemplate.
def update_notebook_runtime_template(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplateupdate_notebook_runtime_template via a request object, either of type
UpdateNotebookRuntimeTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest, ::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_notebook_runtime_template(notebook_runtime_template: nil, update_mask: nil) -> ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplateupdate_notebook_runtime_template 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_runtime_template (::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate, ::Hash) — Required. The NotebookRuntimeTemplate to update.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) —
Required. The update mask applies to the resource. For the
FieldMaskdefinition, see google.protobuf.FieldMask. Input format:{paths: "${updated_filed}"}Updatable fields:encryption_spec.kms_key_name
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new # Call the update_notebook_runtime_template method. result = client.update_notebook_runtime_template request # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate. p result
#upgrade_notebook_runtime
def upgrade_notebook_runtime(request, options = nil) -> ::Gapic::Operation
def upgrade_notebook_runtime(name: nil) -> ::Gapic::OperationUpgrades a NotebookRuntime.
def upgrade_notebook_runtime(request, options = nil) -> ::Gapic::Operationupgrade_notebook_runtime via a request object, either of type
UpgradeNotebookRuntimeRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::UpgradeNotebookRuntimeRequest, ::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_notebook_runtime(name: nil) -> ::Gapic::Operationupgrade_notebook_runtime 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. The name of the NotebookRuntime resource to be upgrade. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.
- (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.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::UpgradeNotebookRuntimeRequest.new # Call the upgrade_notebook_runtime method. result = client.upgrade_notebook_runtime request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end