google-apis-notebooks_v2 0.21.0 → 0.23.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: 33b9211c50052a606a4c6e3884c5712e07f348c20590d4109a7b1db8b3b8c07c
4
- data.tar.gz: 807f10104a5eb9ff4c39e3e0fedcf11f7eb930244cb095cce6ad9a6dd7fa4ca4
3
+ metadata.gz: 2410627873953ed4bee6149dd75974d17780617d17bda727f88a34e445d79bec
4
+ data.tar.gz: 74d37e83d1af596ef9db0994dafd7f744ad3d9f17c33cd10131d239abba4a7ff
5
5
  SHA512:
6
- metadata.gz: ebc005afff691c5cc187608b4da791ac017ea678b3281cf4623e2435f2cdee654a85ece1f0f22389330c2c17bc904e3ee48d5376b491e78543dd9fde10cf47d9
7
- data.tar.gz: 3d0c8e50e23fa31568d8fd6555de95161a4c71207bd202f221c16321b5efe243fedbeff5e2bac257495d37b1264a87152de03ca9180731e0b88c1d6238dd105d
6
+ metadata.gz: 634546a6ade000cfefed0d5ac7d4b2ec1b7c7f33cd267bdd24e152adb66d21235ca5961d889c12f0fde896653e8248a24a43da8ca3acc8ca74f69a1e57c879ab
7
+ data.tar.gz: fc3bc0bd89b497440c84158bf407845e7e621a6ec887f10132fbffb945b2eb2c06b83f74383f4ee9f134cef1f62cefd2fe9ed135f7ebe99f6158366535a6bcac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-notebooks_v2
2
2
 
3
+ ### v0.23.0 (2025-05-18)
4
+
5
+ * Regenerated from discovery document revision 20250507
6
+ * Regenerated using generator version 0.17.0
7
+
8
+ ### v0.22.0 (2025-03-30)
9
+
10
+ * Regenerated from discovery document revision 20250319
11
+
3
12
  ### v0.21.0 (2025-03-23)
4
13
 
5
14
  * Regenerated from discovery document revision 20250224
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/notebooks/docs/) may provid
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -271,6 +271,25 @@ module Google
271
271
  end
272
272
  end
273
273
 
274
+ # A set of Confidential Instance options.
275
+ class ConfidentialInstanceConfig
276
+ include Google::Apis::Core::Hashable
277
+
278
+ # Optional. Defines the type of technology used by the confidential instance.
279
+ # Corresponds to the JSON property `confidentialInstanceType`
280
+ # @return [String]
281
+ attr_accessor :confidential_instance_type
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @confidential_instance_type = args[:confidential_instance_type] if args.key?(:confidential_instance_type)
290
+ end
291
+ end
292
+
274
293
  # Response for getting WbI configurations in a location
275
294
  class Config
276
295
  include Google::Apis::Core::Hashable
@@ -629,6 +648,11 @@ module Google
629
648
  # @return [Google::Apis::NotebooksV2::BootDisk]
630
649
  attr_accessor :boot_disk
631
650
 
651
+ # A set of Confidential Instance options.
652
+ # Corresponds to the JSON property `confidentialInstanceConfig`
653
+ # @return [Google::Apis::NotebooksV2::ConfidentialInstanceConfig]
654
+ attr_accessor :confidential_instance_config
655
+
632
656
  # Definition of a container image for starting a notebook instance with the
633
657
  # environment installed in a container.
634
658
  # Corresponds to the JSON property `containerImage`
@@ -682,6 +706,11 @@ module Google
682
706
  # @return [Array<Google::Apis::NotebooksV2::NetworkInterface>]
683
707
  attr_accessor :network_interfaces
684
708
 
709
+ # A reservation that an instance can consume from.
710
+ # Corresponds to the JSON property `reservationAffinity`
711
+ # @return [Google::Apis::NotebooksV2::ReservationAffinity]
712
+ attr_accessor :reservation_affinity
713
+
685
714
  # Optional. The service account that serves as an identity for the VM instance.
686
715
  # Currently supports only one service account.
687
716
  # Corresponds to the JSON property `serviceAccounts`
@@ -715,6 +744,7 @@ module Google
715
744
  def update!(**args)
716
745
  @accelerator_configs = args[:accelerator_configs] if args.key?(:accelerator_configs)
717
746
  @boot_disk = args[:boot_disk] if args.key?(:boot_disk)
747
+ @confidential_instance_config = args[:confidential_instance_config] if args.key?(:confidential_instance_config)
718
748
  @container_image = args[:container_image] if args.key?(:container_image)
719
749
  @data_disks = args[:data_disks] if args.key?(:data_disks)
720
750
  @disable_public_ip = args[:disable_public_ip] if args.key?(:disable_public_ip)
@@ -724,6 +754,7 @@ module Google
724
754
  @metadata = args[:metadata] if args.key?(:metadata)
725
755
  @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
726
756
  @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
757
+ @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
727
758
  @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
728
759
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
729
760
  @tags = args[:tags] if args.key?(:tags)
@@ -776,6 +807,14 @@ module Google
776
807
  attr_accessor :disable_proxy_access
777
808
  alias_method :disable_proxy_access?, :disable_proxy_access
778
809
 
810
+ # Optional. If true, deletion protection will be enabled for this Workbench
811
+ # Instance. If false, deletion protection will be disabled for this Workbench
812
+ # Instance.
813
+ # Corresponds to the JSON property `enableDeletionProtection`
814
+ # @return [Boolean]
815
+ attr_accessor :enable_deletion_protection
816
+ alias_method :enable_deletion_protection?, :enable_deletion_protection
817
+
779
818
  # Optional. Flag that specifies that a notebook can be accessed with third party
780
819
  # identity provider.
781
820
  # Corresponds to the JSON property `enableThirdPartyIdentity`
@@ -807,10 +846,9 @@ module Google
807
846
  # @return [String]
808
847
  attr_accessor :id
809
848
 
810
- # Optional. Input only. The owner of this instance after creation. Format: `
811
- # alias@example.com` Currently supports one owner only. If not specified, all of
812
- # the service account users of your VM instance's service account can use the
813
- # instance.
849
+ # Optional. The owner of this instance after creation. Format: `alias@example.
850
+ # com` Currently supports one owner only. If not specified, all of the service
851
+ # account users of your VM instance's service account can use the instance.
814
852
  # Corresponds to the JSON property `instanceOwners`
815
853
  # @return [Array<String>]
816
854
  attr_accessor :instance_owners
@@ -874,6 +912,7 @@ module Google
874
912
  @create_time = args[:create_time] if args.key?(:create_time)
875
913
  @creator = args[:creator] if args.key?(:creator)
876
914
  @disable_proxy_access = args[:disable_proxy_access] if args.key?(:disable_proxy_access)
915
+ @enable_deletion_protection = args[:enable_deletion_protection] if args.key?(:enable_deletion_protection)
877
916
  @enable_third_party_identity = args[:enable_third_party_identity] if args.key?(:enable_third_party_identity)
878
917
  @gce_setup = args[:gce_setup] if args.key?(:gce_setup)
879
918
  @health_info = args[:health_info] if args.key?(:health_info)
@@ -1308,6 +1347,44 @@ module Google
1308
1347
  end
1309
1348
  end
1310
1349
 
1350
+ # A reservation that an instance can consume from.
1351
+ class ReservationAffinity
1352
+ include Google::Apis::Core::Hashable
1353
+
1354
+ # Required. Specifies the type of reservation from which this instance can
1355
+ # consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or
1356
+ # RESERVATION_NONE. See Consuming reserved instances for examples.
1357
+ # Corresponds to the JSON property `consumeReservationType`
1358
+ # @return [String]
1359
+ attr_accessor :consume_reservation_type
1360
+
1361
+ # Optional. Corresponds to the label key of a reservation resource. To target a
1362
+ # RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as
1363
+ # the key and specify the name of your reservation as its value.
1364
+ # Corresponds to the JSON property `key`
1365
+ # @return [String]
1366
+ attr_accessor :key
1367
+
1368
+ # Optional. Corresponds to the label values of a reservation resource. This can
1369
+ # be either a name to a reservation in the same project or "projects/different-
1370
+ # project/reservations/some-reservation-name" to target a shared reservation in
1371
+ # the same zone but in a different project.
1372
+ # Corresponds to the JSON property `values`
1373
+ # @return [Array<String>]
1374
+ attr_accessor :values
1375
+
1376
+ def initialize(**args)
1377
+ update!(**args)
1378
+ end
1379
+
1380
+ # Update properties of this object
1381
+ def update!(**args)
1382
+ @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
1383
+ @key = args[:key] if args.key?(:key)
1384
+ @values = args[:values] if args.key?(:values)
1385
+ end
1386
+ end
1387
+
1311
1388
  # Request for resetting a notebook instance
1312
1389
  class ResetInstanceRequest
1313
1390
  include Google::Apis::Core::Hashable
@@ -1474,7 +1551,7 @@ module Google
1474
1551
  # Enables monitoring and attestation of the boot integrity of the VM instance.
1475
1552
  # The attestation is performed against the integrity policy baseline. This
1476
1553
  # baseline is initially derived from the implicitly trusted boot image when the
1477
- # VM instance is created. Enabled by default.
1554
+ # VM instance is created.
1478
1555
  # Corresponds to the JSON property `enableIntegrityMonitoring`
1479
1556
  # @return [Boolean]
1480
1557
  attr_accessor :enable_integrity_monitoring
@@ -1489,8 +1566,7 @@ module Google
1489
1566
  attr_accessor :enable_secure_boot
1490
1567
  alias_method :enable_secure_boot?, :enable_secure_boot
1491
1568
 
1492
- # Optional. Defines whether the VM instance has the vTPM enabled. Enabled by
1493
- # default.
1569
+ # Optional. Defines whether the VM instance has the vTPM enabled.
1494
1570
  # Corresponds to the JSON property `enableVtpm`
1495
1571
  # @return [Boolean]
1496
1572
  attr_accessor :enable_vtpm
@@ -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.21.0"
19
+ GEM_VERSION = "0.23.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250224"
25
+ REVISION = "20250507"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,12 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class ConfidentialInstanceConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class Config
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
@@ -190,6 +196,12 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
199
+ class ReservationAffinity
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
193
205
  class ResetInstanceRequest
194
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
207
 
@@ -349,6 +361,13 @@ module Google
349
361
  end
350
362
  end
351
363
 
364
+ class ConfidentialInstanceConfig
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :confidential_instance_type, as: 'confidentialInstanceType'
368
+ end
369
+ end
370
+
352
371
  class Config
353
372
  # @private
354
373
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -447,6 +466,8 @@ module Google
447
466
 
448
467
  property :boot_disk, as: 'bootDisk', class: Google::Apis::NotebooksV2::BootDisk, decorator: Google::Apis::NotebooksV2::BootDisk::Representation
449
468
 
469
+ property :confidential_instance_config, as: 'confidentialInstanceConfig', class: Google::Apis::NotebooksV2::ConfidentialInstanceConfig, decorator: Google::Apis::NotebooksV2::ConfidentialInstanceConfig::Representation
470
+
450
471
  property :container_image, as: 'containerImage', class: Google::Apis::NotebooksV2::ContainerImage, decorator: Google::Apis::NotebooksV2::ContainerImage::Representation
451
472
 
452
473
  collection :data_disks, as: 'dataDisks', class: Google::Apis::NotebooksV2::DataDisk, decorator: Google::Apis::NotebooksV2::DataDisk::Representation
@@ -460,6 +481,8 @@ module Google
460
481
  property :min_cpu_platform, as: 'minCpuPlatform'
461
482
  collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::NotebooksV2::NetworkInterface, decorator: Google::Apis::NotebooksV2::NetworkInterface::Representation
462
483
 
484
+ property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::NotebooksV2::ReservationAffinity, decorator: Google::Apis::NotebooksV2::ReservationAffinity::Representation
485
+
463
486
  collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::NotebooksV2::ServiceAccount, decorator: Google::Apis::NotebooksV2::ServiceAccount::Representation
464
487
 
465
488
  property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV2::ShieldedInstanceConfig, decorator: Google::Apis::NotebooksV2::ShieldedInstanceConfig::Representation
@@ -484,6 +507,7 @@ module Google
484
507
  property :create_time, as: 'createTime'
485
508
  property :creator, as: 'creator'
486
509
  property :disable_proxy_access, as: 'disableProxyAccess'
510
+ property :enable_deletion_protection, as: 'enableDeletionProtection'
487
511
  property :enable_third_party_identity, as: 'enableThirdPartyIdentity'
488
512
  property :gce_setup, as: 'gceSetup', class: Google::Apis::NotebooksV2::GceSetup, decorator: Google::Apis::NotebooksV2::GceSetup::Representation
489
513
 
@@ -599,6 +623,15 @@ module Google
599
623
  end
600
624
  end
601
625
 
626
+ class ReservationAffinity
627
+ # @private
628
+ class Representation < Google::Apis::Core::JsonRepresentation
629
+ property :consume_reservation_type, as: 'consumeReservationType'
630
+ property :key, as: 'key'
631
+ collection :values, as: 'values'
632
+ end
633
+ end
634
+
602
635
  class ResetInstanceRequest
603
636
  # @private
604
637
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -84,6 +84,9 @@ module Google
84
84
  # Lists information about the supported locations for this service.
85
85
  # @param [String] name
86
86
  # The resource that owns the locations collection, if applicable.
87
+ # @param [Array<String>, String] extra_location_types
88
+ # Optional. A list of extra location types that should be used as conditions for
89
+ # controlling the visibility of the locations.
87
90
  # @param [String] filter
88
91
  # A filter to narrow down results to a preferred subset. The filtering language
89
92
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -111,11 +114,12 @@ module Google
111
114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
114
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
115
118
  command = make_simple_command(:get, 'v2/{+name}/locations', options)
116
119
  command.response_representation = Google::Apis::NotebooksV2::ListLocationsResponse::Representation
117
120
  command.response_class = Google::Apis::NotebooksV2::ListLocationsResponse
118
121
  command.params['name'] = name unless name.nil?
122
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
119
123
  command.query['filter'] = filter unless filter.nil?
120
124
  command.query['pageSize'] = page_size unless page_size.nil?
121
125
  command.query['pageToken'] = page_token unless page_token.nil?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-notebooks_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v2/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.21.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-notebooks_v2/v0.23.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-notebooks_v2
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '2.7'
69
+ version: '3.1'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.5
76
+ rubygems_version: 3.6.8
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Notebooks API V2
79
79
  test_files: []