google-cloud-alloy_db-v1beta 0.11.0 → 0.13.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: 0e96ffd3ef44b95c421c4d9c6bcf5600e49a581dc20f445656a81677e6d6076e
4
- data.tar.gz: '0598102bea45a61b48fd8149f1aec3bc8c71de848d14094b65200e3e783864cd'
3
+ metadata.gz: fe841c5443d7b0b08609914ebbad7758bb2ee54751b9a9c253dd9052a1fe732a
4
+ data.tar.gz: c8f5c2450c127858df5725eba5214f5b3d2b2a570253453a108f4149bfe76fbb
5
5
  SHA512:
6
- metadata.gz: fe59e6f0bf176489febca31dcd2a369a0ac5d845eedebad107f0826c86deff262698cb7c612e58ae536c1bd3e7860caf114ffed77bab59a4f71e2398eee0ccb8
7
- data.tar.gz: 7e89c6be29081b7a3f4f327ea6fe138ffba9cd5c4cbfd31458949128c8d5d49ba748db39a7c80c0dc3d53462fd691f646dcee40ffa96751459e8f89fe73bfa4a
6
+ metadata.gz: 6f50974dcab5d064ee86b5e967f3161004b82a03cd0cead7a650a386c2d1885c592c813f193804e152a4eb28a2d5b1d39cd1724b51013c43a60cc39241cd823b
7
+ data.tar.gz: 87305955655cd47a4aba62586dd178735657951c9665dbf8fa7a56ef7afe797ba34c7528f5693fd6d220a8eeb2833ead798f0f1848f3636dedf51375167b823f
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -1216,9 +1216,13 @@ module Google
1216
1216
  #
1217
1217
  # @param backup_source [::Google::Cloud::AlloyDB::V1beta::BackupSource, ::Hash]
1218
1218
  # Backup source.
1219
+ #
1220
+ # Note: The following fields are mutually exclusive: `backup_source`, `continuous_backup_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1219
1221
  # @param continuous_backup_source [::Google::Cloud::AlloyDB::V1beta::ContinuousBackupSource, ::Hash]
1220
1222
  # ContinuousBackup source. Continuous backup needs to be enabled in the
1221
1223
  # source cluster for this operation to succeed.
1224
+ #
1225
+ # Note: The following fields are mutually exclusive: `continuous_backup_source`, `backup_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1222
1226
  # @param parent [::String]
1223
1227
  # Required. The name of the parent resource. For the required format, see the
1224
1228
  # comment on the Cluster.name field.
@@ -4176,6 +4180,13 @@ module Google
4176
4180
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
4177
4181
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
4178
4182
  # * (`nil`) indicating no credentials
4183
+ #
4184
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
4185
+ # external source for authentication to Google Cloud, you must validate it before
4186
+ # providing it to a Google API client library. Providing an unvalidated credential
4187
+ # configuration to Google APIs can compromise the security of your systems and data.
4188
+ # For more information, refer to [Validate credential configurations from external
4189
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
4179
4190
  # @return [::Object]
4180
4191
  # @!attribute [rw] scope
4181
4192
  # The OAuth scopes
@@ -640,6 +640,13 @@ module Google
640
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
641
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
642
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
643
650
  # @return [::Object]
644
651
  # @!attribute [rw] scope
645
652
  # The OAuth scopes
@@ -318,10 +318,10 @@ module Google
318
318
  # @param order_by [::String]
319
319
  # Optional. Hint for how to order the results
320
320
  # @yield [result, operation] Access the result along with the TransportOperation object
321
- # @yieldparam result [::Google::Cloud::AlloyDB::V1beta::ListClustersResponse]
321
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Cluster>]
322
322
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
323
323
  #
324
- # @return [::Google::Cloud::AlloyDB::V1beta::ListClustersResponse]
324
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Cluster>]
325
325
  #
326
326
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
327
327
  #
@@ -373,7 +373,9 @@ module Google
373
373
  retry_policy: @config.retry_policy
374
374
 
375
375
  @alloy_db_admin_stub.list_clusters request, options do |result, operation|
376
+ result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_clusters, "clusters", request, result, options
376
377
  yield result, operation if block_given?
378
+ throw :response, result
377
379
  end
378
380
  rescue ::Gapic::Rest::Error => e
379
381
  raise ::Google::Cloud::Error.from_error(e)
@@ -1152,9 +1154,13 @@ module Google
1152
1154
  #
1153
1155
  # @param backup_source [::Google::Cloud::AlloyDB::V1beta::BackupSource, ::Hash]
1154
1156
  # Backup source.
1157
+ #
1158
+ # Note: The following fields are mutually exclusive: `backup_source`, `continuous_backup_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1155
1159
  # @param continuous_backup_source [::Google::Cloud::AlloyDB::V1beta::ContinuousBackupSource, ::Hash]
1156
1160
  # ContinuousBackup source. Continuous backup needs to be enabled in the
1157
1161
  # source cluster for this operation to succeed.
1162
+ #
1163
+ # Note: The following fields are mutually exclusive: `continuous_backup_source`, `backup_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1158
1164
  # @param parent [::String]
1159
1165
  # Required. The name of the parent resource. For the required format, see the
1160
1166
  # comment on the Cluster.name field.
@@ -1393,10 +1399,10 @@ module Google
1393
1399
  # @param order_by [::String]
1394
1400
  # Optional. Hint for how to order the results
1395
1401
  # @yield [result, operation] Access the result along with the TransportOperation object
1396
- # @yieldparam result [::Google::Cloud::AlloyDB::V1beta::ListInstancesResponse]
1402
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Instance>]
1397
1403
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1398
1404
  #
1399
- # @return [::Google::Cloud::AlloyDB::V1beta::ListInstancesResponse]
1405
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Instance>]
1400
1406
  #
1401
1407
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1402
1408
  #
@@ -1448,7 +1454,9 @@ module Google
1448
1454
  retry_policy: @config.retry_policy
1449
1455
 
1450
1456
  @alloy_db_admin_stub.list_instances request, options do |result, operation|
1457
+ result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_instances, "instances", request, result, options
1451
1458
  yield result, operation if block_given?
1459
+ throw :response, result
1452
1460
  end
1453
1461
  rescue ::Gapic::Rest::Error => e
1454
1462
  raise ::Google::Cloud::Error.from_error(e)
@@ -2540,10 +2548,10 @@ module Google
2540
2548
  # @param order_by [::String]
2541
2549
  # Hint for how to order the results
2542
2550
  # @yield [result, operation] Access the result along with the TransportOperation object
2543
- # @yieldparam result [::Google::Cloud::AlloyDB::V1beta::ListBackupsResponse]
2551
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Backup>]
2544
2552
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2545
2553
  #
2546
- # @return [::Google::Cloud::AlloyDB::V1beta::ListBackupsResponse]
2554
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Backup>]
2547
2555
  #
2548
2556
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2549
2557
  #
@@ -2595,7 +2603,9 @@ module Google
2595
2603
  retry_policy: @config.retry_policy
2596
2604
 
2597
2605
  @alloy_db_admin_stub.list_backups request, options do |result, operation|
2606
+ result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_backups, "backups", request, result, options
2598
2607
  yield result, operation if block_given?
2608
+ throw :response, result
2599
2609
  end
2600
2610
  rescue ::Gapic::Rest::Error => e
2601
2611
  raise ::Google::Cloud::Error.from_error(e)
@@ -3339,10 +3349,10 @@ module Google
3339
3349
  # @param order_by [::String]
3340
3350
  # Optional. Hint for how to order the results
3341
3351
  # @yield [result, operation] Access the result along with the TransportOperation object
3342
- # @yieldparam result [::Google::Cloud::AlloyDB::V1beta::ListUsersResponse]
3352
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::User>]
3343
3353
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
3344
3354
  #
3345
- # @return [::Google::Cloud::AlloyDB::V1beta::ListUsersResponse]
3355
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::User>]
3346
3356
  #
3347
3357
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3348
3358
  #
@@ -3394,7 +3404,9 @@ module Google
3394
3404
  retry_policy: @config.retry_policy
3395
3405
 
3396
3406
  @alloy_db_admin_stub.list_users request, options do |result, operation|
3407
+ result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_users, "users", request, result, options
3397
3408
  yield result, operation if block_given?
3409
+ throw :response, result
3398
3410
  end
3399
3411
  rescue ::Gapic::Rest::Error => e
3400
3412
  raise ::Google::Cloud::Error.from_error(e)
@@ -3915,6 +3927,13 @@ module Google
3915
3927
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3916
3928
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3917
3929
  # * (`nil`) indicating no credentials
3930
+ #
3931
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
3932
+ # external source for authentication to Google Cloud, you must validate it before
3933
+ # providing it to a Google API client library. Providing an unvalidated credential
3934
+ # configuration to Google APIs can compromise the security of your systems and data.
3935
+ # For more information, refer to [Validate credential configurations from external
3936
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
3918
3937
  # @return [::Object]
3919
3938
  # @!attribute [rw] scope
3920
3939
  # The OAuth scopes
@@ -502,6 +502,13 @@ module Google
502
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
503
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
504
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
505
512
  # @return [::Object]
506
513
  # @!attribute [rw] scope
507
514
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AlloyDB
23
23
  module V1beta
24
- VERSION = "0.11.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -409,6 +409,14 @@ module Google
409
409
  # @return [::Array<::String>]
410
410
  # An allowlist of the fully qualified names of RPCs that should be included
411
411
  # on public client surfaces.
412
+ # @!attribute [rw] generate_omitted_as_internal
413
+ # @return [::Boolean]
414
+ # Setting this to true indicates to the client generators that methods
415
+ # that would be excluded from the generation should instead be generated
416
+ # in a way that indicates these methods should not be consumed by
417
+ # end users. How this is expressed is up to individual language
418
+ # implementations to decide. Some examples may be: added annotations,
419
+ # obfuscated identifiers, or other language idiomatic patterns.
412
420
  class SelectiveGapicGeneration
413
421
  include ::Google::Protobuf::MessageExts
414
422
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -158,9 +158,13 @@ module Google
158
158
  # @!attribute [rw] time_based_retention
159
159
  # @return [::Google::Cloud::AlloyDB::V1beta::AutomatedBackupPolicy::TimeBasedRetention]
160
160
  # Time-based Backup retention policy.
161
+ #
162
+ # Note: The following fields are mutually exclusive: `time_based_retention`, `quantity_based_retention`. If a field in that set is populated, all other fields in the set will automatically be cleared.
161
163
  # @!attribute [rw] quantity_based_retention
162
164
  # @return [::Google::Cloud::AlloyDB::V1beta::AutomatedBackupPolicy::QuantityBasedRetention]
163
165
  # Quantity-based Backup retention policy to retain recent backups.
166
+ #
167
+ # Note: The following fields are mutually exclusive: `quantity_based_retention`, `time_based_retention`. If a field in that set is populated, all other fields in the set will automatically be cleared.
164
168
  # @!attribute [rw] enabled
165
169
  # @return [::Boolean]
166
170
  # Whether automated automated backups are enabled. If not set, defaults to
@@ -361,12 +365,18 @@ module Google
361
365
  # @!attribute [r] backup_source
362
366
  # @return [::Google::Cloud::AlloyDB::V1beta::BackupSource]
363
367
  # Output only. Cluster created from backup.
368
+ #
369
+ # Note: The following fields are mutually exclusive: `backup_source`, `migration_source`, `cloudsql_backup_run_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
364
370
  # @!attribute [r] migration_source
365
371
  # @return [::Google::Cloud::AlloyDB::V1beta::MigrationSource]
366
372
  # Output only. Cluster created via DMS migration.
373
+ #
374
+ # Note: The following fields are mutually exclusive: `migration_source`, `backup_source`, `cloudsql_backup_run_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
367
375
  # @!attribute [r] cloudsql_backup_run_source
368
376
  # @return [::Google::Cloud::AlloyDB::V1beta::CloudSQLBackupRunSource]
369
377
  # Output only. Cluster created from CloudSQL snapshot.
378
+ #
379
+ # Note: The following fields are mutually exclusive: `cloudsql_backup_run_source`, `backup_source`, `migration_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
370
380
  # @!attribute [r] name
371
381
  # @return [::String]
372
382
  # Output only. The name of the cluster resource with the format:
@@ -1338,9 +1348,13 @@ module Google
1338
1348
  # @!attribute [rw] string_restrictions
1339
1349
  # @return [::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::StringRestrictions]
1340
1350
  # Restriction on STRING type value.
1351
+ #
1352
+ # Note: The following fields are mutually exclusive: `string_restrictions`, `integer_restrictions`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1341
1353
  # @!attribute [rw] integer_restrictions
1342
1354
  # @return [::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::IntegerRestrictions]
1343
1355
  # Restriction on INTEGER type value.
1356
+ #
1357
+ # Note: The following fields are mutually exclusive: `integer_restrictions`, `string_restrictions`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1344
1358
  # @!attribute [rw] name
1345
1359
  # @return [::String]
1346
1360
  # The name of the flag resource, following Google Cloud conventions, e.g.:
@@ -460,10 +460,14 @@ module Google
460
460
  # @!attribute [rw] backup_source
461
461
  # @return [::Google::Cloud::AlloyDB::V1beta::BackupSource]
462
462
  # Backup source.
463
+ #
464
+ # Note: The following fields are mutually exclusive: `backup_source`, `continuous_backup_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
463
465
  # @!attribute [rw] continuous_backup_source
464
466
  # @return [::Google::Cloud::AlloyDB::V1beta::ContinuousBackupSource]
465
467
  # ContinuousBackup source. Continuous backup needs to be enabled in the
466
468
  # source cluster for this operation to succeed.
469
+ #
470
+ # Note: The following fields are mutually exclusive: `continuous_backup_source`, `backup_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
467
471
  # @!attribute [rw] parent
468
472
  # @return [::String]
469
473
  # Required. The name of the parent resource. For the required format, see the
@@ -1316,12 +1320,18 @@ module Google
1316
1320
  # @!attribute [r] batch_create_instances_metadata
1317
1321
  # @return [::Google::Cloud::AlloyDB::V1beta::BatchCreateInstancesMetadata]
1318
1322
  # Output only. BatchCreateInstances related metadata.
1323
+ #
1324
+ # Note: The following fields are mutually exclusive: `batch_create_instances_metadata`, `promote_cluster_status`, `upgrade_cluster_status`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1319
1325
  # @!attribute [r] promote_cluster_status
1320
1326
  # @return [::Google::Cloud::AlloyDB::V1beta::PromoteClusterStatus]
1321
1327
  # Output only. PromoteClusterStatus related metadata.
1328
+ #
1329
+ # Note: The following fields are mutually exclusive: `promote_cluster_status`, `batch_create_instances_metadata`, `upgrade_cluster_status`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1322
1330
  # @!attribute [r] upgrade_cluster_status
1323
1331
  # @return [::Google::Cloud::AlloyDB::V1beta::UpgradeClusterStatus]
1324
1332
  # Output only. UpgradeClusterStatus related metadata.
1333
+ #
1334
+ # Note: The following fields are mutually exclusive: `upgrade_cluster_status`, `batch_create_instances_metadata`, `promote_cluster_status`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1325
1335
  # @!attribute [r] create_time
1326
1336
  # @return [::Google::Protobuf::Timestamp]
1327
1337
  # Output only. The time the operation was created.
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-alloy_db-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-02-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -151,7 +150,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
151
150
  licenses:
152
151
  - Apache-2.0
153
152
  metadata: {}
154
- post_install_message:
155
153
  rdoc_options: []
156
154
  require_paths:
157
155
  - lib
@@ -159,15 +157,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
157
  requirements:
160
158
  - - ">="
161
159
  - !ruby/object:Gem::Version
162
- version: '2.7'
160
+ version: '3.0'
163
161
  required_rubygems_version: !ruby/object:Gem::Requirement
164
162
  requirements:
165
163
  - - ">="
166
164
  - !ruby/object:Gem::Version
167
165
  version: '0'
168
166
  requirements: []
169
- rubygems_version: 3.5.23
170
- signing_key:
167
+ rubygems_version: 3.6.3
171
168
  specification_version: 4
172
169
  summary: AlloyDB for PostgreSQL is an open source-compatible database service that
173
170
  provides a powerful option for migrating, modernizing, or building commercial-grade