google-apis-notebooks_v2 0.14.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9aac34badd3bd21c74ba7a14301ec17720b3b923113839452a6b0f3d13b0e3d
|
4
|
+
data.tar.gz: 8887834c3cb4a55870ef2e46264fbd5e6aa33e010c8949752bec099e726c6ca8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba3de27973f00996add2a95803b58f28ff38ee398410bc96a16c4658902a250452a2582d0a1199e188133d091d825dbcbb9792ca2053cca66026630ac37b4950
|
7
|
+
data.tar.gz: 20c4b91d688ac12ec403bcd576de4d993512fe47e14e671f9bf9bb51fd36937aaa2ab0d8255af02d34c98340df7877f9cb20fc205edc8f8231c683a10e93a83f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-notebooks_v2
|
2
2
|
|
3
|
+
### v0.16.0 (2024-08-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240820
|
6
|
+
|
7
|
+
### v0.15.0 (2024-08-11)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240731
|
10
|
+
* Regenerated using generator version 0.15.1
|
11
|
+
|
3
12
|
### v0.14.0 (2024-06-09)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240530
|
@@ -662,6 +662,13 @@ module Google
|
|
662
662
|
# @return [Hash<String,String>]
|
663
663
|
attr_accessor :metadata
|
664
664
|
|
665
|
+
# Optional. The minimum CPU platform to use for this instance. The list of valid
|
666
|
+
# values can be found in https://cloud.google.com/compute/docs/instances/specify-
|
667
|
+
# min-cpu-platform#availablezones
|
668
|
+
# Corresponds to the JSON property `minCpuPlatform`
|
669
|
+
# @return [String]
|
670
|
+
attr_accessor :min_cpu_platform
|
671
|
+
|
665
672
|
# Optional. The network interfaces for the VM. Supports only one interface.
|
666
673
|
# Corresponds to the JSON property `networkInterfaces`
|
667
674
|
# @return [Array<Google::Apis::NotebooksV2::NetworkInterface>]
|
@@ -707,6 +714,7 @@ module Google
|
|
707
714
|
@gpu_driver_config = args[:gpu_driver_config] if args.key?(:gpu_driver_config)
|
708
715
|
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
709
716
|
@metadata = args[:metadata] if args.key?(:metadata)
|
717
|
+
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
|
710
718
|
@network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
|
711
719
|
@service_accounts = args[:service_accounts] if args.key?(:service_accounts)
|
712
720
|
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
|
@@ -1321,6 +1329,27 @@ module Google
|
|
1321
1329
|
end
|
1322
1330
|
end
|
1323
1331
|
|
1332
|
+
# Request for restoring the notebook instance from a BackupSource.
|
1333
|
+
class RestoreInstanceRequest
|
1334
|
+
include Google::Apis::Core::Hashable
|
1335
|
+
|
1336
|
+
# Snapshot represents the snapshot of the data disk used to restore the
|
1337
|
+
# Workbench Instance from. Refers to: compute/v1/projects/`project_id`/global/
|
1338
|
+
# snapshots/`snapshot_id`
|
1339
|
+
# Corresponds to the JSON property `snapshot`
|
1340
|
+
# @return [Google::Apis::NotebooksV2::Snapshot]
|
1341
|
+
attr_accessor :snapshot
|
1342
|
+
|
1343
|
+
def initialize(**args)
|
1344
|
+
update!(**args)
|
1345
|
+
end
|
1346
|
+
|
1347
|
+
# Update properties of this object
|
1348
|
+
def update!(**args)
|
1349
|
+
@snapshot = args[:snapshot] if args.key?(:snapshot)
|
1350
|
+
end
|
1351
|
+
end
|
1352
|
+
|
1324
1353
|
# Request for rollbacking a notebook instance
|
1325
1354
|
class RollbackInstanceRequest
|
1326
1355
|
include Google::Apis::Core::Hashable
|
@@ -1462,6 +1491,33 @@ module Google
|
|
1462
1491
|
end
|
1463
1492
|
end
|
1464
1493
|
|
1494
|
+
# Snapshot represents the snapshot of the data disk used to restore the
|
1495
|
+
# Workbench Instance from. Refers to: compute/v1/projects/`project_id`/global/
|
1496
|
+
# snapshots/`snapshot_id`
|
1497
|
+
class Snapshot
|
1498
|
+
include Google::Apis::Core::Hashable
|
1499
|
+
|
1500
|
+
# Required. The project ID of the snapshot.
|
1501
|
+
# Corresponds to the JSON property `projectId`
|
1502
|
+
# @return [String]
|
1503
|
+
attr_accessor :project_id
|
1504
|
+
|
1505
|
+
# Required. The ID of the snapshot.
|
1506
|
+
# Corresponds to the JSON property `snapshotId`
|
1507
|
+
# @return [String]
|
1508
|
+
attr_accessor :snapshot_id
|
1509
|
+
|
1510
|
+
def initialize(**args)
|
1511
|
+
update!(**args)
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
# Update properties of this object
|
1515
|
+
def update!(**args)
|
1516
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
1517
|
+
@snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id)
|
1518
|
+
end
|
1519
|
+
end
|
1520
|
+
|
1465
1521
|
# Request for starting a notebook instance
|
1466
1522
|
class StartInstanceRequest
|
1467
1523
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NotebooksV2
|
18
18
|
# Version of the google-apis-notebooks_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.16.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.15.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240820"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -202,6 +202,12 @@ module Google
|
|
202
202
|
include Google::Apis::Core::JsonObjectSupport
|
203
203
|
end
|
204
204
|
|
205
|
+
class RestoreInstanceRequest
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
205
211
|
class RollbackInstanceRequest
|
206
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
213
|
|
@@ -226,6 +232,12 @@ module Google
|
|
226
232
|
include Google::Apis::Core::JsonObjectSupport
|
227
233
|
end
|
228
234
|
|
235
|
+
class Snapshot
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
229
241
|
class StartInstanceRequest
|
230
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
243
|
|
@@ -444,6 +456,7 @@ module Google
|
|
444
456
|
|
445
457
|
property :machine_type, as: 'machineType'
|
446
458
|
hash :metadata, as: 'metadata'
|
459
|
+
property :min_cpu_platform, as: 'minCpuPlatform'
|
447
460
|
collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::NotebooksV2::NetworkInterface, decorator: Google::Apis::NotebooksV2::NetworkInterface::Representation
|
448
461
|
|
449
462
|
collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::NotebooksV2::ServiceAccount, decorator: Google::Apis::NotebooksV2::ServiceAccount::Representation
|
@@ -600,6 +613,14 @@ module Google
|
|
600
613
|
end
|
601
614
|
end
|
602
615
|
|
616
|
+
class RestoreInstanceRequest
|
617
|
+
# @private
|
618
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
619
|
+
property :snapshot, as: 'snapshot', class: Google::Apis::NotebooksV2::Snapshot, decorator: Google::Apis::NotebooksV2::Snapshot::Representation
|
620
|
+
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
603
624
|
class RollbackInstanceRequest
|
604
625
|
# @private
|
605
626
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -633,6 +654,14 @@ module Google
|
|
633
654
|
end
|
634
655
|
end
|
635
656
|
|
657
|
+
class Snapshot
|
658
|
+
# @private
|
659
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
660
|
+
property :project_id, as: 'projectId'
|
661
|
+
property :snapshot_id, as: 'snapshotId'
|
662
|
+
end
|
663
|
+
end
|
664
|
+
|
636
665
|
class StartInstanceRequest
|
637
666
|
# @private
|
638
667
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -559,6 +559,40 @@ module Google
|
|
559
559
|
execute_or_queue_command(command, &block)
|
560
560
|
end
|
561
561
|
|
562
|
+
# RestoreInstance restores an Instance from a BackupSource.
|
563
|
+
# @param [String] name
|
564
|
+
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
565
|
+
# instance_id``
|
566
|
+
# @param [Google::Apis::NotebooksV2::RestoreInstanceRequest] restore_instance_request_object
|
567
|
+
# @param [String] fields
|
568
|
+
# Selector specifying which fields to include in a partial response.
|
569
|
+
# @param [String] quota_user
|
570
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
571
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
572
|
+
# @param [Google::Apis::RequestOptions] options
|
573
|
+
# Request-specific options
|
574
|
+
#
|
575
|
+
# @yield [result, err] Result & error if block supplied
|
576
|
+
# @yieldparam result [Google::Apis::NotebooksV2::Operation] parsed result object
|
577
|
+
# @yieldparam err [StandardError] error object if request failed
|
578
|
+
#
|
579
|
+
# @return [Google::Apis::NotebooksV2::Operation]
|
580
|
+
#
|
581
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
582
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
583
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
584
|
+
def restore_instance(name, restore_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
585
|
+
command = make_simple_command(:post, 'v2/{+name}:restore', options)
|
586
|
+
command.request_representation = Google::Apis::NotebooksV2::RestoreInstanceRequest::Representation
|
587
|
+
command.request_object = restore_instance_request_object
|
588
|
+
command.response_representation = Google::Apis::NotebooksV2::Operation::Representation
|
589
|
+
command.response_class = Google::Apis::NotebooksV2::Operation
|
590
|
+
command.params['name'] = name unless name.nil?
|
591
|
+
command.query['fields'] = fields unless fields.nil?
|
592
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
593
|
+
execute_or_queue_command(command, &block)
|
594
|
+
end
|
595
|
+
|
562
596
|
# Rollbacks a notebook instance to the previous version.
|
563
597
|
# @param [String] name
|
564
598
|
# Required. Format: `projects/`project_id`/locations/`location`/instances/`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-notebooks_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.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: 2024-
|
11
|
+
date: 2024-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.16.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|