google-apis-notebooks_v2 0.22.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: 783905761ddb52afedb577a1fd9607eed61ada3cbf3cddb9aced29d712d80b9f
4
- data.tar.gz: 1250a9d0ee97f7c4327b7dca214167a656bb925bc9b9e4c2a666b560acea5b11
3
+ metadata.gz: 2410627873953ed4bee6149dd75974d17780617d17bda727f88a34e445d79bec
4
+ data.tar.gz: 74d37e83d1af596ef9db0994dafd7f744ad3d9f17c33cd10131d239abba4a7ff
5
5
  SHA512:
6
- metadata.gz: 15cb4539ea767549647ade8793a8fdff5024f184b0d2643541c1f4e0bbc70b04a9ca02e9c5a98f8c1bfe6966e376d376c313a8d6b2c2f195e3c85b0c9dd00dcd
7
- data.tar.gz: a1076c770fedcfdf21650df823c409faace9cef0738ec56cbfc16542b15be1e49ed31f17fae6a3538aa580b503cd58ed325d62029aaaae399f8cfe4078544bf5
6
+ metadata.gz: 634546a6ade000cfefed0d5ac7d4b2ec1b7c7f33cd267bdd24e152adb66d21235ca5961d889c12f0fde896653e8248a24a43da8ca3acc8ca74f69a1e57c879ab
7
+ data.tar.gz: fc3bc0bd89b497440c84158bf407845e7e621a6ec887f10132fbffb945b2eb2c06b83f74383f4ee9f134cef1f62cefd2fe9ed135f7ebe99f6158366535a6bcac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ### v0.22.0 (2025-03-30)
4
9
 
5
10
  * Regenerated from discovery document revision 20250319
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
 
@@ -280,13 +280,6 @@ module Google
280
280
  # @return [String]
281
281
  attr_accessor :confidential_instance_type
282
282
 
283
- # Optional. Defines whether the instance should have confidential compute
284
- # enabled.
285
- # Corresponds to the JSON property `enableConfidentialCompute`
286
- # @return [Boolean]
287
- attr_accessor :enable_confidential_compute
288
- alias_method :enable_confidential_compute?, :enable_confidential_compute
289
-
290
283
  def initialize(**args)
291
284
  update!(**args)
292
285
  end
@@ -294,7 +287,6 @@ module Google
294
287
  # Update properties of this object
295
288
  def update!(**args)
296
289
  @confidential_instance_type = args[:confidential_instance_type] if args.key?(:confidential_instance_type)
297
- @enable_confidential_compute = args[:enable_confidential_compute] if args.key?(:enable_confidential_compute)
298
290
  end
299
291
  end
300
292
 
@@ -714,6 +706,11 @@ module Google
714
706
  # @return [Array<Google::Apis::NotebooksV2::NetworkInterface>]
715
707
  attr_accessor :network_interfaces
716
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
+
717
714
  # Optional. The service account that serves as an identity for the VM instance.
718
715
  # Currently supports only one service account.
719
716
  # Corresponds to the JSON property `serviceAccounts`
@@ -757,6 +754,7 @@ module Google
757
754
  @metadata = args[:metadata] if args.key?(:metadata)
758
755
  @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
759
756
  @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
757
+ @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
760
758
  @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
761
759
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
762
760
  @tags = args[:tags] if args.key?(:tags)
@@ -809,6 +807,14 @@ module Google
809
807
  attr_accessor :disable_proxy_access
810
808
  alias_method :disable_proxy_access?, :disable_proxy_access
811
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
+
812
818
  # Optional. Flag that specifies that a notebook can be accessed with third party
813
819
  # identity provider.
814
820
  # Corresponds to the JSON property `enableThirdPartyIdentity`
@@ -840,10 +846,9 @@ module Google
840
846
  # @return [String]
841
847
  attr_accessor :id
842
848
 
843
- # Optional. Input only. The owner of this instance after creation. Format: `
844
- # alias@example.com` Currently supports one owner only. If not specified, all of
845
- # the service account users of your VM instance's service account can use the
846
- # 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.
847
852
  # Corresponds to the JSON property `instanceOwners`
848
853
  # @return [Array<String>]
849
854
  attr_accessor :instance_owners
@@ -907,6 +912,7 @@ module Google
907
912
  @create_time = args[:create_time] if args.key?(:create_time)
908
913
  @creator = args[:creator] if args.key?(:creator)
909
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)
910
916
  @enable_third_party_identity = args[:enable_third_party_identity] if args.key?(:enable_third_party_identity)
911
917
  @gce_setup = args[:gce_setup] if args.key?(:gce_setup)
912
918
  @health_info = args[:health_info] if args.key?(:health_info)
@@ -1341,6 +1347,44 @@ module Google
1341
1347
  end
1342
1348
  end
1343
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
+
1344
1388
  # Request for resetting a notebook instance
1345
1389
  class ResetInstanceRequest
1346
1390
  include Google::Apis::Core::Hashable
@@ -1507,7 +1551,7 @@ module Google
1507
1551
  # Enables monitoring and attestation of the boot integrity of the VM instance.
1508
1552
  # The attestation is performed against the integrity policy baseline. This
1509
1553
  # baseline is initially derived from the implicitly trusted boot image when the
1510
- # VM instance is created. Enabled by default.
1554
+ # VM instance is created.
1511
1555
  # Corresponds to the JSON property `enableIntegrityMonitoring`
1512
1556
  # @return [Boolean]
1513
1557
  attr_accessor :enable_integrity_monitoring
@@ -1522,8 +1566,7 @@ module Google
1522
1566
  attr_accessor :enable_secure_boot
1523
1567
  alias_method :enable_secure_boot?, :enable_secure_boot
1524
1568
 
1525
- # Optional. Defines whether the VM instance has the vTPM enabled. Enabled by
1526
- # default.
1569
+ # Optional. Defines whether the VM instance has the vTPM enabled.
1527
1570
  # Corresponds to the JSON property `enableVtpm`
1528
1571
  # @return [Boolean]
1529
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.22.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 = "20250319"
25
+ REVISION = "20250507"
26
26
  end
27
27
  end
28
28
  end
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class ReservationAffinity
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class ResetInstanceRequest
200
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
207
 
@@ -359,7 +365,6 @@ module Google
359
365
  # @private
360
366
  class Representation < Google::Apis::Core::JsonRepresentation
361
367
  property :confidential_instance_type, as: 'confidentialInstanceType'
362
- property :enable_confidential_compute, as: 'enableConfidentialCompute'
363
368
  end
364
369
  end
365
370
 
@@ -476,6 +481,8 @@ module Google
476
481
  property :min_cpu_platform, as: 'minCpuPlatform'
477
482
  collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::NotebooksV2::NetworkInterface, decorator: Google::Apis::NotebooksV2::NetworkInterface::Representation
478
483
 
484
+ property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::NotebooksV2::ReservationAffinity, decorator: Google::Apis::NotebooksV2::ReservationAffinity::Representation
485
+
479
486
  collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::NotebooksV2::ServiceAccount, decorator: Google::Apis::NotebooksV2::ServiceAccount::Representation
480
487
 
481
488
  property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::NotebooksV2::ShieldedInstanceConfig, decorator: Google::Apis::NotebooksV2::ShieldedInstanceConfig::Representation
@@ -500,6 +507,7 @@ module Google
500
507
  property :create_time, as: 'createTime'
501
508
  property :creator, as: 'creator'
502
509
  property :disable_proxy_access, as: 'disableProxyAccess'
510
+ property :enable_deletion_protection, as: 'enableDeletionProtection'
503
511
  property :enable_third_party_identity, as: 'enableThirdPartyIdentity'
504
512
  property :gce_setup, as: 'gceSetup', class: Google::Apis::NotebooksV2::GceSetup, decorator: Google::Apis::NotebooksV2::GceSetup::Representation
505
513
 
@@ -615,6 +623,15 @@ module Google
615
623
  end
616
624
  end
617
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
+
618
635
  class ResetInstanceRequest
619
636
  # @private
620
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.22.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-30 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.22.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: []