google-apis-notebooks_v2 0.9.0 → 0.10.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: 53a0dd872cddd5bfbc0a8673d926e190f9683f1d92997f84e3b1edf51249f24e
4
- data.tar.gz: 220a6081277d39209f02159182ccdec510be9f54d8e48d5b2b5818118d96eb69
3
+ metadata.gz: 0fe306df2a8928003ee20027c4d23f9bed4de23f065263c6935a7df9ac70ec4f
4
+ data.tar.gz: e068404534ede512899380e8616154f3c7f6052fb461d114946e522516d8878f
5
5
  SHA512:
6
- metadata.gz: 5ef869e6c2b2d4e7eb43335a570c0672ed5ccf3b7f8a82ec01d5cc405b39f85237924d5c7478105f625f41da74239a98c224d4fcac30010a7255a462024f7bca
7
- data.tar.gz: ffa514845b17d74c64167ceb5fcbc3ffdb31c793aab57632b9015f3ca3439cf43d88794eb93cfac09c812bbc7bec3edb9241f3e2d08af5b885a6cd0f810cf62d
6
+ metadata.gz: 866e7677afbeef72aefb5f22f75ec4cae8e42f746e62200a2c6a5464837ee2b221fae34c4183ef33c09883d9b1057d5a1ab7ece08ab35d153ecf9eef8f46bad9
7
+ data.tar.gz: 814c5a8359b1840579f3002b99d3a2e517c8059fb7ac020396f8a48632423ab332e619681a2ba4c8a8a09a71996c20335fb92e4a669ac6b8d5bfcbbb94549181
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-notebooks_v2
2
2
 
3
+ ### v0.10.0 (2024-01-22)
4
+
5
+ * Regenerated from discovery document revision 20231227
6
+ * Regenerated using generator version 0.13.0
7
+
3
8
  ### v0.9.0 (2023-12-17)
4
9
 
5
10
  * Regenerated from discovery document revision 20231213
@@ -1247,6 +1247,31 @@ module Google
1247
1247
  end
1248
1248
  end
1249
1249
 
1250
+ # Request for resizing the notebook instance disks
1251
+ class ResizeDiskRequest
1252
+ include Google::Apis::Core::Hashable
1253
+
1254
+ # The definition of a boot disk.
1255
+ # Corresponds to the JSON property `bootDisk`
1256
+ # @return [Google::Apis::NotebooksV2::BootDisk]
1257
+ attr_accessor :boot_disk
1258
+
1259
+ # An instance-attached disk resource.
1260
+ # Corresponds to the JSON property `dataDisk`
1261
+ # @return [Google::Apis::NotebooksV2::DataDisk]
1262
+ attr_accessor :data_disk
1263
+
1264
+ def initialize(**args)
1265
+ update!(**args)
1266
+ end
1267
+
1268
+ # Update properties of this object
1269
+ def update!(**args)
1270
+ @boot_disk = args[:boot_disk] if args.key?(:boot_disk)
1271
+ @data_disk = args[:data_disk] if args.key?(:data_disk)
1272
+ end
1273
+ end
1274
+
1250
1275
  # Request for rollbacking a notebook instance
1251
1276
  class RollbackInstanceRequest
1252
1277
  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.9.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231213"
25
+ REVISION = "20231227"
26
26
  end
27
27
  end
28
28
  end
@@ -190,6 +190,12 @@ module Google
190
190
  include Google::Apis::Core::JsonObjectSupport
191
191
  end
192
192
 
193
+ class ResizeDiskRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
193
199
  class RollbackInstanceRequest
194
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
201
 
@@ -567,6 +573,16 @@ module Google
567
573
  end
568
574
  end
569
575
 
576
+ class ResizeDiskRequest
577
+ # @private
578
+ class Representation < Google::Apis::Core::JsonRepresentation
579
+ property :boot_disk, as: 'bootDisk', class: Google::Apis::NotebooksV2::BootDisk, decorator: Google::Apis::NotebooksV2::BootDisk::Representation
580
+
581
+ property :data_disk, as: 'dataDisk', class: Google::Apis::NotebooksV2::DataDisk, decorator: Google::Apis::NotebooksV2::DataDisk::Representation
582
+
583
+ end
584
+ end
585
+
570
586
  class RollbackInstanceRequest
571
587
  # @private
572
588
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/notebooks/docs/
34
34
  class AIPlatformNotebooksService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://notebooks.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://notebooks.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-notebooks_v2',
48
50
  client_version: Google::Apis::NotebooksV2::GEM_VERSION)
49
51
  @batch_path = 'batch'
@@ -523,6 +525,40 @@ module Google
523
525
  execute_or_queue_command(command, &block)
524
526
  end
525
527
 
528
+ # Resize a notebook instance disk to a higher capacity.
529
+ # @param [String] notebook_instance
530
+ # Required. Format: `projects/`project_id`/locations/`location`/instances/`
531
+ # instance_id``
532
+ # @param [Google::Apis::NotebooksV2::ResizeDiskRequest] resize_disk_request_object
533
+ # @param [String] fields
534
+ # Selector specifying which fields to include in a partial response.
535
+ # @param [String] quota_user
536
+ # Available to use for quota purposes for server-side applications. Can be any
537
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
538
+ # @param [Google::Apis::RequestOptions] options
539
+ # Request-specific options
540
+ #
541
+ # @yield [result, err] Result & error if block supplied
542
+ # @yieldparam result [Google::Apis::NotebooksV2::Operation] parsed result object
543
+ # @yieldparam err [StandardError] error object if request failed
544
+ #
545
+ # @return [Google::Apis::NotebooksV2::Operation]
546
+ #
547
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
548
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
550
+ def resize_instance_disk(notebook_instance, resize_disk_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
551
+ command = make_simple_command(:post, 'v2/{+notebookInstance}:resizeDisk', options)
552
+ command.request_representation = Google::Apis::NotebooksV2::ResizeDiskRequest::Representation
553
+ command.request_object = resize_disk_request_object
554
+ command.response_representation = Google::Apis::NotebooksV2::Operation::Representation
555
+ command.response_class = Google::Apis::NotebooksV2::Operation
556
+ command.params['notebookInstance'] = notebook_instance unless notebook_instance.nil?
557
+ command.query['fields'] = fields unless fields.nil?
558
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
559
+ execute_or_queue_command(command, &block)
560
+ end
561
+
526
562
  # Rollbacks a notebook instance to the previous version.
527
563
  # @param [String] name
528
564
  # 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.9.0
4
+ version: 0.10.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: 2023-12-17 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.10.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Notebooks API V2