google-apis-notebooks_v2 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -1329,6 +1329,27 @@ module Google
|
|
1329
1329
|
end
|
1330
1330
|
end
|
1331
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
|
+
|
1332
1353
|
# Request for rollbacking a notebook instance
|
1333
1354
|
class RollbackInstanceRequest
|
1334
1355
|
include Google::Apis::Core::Hashable
|
@@ -1470,6 +1491,33 @@ module Google
|
|
1470
1491
|
end
|
1471
1492
|
end
|
1472
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
|
+
|
1473
1521
|
# Request for starting a notebook instance
|
1474
1522
|
class StartInstanceRequest
|
1475
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
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
|
|
@@ -601,6 +613,14 @@ module Google
|
|
601
613
|
end
|
602
614
|
end
|
603
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
|
+
|
604
624
|
class RollbackInstanceRequest
|
605
625
|
# @private
|
606
626
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -634,6 +654,14 @@ module Google
|
|
634
654
|
end
|
635
655
|
end
|
636
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
|
+
|
637
665
|
class StartInstanceRequest
|
638
666
|
# @private
|
639
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-08-
|
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: []
|