Class: Google::Apis::NotebooksV1::AIPlatformNotebooksService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::NotebooksV1::AIPlatformNotebooksService
- Defined in:
- lib/google/apis/notebooks_v1/service.rb
Overview
Notebooks API
Notebooks API is used to manage notebook resources in Google Cloud.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://notebooks.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_environment(parent, environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Environment.
-
#create_project_location_execution(parent, execution_object = nil, execution_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Execution in a given project and location.
-
#create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Instance in a given project and location.
-
#create_project_location_runtime(parent, runtime_object = nil, request_id: nil, runtime_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Runtime in a given project and location.
-
#create_project_location_schedule(parent, schedule_object = nil, schedule_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Scheduled Notebook in a given project and location.
-
#delete_project_location_environment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes a single Environment.
-
#delete_project_location_execution(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes execution.
-
#delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes a single Instance.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Empty
Deletes a long-running operation.
-
#delete_project_location_runtime(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes a single Runtime.
-
#delete_project_location_schedule(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes schedule and all underlying jobs.
-
#diagnose_instance(name, diagnose_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
-
#diagnose_runtime(name, diagnose_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Location
Gets information about a location.
-
#get_project_location_environment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Environment
Gets details of a single Environment.
-
#get_project_location_execution(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Execution
Gets details of executions.
-
#get_project_location_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Instance
Gets details of a single Instance.
-
#get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_instance_instance_health(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::GetInstanceHealthResponse
Checks whether a notebook instance is healthy.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_runtime(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Runtime
Gets details of a single Runtime.
-
#get_project_location_runtime_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_schedule(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Schedule
Gets details of schedule.
-
#initialize ⇒ AIPlatformNotebooksService
constructor
A new instance of AIPlatformNotebooksService.
-
#is_project_location_instance_upgradeable(notebook_instance, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse
Checks whether a notebook instance is upgradable.
-
#list_project_location_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListEnvironmentsResponse
Lists environments in a project.
-
#list_project_location_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListExecutionsResponse
Lists executions in a given project and location.
-
#list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListInstancesResponse
Lists instances in a given project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_runtimes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListRuntimesResponse
Lists Runtimes in a given project and location.
-
#list_project_location_schedules(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListSchedulesResponse
Lists schedules in a given project and location.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#migrate_instance(name, migrate_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Migrates an existing User-Managed Notebook to Workbench Instances.
-
#migrate_runtime(name, migrate_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Migrate an existing Runtime to a new Workbench Instance.
-
#patch_project_location_runtime(name, runtime_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Update Notebook Runtime configuration.
-
#refresh_runtime_token_internal(name, refresh_runtime_token_internal_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse
Gets an access token for the consumer service account that the customer attached to the runtime.
-
#register_instance(parent, register_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Registers an existing legacy notebook instance to the Notebooks API server.
-
#report_instance_info(name, report_instance_info_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Allows notebook instances to report their latest instance information to the Notebooks API server.
-
#report_project_location_instance_event(name, report_instance_event_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Reports and processes an instance event.
-
#report_project_location_runtime_event(name, report_runtime_event_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Reports and processes a runtime event.
-
#reset_instance(name, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Resets a notebook instance.
-
#reset_runtime(name, reset_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Resets a Managed Notebook Runtime.
-
#rollback_instance(name, rollback_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Rollbacks a notebook instance to the previous version.
-
#set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Policy
Sets the access control policy on the specified resource.
-
#set_project_location_instance_accelerator(name, set_instance_accelerator_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Updates the guest accelerators of a single Instance.
-
#set_project_location_instance_labels(name, set_instance_labels_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Replaces all the labels of an Instance.
-
#set_project_location_instance_machine_type(name, set_instance_machine_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Updates the machine type of a single Instance.
-
#set_runtime_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Policy
Sets the access control policy on the specified resource.
-
#start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Starts a notebook instance.
-
#start_runtime(name, start_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Starts a Managed Notebook Runtime.
-
#stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Stops a notebook instance.
-
#stop_runtime(name, stop_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Stops a Managed Notebook Runtime.
-
#switch_runtime(name, switch_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Switch a Managed Notebook Runtime.
-
#test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_runtime_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#trigger_schedule(name, trigger_schedule_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Triggers execution of an existing schedule.
-
#update_project_location_instance_config(name, update_instance_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Update Notebook Instance configurations.
-
#update_project_location_instance_metadata_items(name, update_instance_metadata_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse
Add/update metadata items for an instance.
-
#update_shielded_instance_config(name, update_shielded_instance_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Updates the Shielded instance configuration of a single Instance.
-
#upgrade_instance(name, upgrade_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Upgrades a notebook instance to the latest version.
-
#upgrade_project_location_instance_internal(name, upgrade_instance_internal_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Allows notebook instances to call this endpoint to upgrade themselves.
-
#upgrade_runtime(name, upgrade_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Upgrades a Managed Notebook Runtime to the latest version.
Constructor Details
#initialize ⇒ AIPlatformNotebooksService
Returns a new instance of AIPlatformNotebooksService.
47 48 49 50 51 52 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-notebooks_v1', client_version: Google::Apis::NotebooksV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
45 46 47 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1
, corresponding to Code.CANCELLED
.
1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1347 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::NotebooksV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::NotebooksV1::Empty::Representation command.response_class = Google::Apis::NotebooksV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_environment(parent, environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Environment.
153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 153 def create_project_location_environment(parent, environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/environments', ) command.request_representation = Google::Apis::NotebooksV1::Environment::Representation command.request_object = environment_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['parent'] = parent unless parent.nil? command.query['environmentId'] = environment_id unless environment_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_execution(parent, execution_object = nil, execution_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Execution in a given project and location.
288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 288 def create_project_location_execution(parent, execution_object = nil, execution_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/executions', ) command.request_representation = Google::Apis::NotebooksV1::Execution::Representation command.request_object = execution_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['parent'] = parent unless parent.nil? command.query['executionId'] = execution_id unless execution_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Instance in a given project and location.
430 431 432 433 434 435 436 437 438 439 440 441 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 430 def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/instances', ) command.request_representation = Google::Apis::NotebooksV1::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['parent'] = parent unless parent.nil? command.query['instanceId'] = instance_id unless instance_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_runtime(parent, runtime_object = nil, request_id: nil, runtime_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Runtime in a given project and location.
1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1488 def create_project_location_runtime(parent, runtime_object = nil, request_id: nil, runtime_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/runtimes', ) command.request_representation = Google::Apis::NotebooksV1::Runtime::Representation command.request_object = runtime_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['parent'] = parent unless parent.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['runtimeId'] = runtime_id unless runtime_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_schedule(parent, schedule_object = nil, schedule_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a new Scheduled Notebook in a given project and location.
2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 2118 def create_project_location_schedule(parent, schedule_object = nil, schedule_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/schedules', ) command.request_representation = Google::Apis::NotebooksV1::Schedule::Representation command.request_object = schedule_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['parent'] = parent unless parent.nil? command.query['scheduleId'] = schedule_id unless schedule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_environment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes a single Environment.
187 188 189 190 191 192 193 194 195 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 187 def delete_project_location_environment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_execution(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes execution
322 323 324 325 326 327 328 329 330 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 322 def delete_project_location_execution(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes a single Instance.
464 465 466 467 468 469 470 471 472 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 464 def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED
.
1382 1383 1384 1385 1386 1387 1388 1389 1390 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1382 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Empty::Representation command.response_class = Google::Apis::NotebooksV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_runtime(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes a single Runtime.
1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1525 def delete_project_location_runtime(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_schedule(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Deletes schedule and all underlying jobs
2152 2153 2154 2155 2156 2157 2158 2159 2160 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 2152 def delete_project_location_schedule(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#diagnose_instance(name, diagnose_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
496 497 498 499 500 501 502 503 504 505 506 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 496 def diagnose_instance(name, diagnose_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:diagnose', ) command.request_representation = Google::Apis::NotebooksV1::DiagnoseInstanceRequest::Representation command.request_object = diagnose_instance_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#diagnose_runtime(name, diagnose_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1558 def diagnose_runtime(name, diagnose_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:diagnose', ) command.request_representation = Google::Apis::NotebooksV1::DiagnoseRuntimeRequest::Representation command.request_object = diagnose_runtime_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Location
Gets information about a location.
74 75 76 77 78 79 80 81 82 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 74 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Location::Representation command.response_class = Google::Apis::NotebooksV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_environment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Environment
Gets details of a single Environment.
218 219 220 221 222 223 224 225 226 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 218 def get_project_location_environment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Environment::Representation command.response_class = Google::Apis::NotebooksV1::Environment command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_execution(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Execution
Gets details of executions
353 354 355 356 357 358 359 360 361 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 353 def get_project_location_execution(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Execution::Representation command.response_class = Google::Apis::NotebooksV1::Execution command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Instance
Gets details of a single Instance.
529 530 531 532 533 534 535 536 537 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 529 def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Instance::Representation command.response_class = Google::Apis::NotebooksV1::Instance command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
573 574 575 576 577 578 579 580 581 582 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 573 def get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::NotebooksV1::Policy::Representation command.response_class = Google::Apis::NotebooksV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_instance_instance_health(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::GetInstanceHealthResponse
Checks whether a notebook instance is healthy.
605 606 607 608 609 610 611 612 613 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 605 def get_project_location_instance_instance_health(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:getInstanceHealth', ) command.response_representation = Google::Apis::NotebooksV1::GetInstanceHealthResponse::Representation command.response_class = Google::Apis::NotebooksV1::GetInstanceHealthResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
1413 1414 1415 1416 1417 1418 1419 1420 1421 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1413 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_runtime(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Runtime
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
1592 1593 1594 1595 1596 1597 1598 1599 1600 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1592 def get_project_location_runtime(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Runtime::Representation command.response_class = Google::Apis::NotebooksV1::Runtime command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_runtime_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1636 def get_project_location_runtime_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::NotebooksV1::Policy::Representation command.response_class = Google::Apis::NotebooksV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_schedule(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Schedule
Gets details of schedule
2183 2184 2185 2186 2187 2188 2189 2190 2191 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 2183 def get_project_location_schedule(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::NotebooksV1::Schedule::Representation command.response_class = Google::Apis::NotebooksV1::Schedule command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#is_project_location_instance_upgradeable(notebook_instance, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse
Checks whether a notebook instance is upgradable.
639 640 641 642 643 644 645 646 647 648 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 639 def is_project_location_instance_upgradeable(notebook_instance, type: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+notebookInstance}:isUpgradeable', ) command.response_representation = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse::Representation command.response_class = Google::Apis::NotebooksV1::IsInstanceUpgradeableResponse command.params['notebookInstance'] = notebook_instance unless notebook_instance.nil? command.query['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListEnvironmentsResponse
Lists environments in a project.
253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 253 def list_project_location_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/environments', ) command.response_representation = Google::Apis::NotebooksV1::ListEnvironmentsResponse::Representation command.response_class = Google::Apis::NotebooksV1::ListEnvironmentsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListExecutionsResponse
Lists executions in a given project and location
393 394 395 396 397 398 399 400 401 402 403 404 405 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 393 def list_project_location_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/executions', ) command.response_representation = Google::Apis::NotebooksV1::ListExecutionsResponse::Representation command.response_class = Google::Apis::NotebooksV1::ListExecutionsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListInstancesResponse
Lists instances in a given project and location.
680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 680 def list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/instances', ) command.response_representation = Google::Apis::NotebooksV1::ListInstancesResponse::Representation command.response_class = Google::Apis::NotebooksV1::ListInstancesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1450 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', ) command.response_representation = Google::Apis::NotebooksV1::ListOperationsResponse::Representation command.response_class = Google::Apis::NotebooksV1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_runtimes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListRuntimesResponse
Lists Runtimes in a given project and location.
1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1677 def list_project_location_runtimes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/runtimes', ) command.response_representation = Google::Apis::NotebooksV1::ListRuntimesResponse::Representation command.response_class = Google::Apis::NotebooksV1::ListRuntimesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_schedules(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListSchedulesResponse
Lists schedules in a given project and location.
2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 2222 def list_project_location_schedules(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/schedules', ) command.response_representation = Google::Apis::NotebooksV1::ListSchedulesResponse::Representation command.response_class = Google::Apis::NotebooksV1::ListSchedulesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::ListLocationsResponse
Lists information about the supported locations for this service.
114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 114 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', ) command.response_representation = Google::Apis::NotebooksV1::ListLocationsResponse::Representation command.response_class = Google::Apis::NotebooksV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#migrate_instance(name, migrate_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Migrates an existing User-Managed Notebook to Workbench Instances.
716 717 718 719 720 721 722 723 724 725 726 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 716 def migrate_instance(name, migrate_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:migrate', ) command.request_representation = Google::Apis::NotebooksV1::MigrateInstanceRequest::Representation command.request_object = migrate_instance_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#migrate_runtime(name, migrate_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Migrate an existing Runtime to a new Workbench Instance.
1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1713 def migrate_runtime(name, migrate_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:migrate', ) command.request_representation = Google::Apis::NotebooksV1::MigrateRuntimeRequest::Representation command.request_object = migrate_runtime_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_runtime(name, runtime_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Update Notebook Runtime configuration.
1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1760 def patch_project_location_runtime(name, runtime_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::NotebooksV1::Runtime::Representation command.request_object = runtime_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#refresh_runtime_token_internal(name, refresh_runtime_token_internal_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse
Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.
1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1797 def refresh_runtime_token_internal(name, refresh_runtime_token_internal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:refreshRuntimeTokenInternal', ) command.request_representation = Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalRequest::Representation command.request_object = refresh_runtime_token_internal_request_object command.response_representation = Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse::Representation command.response_class = Google::Apis::NotebooksV1::RefreshRuntimeTokenInternalResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#register_instance(parent, register_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
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.
752 753 754 755 756 757 758 759 760 761 762 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 752 def register_instance(parent, register_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/instances:register', ) command.request_representation = Google::Apis::NotebooksV1::RegisterInstanceRequest::Representation command.request_object = register_instance_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#report_instance_info(name, report_instance_info_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
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.
788 789 790 791 792 793 794 795 796 797 798 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 788 def report_instance_info(name, report_instance_info_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:report', ) command.request_representation = Google::Apis::NotebooksV1::ReportInstanceInfoRequest::Representation command.request_object = report_instance_info_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#report_project_location_instance_event(name, report_instance_event_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Reports and processes an instance event.
822 823 824 825 826 827 828 829 830 831 832 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 822 def report_project_location_instance_event(name, report_instance_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:reportEvent', ) command.request_representation = Google::Apis::NotebooksV1::ReportInstanceEventRequest::Representation command.request_object = report_instance_event_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#report_project_location_runtime_event(name, report_runtime_event_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Reports and processes a runtime event.
1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1831 def report_project_location_runtime_event(name, report_runtime_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:reportEvent', ) command.request_representation = Google::Apis::NotebooksV1::ReportRuntimeEventRequest::Representation command.request_object = report_runtime_event_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reset_instance(name, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Resets a notebook instance.
856 857 858 859 860 861 862 863 864 865 866 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 856 def reset_instance(name, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:reset', ) command.request_representation = Google::Apis::NotebooksV1::ResetInstanceRequest::Representation command.request_object = reset_instance_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reset_runtime(name, reset_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Resets a Managed Notebook Runtime.
1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1865 def reset_runtime(name, reset_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:reset', ) command.request_representation = Google::Apis::NotebooksV1::ResetRuntimeRequest::Representation command.request_object = reset_runtime_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#rollback_instance(name, rollback_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Rollbacks a notebook instance to the previous version.
890 891 892 893 894 895 896 897 898 899 900 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 890 def rollback_instance(name, rollback_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:rollback', ) command.request_representation = Google::Apis::NotebooksV1::RollbackInstanceRequest::Representation command.request_object = rollback_instance_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
961 962 963 964 965 966 967 968 969 970 971 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 961 def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::NotebooksV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::NotebooksV1::Policy::Representation command.response_class = Google::Apis::NotebooksV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_instance_accelerator(name, set_instance_accelerator_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Updates the guest accelerators of a single Instance.
924 925 926 927 928 929 930 931 932 933 934 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 924 def set_project_location_instance_accelerator(name, set_instance_accelerator_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}:setAccelerator', ) command.request_representation = Google::Apis::NotebooksV1::SetInstanceAcceleratorRequest::Representation command.request_object = set_instance_accelerator_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_instance_labels(name, set_instance_labels_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Replaces all the labels of an Instance.
995 996 997 998 999 1000 1001 1002 1003 1004 1005 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 995 def set_project_location_instance_labels(name, set_instance_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}:setLabels', ) command.request_representation = Google::Apis::NotebooksV1::SetInstanceLabelsRequest::Representation command.request_object = set_instance_labels_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_instance_machine_type(name, set_instance_machine_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Updates the machine type of a single Instance.
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1029 def set_project_location_instance_machine_type(name, set_instance_machine_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}:setMachineType', ) command.request_representation = Google::Apis::NotebooksV1::SetInstanceMachineTypeRequest::Representation command.request_object = set_instance_machine_type_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_runtime_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1902 def set_runtime_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::NotebooksV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::NotebooksV1::Policy::Representation command.response_class = Google::Apis::NotebooksV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Starts a notebook instance.
1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1063 def start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:start', ) command.request_representation = Google::Apis::NotebooksV1::StartInstanceRequest::Representation command.request_object = start_instance_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#start_runtime(name, start_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop- start-instance https://cloud.google.com/compute/docs/instances/suspend-resume- instance
1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1939 def start_runtime(name, start_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:start', ) command.request_representation = Google::Apis::NotebooksV1::StartRuntimeRequest::Representation command.request_object = start_runtime_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Stops a notebook instance.
1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1097 def stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:stop', ) command.request_representation = Google::Apis::NotebooksV1::StopInstanceRequest::Representation command.request_object = stop_instance_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#stop_runtime(name, stop_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Stops a Managed Notebook Runtime. Perform "Stop" on GPU instances; "Suspend" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop- start-instance https://cloud.google.com/compute/docs/instances/suspend-resume- instance
1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1976 def stop_runtime(name, stop_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:stop', ) command.request_representation = Google::Apis::NotebooksV1::StopRuntimeRequest::Representation command.request_object = stop_runtime_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#switch_runtime(name, switch_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Switch a Managed Notebook Runtime.
2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 2010 def switch_runtime(name, switch_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:switch', ) command.request_representation = Google::Apis::NotebooksV1::SwitchRuntimeRequest::Representation command.request_object = switch_runtime_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1136 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::NotebooksV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::NotebooksV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::NotebooksV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_runtime_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 2049 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::NotebooksV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::NotebooksV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::NotebooksV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#trigger_schedule(name, trigger_schedule_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Triggers execution of an existing schedule.
2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 2258 def trigger_schedule(name, trigger_schedule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:trigger', ) command.request_representation = Google::Apis::NotebooksV1::TriggerScheduleRequest::Representation command.request_object = trigger_schedule_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_project_location_instance_config(name, update_instance_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Update Notebook Instance configurations.
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1170 def update_project_location_instance_config(name, update_instance_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}:updateConfig', ) command.request_representation = Google::Apis::NotebooksV1::UpdateInstanceConfigRequest::Representation command.request_object = update_instance_config_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_project_location_instance_metadata_items(name, update_instance_metadata_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse
Add/update metadata items for an instance.
1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1204 def (name, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}:updateMetadataItems', ) command.request_representation = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsRequest::Representation command.request_object = command.response_representation = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse::Representation command.response_class = Google::Apis::NotebooksV1::UpdateInstanceMetadataItemsResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_shielded_instance_config(name, update_shielded_instance_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Updates the Shielded instance configuration of a single Instance.
1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1238 def update_shielded_instance_config(name, update_shielded_instance_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}:updateShieldedInstanceConfig', ) command.request_representation = Google::Apis::NotebooksV1::UpdateShieldedInstanceConfigRequest::Representation command.request_object = update_shielded_instance_config_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upgrade_instance(name, upgrade_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Upgrades a notebook instance to the latest version.
1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1272 def upgrade_instance(name, upgrade_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:upgrade', ) command.request_representation = Google::Apis::NotebooksV1::UpgradeInstanceRequest::Representation command.request_object = upgrade_instance_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upgrade_project_location_instance_internal(name, upgrade_instance_internal_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.
1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 1307 def upgrade_project_location_instance_internal(name, upgrade_instance_internal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:upgradeInternal', ) command.request_representation = Google::Apis::NotebooksV1::UpgradeInstanceInternalRequest::Representation command.request_object = upgrade_instance_internal_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upgrade_runtime(name, upgrade_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::NotebooksV1::Operation
Upgrades a Managed Notebook Runtime to the latest version.
2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 |
# File 'lib/google/apis/notebooks_v1/service.rb', line 2083 def upgrade_runtime(name, upgrade_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:upgrade', ) command.request_representation = Google::Apis::NotebooksV1::UpgradeRuntimeRequest::Representation command.request_object = upgrade_runtime_request_object command.response_representation = Google::Apis::NotebooksV1::Operation::Representation command.response_class = Google::Apis::NotebooksV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |