google-apis-notebooks_v1 0.4.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/notebooks_v1.rb +1 -1
- data/lib/google/apis/notebooks_v1/classes.rb +879 -71
- data/lib/google/apis/notebooks_v1/gem_version.rb +3 -3
- data/lib/google/apis/notebooks_v1/representations.rb +315 -0
- data/lib/google/apis/notebooks_v1/service.rb +355 -4
- metadata +4 -4
@@ -83,11 +83,15 @@ module Google
|
|
83
83
|
# @param [String] name
|
84
84
|
# The resource that owns the locations collection, if applicable.
|
85
85
|
# @param [String] filter
|
86
|
-
#
|
86
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
87
|
+
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
88
|
+
# AIP-160](https://google.aip.dev/160).
|
87
89
|
# @param [Fixnum] page_size
|
88
|
-
# The
|
90
|
+
# The maximum number of results to return. If not set, the service selects a
|
91
|
+
# default.
|
89
92
|
# @param [String] page_token
|
90
|
-
#
|
93
|
+
# A page token received from the `next_page_token` field in the response. Send
|
94
|
+
# that page token to receive the subsequent page.
|
91
95
|
# @param [String] fields
|
92
96
|
# Selector specifying which fields to include in a partial response.
|
93
97
|
# @param [String] quota_user
|
@@ -358,7 +362,8 @@ module Google
|
|
358
362
|
# @param [String] parent
|
359
363
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
360
364
|
# @param [String] filter
|
361
|
-
# Filter applied to resulting executions.
|
365
|
+
# Filter applied to resulting executions. Currently only supports filtering
|
366
|
+
# executions by a specified schedule_id. Format: "schedule_id="
|
362
367
|
# @param [String] order_by
|
363
368
|
# Sort by field.
|
364
369
|
# @param [Fixnum] page_size
|
@@ -741,6 +746,40 @@ module Google
|
|
741
746
|
execute_or_queue_command(command, &block)
|
742
747
|
end
|
743
748
|
|
749
|
+
# Rollbacks a notebook instance to the previous version.
|
750
|
+
# @param [String] name
|
751
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
752
|
+
# instance_id``
|
753
|
+
# @param [Google::Apis::NotebooksV1::RollbackInstanceRequest] rollback_instance_request_object
|
754
|
+
# @param [String] fields
|
755
|
+
# Selector specifying which fields to include in a partial response.
|
756
|
+
# @param [String] quota_user
|
757
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
758
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
759
|
+
# @param [Google::Apis::RequestOptions] options
|
760
|
+
# Request-specific options
|
761
|
+
#
|
762
|
+
# @yield [result, err] Result & error if block supplied
|
763
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
764
|
+
# @yieldparam err [StandardError] error object if request failed
|
765
|
+
#
|
766
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
767
|
+
#
|
768
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
769
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
770
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
771
|
+
def rollback_instance(name, rollback_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
772
|
+
command = make_simple_command(:post, 'v1/{+name}:rollback', options)
|
773
|
+
command.request_representation = Google::Apis::NotebooksV1::RollbackInstanceRequest::Representation
|
774
|
+
command.request_object = rollback_instance_request_object
|
775
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
776
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
777
|
+
command.params['name'] = name unless name.nil?
|
778
|
+
command.query['fields'] = fields unless fields.nil?
|
779
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
780
|
+
execute_or_queue_command(command, &block)
|
781
|
+
end
|
782
|
+
|
744
783
|
# Updates the guest accelerators of a single Instance.
|
745
784
|
# @param [String] name
|
746
785
|
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
@@ -985,6 +1024,40 @@ module Google
|
|
985
1024
|
execute_or_queue_command(command, &block)
|
986
1025
|
end
|
987
1026
|
|
1027
|
+
# Updates the Shielded instance configuration of a single Instance.
|
1028
|
+
# @param [String] name
|
1029
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
1030
|
+
# instance_id``
|
1031
|
+
# @param [Google::Apis::NotebooksV1::UpdateShieldedInstanceConfigRequest] update_shielded_instance_config_request_object
|
1032
|
+
# @param [String] fields
|
1033
|
+
# Selector specifying which fields to include in a partial response.
|
1034
|
+
# @param [String] quota_user
|
1035
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1036
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1037
|
+
# @param [Google::Apis::RequestOptions] options
|
1038
|
+
# Request-specific options
|
1039
|
+
#
|
1040
|
+
# @yield [result, err] Result & error if block supplied
|
1041
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1042
|
+
# @yieldparam err [StandardError] error object if request failed
|
1043
|
+
#
|
1044
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1045
|
+
#
|
1046
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1047
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1048
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1049
|
+
def update_shielded_instance_config(name, update_shielded_instance_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1050
|
+
command = make_simple_command(:patch, 'v1/{+name}:updateShieldedInstanceConfig', options)
|
1051
|
+
command.request_representation = Google::Apis::NotebooksV1::UpdateShieldedInstanceConfigRequest::Representation
|
1052
|
+
command.request_object = update_shielded_instance_config_request_object
|
1053
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1054
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1055
|
+
command.params['name'] = name unless name.nil?
|
1056
|
+
command.query['fields'] = fields unless fields.nil?
|
1057
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1058
|
+
execute_or_queue_command(command, &block)
|
1059
|
+
end
|
1060
|
+
|
988
1061
|
# Upgrades a notebook instance to the latest version.
|
989
1062
|
# @param [String] name
|
990
1063
|
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
@@ -1204,6 +1277,284 @@ module Google
|
|
1204
1277
|
execute_or_queue_command(command, &block)
|
1205
1278
|
end
|
1206
1279
|
|
1280
|
+
# Creates a new Runtime in a given project and location.
|
1281
|
+
# @param [String] parent
|
1282
|
+
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
1283
|
+
# @param [Google::Apis::NotebooksV1::Runtime] runtime_object
|
1284
|
+
# @param [String] runtime_id
|
1285
|
+
# Required. User-defined unique ID of this Runtime.
|
1286
|
+
# @param [String] fields
|
1287
|
+
# Selector specifying which fields to include in a partial response.
|
1288
|
+
# @param [String] quota_user
|
1289
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1290
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1291
|
+
# @param [Google::Apis::RequestOptions] options
|
1292
|
+
# Request-specific options
|
1293
|
+
#
|
1294
|
+
# @yield [result, err] Result & error if block supplied
|
1295
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1296
|
+
# @yieldparam err [StandardError] error object if request failed
|
1297
|
+
#
|
1298
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1299
|
+
#
|
1300
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1301
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1302
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1303
|
+
def create_project_location_runtime(parent, runtime_object = nil, runtime_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1304
|
+
command = make_simple_command(:post, 'v1/{+parent}/runtimes', options)
|
1305
|
+
command.request_representation = Google::Apis::NotebooksV1::Runtime::Representation
|
1306
|
+
command.request_object = runtime_object
|
1307
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1308
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1309
|
+
command.params['parent'] = parent unless parent.nil?
|
1310
|
+
command.query['runtimeId'] = runtime_id unless runtime_id.nil?
|
1311
|
+
command.query['fields'] = fields unless fields.nil?
|
1312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1313
|
+
execute_or_queue_command(command, &block)
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
# Deletes a single Runtime.
|
1317
|
+
# @param [String] name
|
1318
|
+
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
1319
|
+
# runtime_id``
|
1320
|
+
# @param [String] fields
|
1321
|
+
# Selector specifying which fields to include in a partial response.
|
1322
|
+
# @param [String] quota_user
|
1323
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1324
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1325
|
+
# @param [Google::Apis::RequestOptions] options
|
1326
|
+
# Request-specific options
|
1327
|
+
#
|
1328
|
+
# @yield [result, err] Result & error if block supplied
|
1329
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1330
|
+
# @yieldparam err [StandardError] error object if request failed
|
1331
|
+
#
|
1332
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1333
|
+
#
|
1334
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1335
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1336
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1337
|
+
def delete_project_location_runtime(name, fields: nil, quota_user: nil, options: nil, &block)
|
1338
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1339
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1340
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1341
|
+
command.params['name'] = name unless name.nil?
|
1342
|
+
command.query['fields'] = fields unless fields.nil?
|
1343
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1344
|
+
execute_or_queue_command(command, &block)
|
1345
|
+
end
|
1346
|
+
|
1347
|
+
# Gets details of a single Runtime. The location must be a regional endpoint
|
1348
|
+
# rather than zonal.
|
1349
|
+
# @param [String] name
|
1350
|
+
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
1351
|
+
# runtime_id``
|
1352
|
+
# @param [String] fields
|
1353
|
+
# Selector specifying which fields to include in a partial response.
|
1354
|
+
# @param [String] quota_user
|
1355
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1356
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1357
|
+
# @param [Google::Apis::RequestOptions] options
|
1358
|
+
# Request-specific options
|
1359
|
+
#
|
1360
|
+
# @yield [result, err] Result & error if block supplied
|
1361
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Runtime] parsed result object
|
1362
|
+
# @yieldparam err [StandardError] error object if request failed
|
1363
|
+
#
|
1364
|
+
# @return [Google::Apis::NotebooksV1::Runtime]
|
1365
|
+
#
|
1366
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1367
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1368
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1369
|
+
def get_project_location_runtime(name, fields: nil, quota_user: nil, options: nil, &block)
|
1370
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1371
|
+
command.response_representation = Google::Apis::NotebooksV1::Runtime::Representation
|
1372
|
+
command.response_class = Google::Apis::NotebooksV1::Runtime
|
1373
|
+
command.params['name'] = name unless name.nil?
|
1374
|
+
command.query['fields'] = fields unless fields.nil?
|
1375
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1376
|
+
execute_or_queue_command(command, &block)
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
# Lists Runtimes in a given project and location.
|
1380
|
+
# @param [String] parent
|
1381
|
+
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
1382
|
+
# @param [Fixnum] page_size
|
1383
|
+
# Maximum return size of the list call.
|
1384
|
+
# @param [String] page_token
|
1385
|
+
# A previous returned page token that can be used to continue listing from the
|
1386
|
+
# last result.
|
1387
|
+
# @param [String] fields
|
1388
|
+
# Selector specifying which fields to include in a partial response.
|
1389
|
+
# @param [String] quota_user
|
1390
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1391
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1392
|
+
# @param [Google::Apis::RequestOptions] options
|
1393
|
+
# Request-specific options
|
1394
|
+
#
|
1395
|
+
# @yield [result, err] Result & error if block supplied
|
1396
|
+
# @yieldparam result [Google::Apis::NotebooksV1::ListRuntimesResponse] parsed result object
|
1397
|
+
# @yieldparam err [StandardError] error object if request failed
|
1398
|
+
#
|
1399
|
+
# @return [Google::Apis::NotebooksV1::ListRuntimesResponse]
|
1400
|
+
#
|
1401
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1402
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1403
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1404
|
+
def list_project_location_runtimes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1405
|
+
command = make_simple_command(:get, 'v1/{+parent}/runtimes', options)
|
1406
|
+
command.response_representation = Google::Apis::NotebooksV1::ListRuntimesResponse::Representation
|
1407
|
+
command.response_class = Google::Apis::NotebooksV1::ListRuntimesResponse
|
1408
|
+
command.params['parent'] = parent unless parent.nil?
|
1409
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1410
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1411
|
+
command.query['fields'] = fields unless fields.nil?
|
1412
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1413
|
+
execute_or_queue_command(command, &block)
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
# Resets a Managed Notebook Runtime.
|
1417
|
+
# @param [String] name
|
1418
|
+
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
1419
|
+
# runtime_id``
|
1420
|
+
# @param [Google::Apis::NotebooksV1::ResetRuntimeRequest] reset_runtime_request_object
|
1421
|
+
# @param [String] fields
|
1422
|
+
# Selector specifying which fields to include in a partial response.
|
1423
|
+
# @param [String] quota_user
|
1424
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1425
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1426
|
+
# @param [Google::Apis::RequestOptions] options
|
1427
|
+
# Request-specific options
|
1428
|
+
#
|
1429
|
+
# @yield [result, err] Result & error if block supplied
|
1430
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1431
|
+
# @yieldparam err [StandardError] error object if request failed
|
1432
|
+
#
|
1433
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1434
|
+
#
|
1435
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1436
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1437
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1438
|
+
def reset_runtime(name, reset_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1439
|
+
command = make_simple_command(:post, 'v1/{+name}:reset', options)
|
1440
|
+
command.request_representation = Google::Apis::NotebooksV1::ResetRuntimeRequest::Representation
|
1441
|
+
command.request_object = reset_runtime_request_object
|
1442
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1443
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1444
|
+
command.params['name'] = name unless name.nil?
|
1445
|
+
command.query['fields'] = fields unless fields.nil?
|
1446
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1447
|
+
execute_or_queue_command(command, &block)
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume"
|
1451
|
+
# on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-
|
1452
|
+
# start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-
|
1453
|
+
# instance
|
1454
|
+
# @param [String] name
|
1455
|
+
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
1456
|
+
# runtime_id``
|
1457
|
+
# @param [Google::Apis::NotebooksV1::StartRuntimeRequest] start_runtime_request_object
|
1458
|
+
# @param [String] fields
|
1459
|
+
# Selector specifying which fields to include in a partial response.
|
1460
|
+
# @param [String] quota_user
|
1461
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1462
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1463
|
+
# @param [Google::Apis::RequestOptions] options
|
1464
|
+
# Request-specific options
|
1465
|
+
#
|
1466
|
+
# @yield [result, err] Result & error if block supplied
|
1467
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1468
|
+
# @yieldparam err [StandardError] error object if request failed
|
1469
|
+
#
|
1470
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1471
|
+
#
|
1472
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1473
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1474
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1475
|
+
def start_runtime(name, start_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1476
|
+
command = make_simple_command(:post, 'v1/{+name}:start', options)
|
1477
|
+
command.request_representation = Google::Apis::NotebooksV1::StartRuntimeRequest::Representation
|
1478
|
+
command.request_object = start_runtime_request_object
|
1479
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1480
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1481
|
+
command.params['name'] = name unless name.nil?
|
1482
|
+
command.query['fields'] = fields unless fields.nil?
|
1483
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1484
|
+
execute_or_queue_command(command, &block)
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
# Stops a Managed Notebook Runtime. Perform "Stop" on GPU instances; "Suspend"
|
1488
|
+
# on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-
|
1489
|
+
# start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-
|
1490
|
+
# instance
|
1491
|
+
# @param [String] name
|
1492
|
+
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
1493
|
+
# runtime_id``
|
1494
|
+
# @param [Google::Apis::NotebooksV1::StopRuntimeRequest] stop_runtime_request_object
|
1495
|
+
# @param [String] fields
|
1496
|
+
# Selector specifying which fields to include in a partial response.
|
1497
|
+
# @param [String] quota_user
|
1498
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1499
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1500
|
+
# @param [Google::Apis::RequestOptions] options
|
1501
|
+
# Request-specific options
|
1502
|
+
#
|
1503
|
+
# @yield [result, err] Result & error if block supplied
|
1504
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1505
|
+
# @yieldparam err [StandardError] error object if request failed
|
1506
|
+
#
|
1507
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1508
|
+
#
|
1509
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1510
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1511
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1512
|
+
def stop_runtime(name, stop_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1513
|
+
command = make_simple_command(:post, 'v1/{+name}:stop', options)
|
1514
|
+
command.request_representation = Google::Apis::NotebooksV1::StopRuntimeRequest::Representation
|
1515
|
+
command.request_object = stop_runtime_request_object
|
1516
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1517
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1518
|
+
command.params['name'] = name unless name.nil?
|
1519
|
+
command.query['fields'] = fields unless fields.nil?
|
1520
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1521
|
+
execute_or_queue_command(command, &block)
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
# Switch a Managed Notebook Runtime.
|
1525
|
+
# @param [String] name
|
1526
|
+
# Required. Format: `projects/`project_id`/locations/`location`/runtimes/`
|
1527
|
+
# runtime_id``
|
1528
|
+
# @param [Google::Apis::NotebooksV1::SwitchRuntimeRequest] switch_runtime_request_object
|
1529
|
+
# @param [String] fields
|
1530
|
+
# Selector specifying which fields to include in a partial response.
|
1531
|
+
# @param [String] quota_user
|
1532
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1533
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1534
|
+
# @param [Google::Apis::RequestOptions] options
|
1535
|
+
# Request-specific options
|
1536
|
+
#
|
1537
|
+
# @yield [result, err] Result & error if block supplied
|
1538
|
+
# @yieldparam result [Google::Apis::NotebooksV1::Operation] parsed result object
|
1539
|
+
# @yieldparam err [StandardError] error object if request failed
|
1540
|
+
#
|
1541
|
+
# @return [Google::Apis::NotebooksV1::Operation]
|
1542
|
+
#
|
1543
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1544
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1545
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1546
|
+
def switch_runtime(name, switch_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1547
|
+
command = make_simple_command(:post, 'v1/{+name}:switch', options)
|
1548
|
+
command.request_representation = Google::Apis::NotebooksV1::SwitchRuntimeRequest::Representation
|
1549
|
+
command.request_object = switch_runtime_request_object
|
1550
|
+
command.response_representation = Google::Apis::NotebooksV1::Operation::Representation
|
1551
|
+
command.response_class = Google::Apis::NotebooksV1::Operation
|
1552
|
+
command.params['name'] = name unless name.nil?
|
1553
|
+
command.query['fields'] = fields unless fields.nil?
|
1554
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1555
|
+
execute_or_queue_command(command, &block)
|
1556
|
+
end
|
1557
|
+
|
1207
1558
|
# Creates a new Scheduled Notebook in a given project and location.
|
1208
1559
|
# @param [String] parent
|
1209
1560
|
# Required. Format: `parent=projects/`project_id`/locations/`location``
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-notebooks_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v1/v0.9.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-notebooks_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Notebooks API V1
|