google-cloud-alloy_db-v1alpha 0.9.0 → 0.11.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: 51fb79cacfdee1f7ee2cc63dc25269e6943d9a83a08cd3017cd30b86936edcdf
4
- data.tar.gz: 742e11c649211df11f1d4a24e284ca9d1b1c58b1bf37fd30b98b655c0b8f547d
3
+ metadata.gz: 53e4b91da509cf2400d3fefc042f5968f2e3e79f1b45c4f7ff136fc3ae7ca4dd
4
+ data.tar.gz: 4d50a14412551fc338bc30ec1ef7e7bbd8cc474452e5f3879f3f5a10749bc235
5
5
  SHA512:
6
- metadata.gz: d38dfe2b067f0be0139d1b658cee4f9571ca862cae8d7c80065fb18ce72110a2d45d510334068484b48dd2a7cdddf7fa9a17ef7a14337b5d6934638cd021c98a
7
- data.tar.gz: 2ab2044f203784c4b584e69e980fddce75d211a8df8c8d8f5d209126d2d5df35cd7f4a6921ee3beec91b652be7322781633dda11dc7c9188361d25f39ff484b5
6
+ metadata.gz: 25703d161c7dd40cf7091a552cdc53d1dbe7ed32c092399efaf1626225b55ccb23e7cd60517bbfae6119c47704b02af877aa42fef16230f185d9af9330e878c7
7
+ data.tar.gz: 73efabf423babc950fa9604cc9552005d4f26e7da1b4fcb3a0df8060643314d57d49180cb55b1166f2ee0f266d1cf4ff0d914d42e38d184180113844551c638b
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
@@ -1211,9 +1211,13 @@ module Google
1211
1211
  #
1212
1212
  # @param backup_source [::Google::Cloud::AlloyDB::V1alpha::BackupSource, ::Hash]
1213
1213
  # Backup source.
1214
+ #
1215
+ # 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.
1214
1216
  # @param continuous_backup_source [::Google::Cloud::AlloyDB::V1alpha::ContinuousBackupSource, ::Hash]
1215
1217
  # ContinuousBackup source. Continuous backup needs to be enabled in the
1216
1218
  # source cluster for this operation to succeed.
1219
+ #
1220
+ # 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.
1217
1221
  # @param parent [::String]
1218
1222
  # Required. The name of the parent resource. For the required format, see the
1219
1223
  # comment on the Cluster.name field.
@@ -4171,6 +4175,13 @@ module Google
4171
4175
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
4172
4176
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
4173
4177
  # * (`nil`) indicating no credentials
4178
+ #
4179
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
4180
+ # external source for authentication to Google Cloud, you must validate it before
4181
+ # providing it to a Google API client library. Providing an unvalidated credential
4182
+ # configuration to Google APIs can compromise the security of your systems and data.
4183
+ # For more information, refer to [Validate credential configurations from external
4184
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
4174
4185
  # @return [::Object]
4175
4186
  # @!attribute [rw] scope
4176
4187
  # 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
@@ -313,10 +313,10 @@ module Google
313
313
  # @param order_by [::String]
314
314
  # Optional. Hint for how to order the results
315
315
  # @yield [result, operation] Access the result along with the TransportOperation object
316
- # @yieldparam result [::Google::Cloud::AlloyDB::V1alpha::ListClustersResponse]
316
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1alpha::Cluster>]
317
317
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
318
318
  #
319
- # @return [::Google::Cloud::AlloyDB::V1alpha::ListClustersResponse]
319
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1alpha::Cluster>]
320
320
  #
321
321
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
322
322
  #
@@ -368,7 +368,9 @@ module Google
368
368
  retry_policy: @config.retry_policy
369
369
 
370
370
  @alloy_db_admin_stub.list_clusters request, options do |result, operation|
371
+ result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_clusters, "clusters", request, result, options
371
372
  yield result, operation if block_given?
373
+ throw :response, result
372
374
  end
373
375
  rescue ::Gapic::Rest::Error => e
374
376
  raise ::Google::Cloud::Error.from_error(e)
@@ -1147,9 +1149,13 @@ module Google
1147
1149
  #
1148
1150
  # @param backup_source [::Google::Cloud::AlloyDB::V1alpha::BackupSource, ::Hash]
1149
1151
  # Backup source.
1152
+ #
1153
+ # 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.
1150
1154
  # @param continuous_backup_source [::Google::Cloud::AlloyDB::V1alpha::ContinuousBackupSource, ::Hash]
1151
1155
  # ContinuousBackup source. Continuous backup needs to be enabled in the
1152
1156
  # source cluster for this operation to succeed.
1157
+ #
1158
+ # 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.
1153
1159
  # @param parent [::String]
1154
1160
  # Required. The name of the parent resource. For the required format, see the
1155
1161
  # comment on the Cluster.name field.
@@ -1388,10 +1394,10 @@ module Google
1388
1394
  # @param order_by [::String]
1389
1395
  # Optional. Hint for how to order the results
1390
1396
  # @yield [result, operation] Access the result along with the TransportOperation object
1391
- # @yieldparam result [::Google::Cloud::AlloyDB::V1alpha::ListInstancesResponse]
1397
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1alpha::Instance>]
1392
1398
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1393
1399
  #
1394
- # @return [::Google::Cloud::AlloyDB::V1alpha::ListInstancesResponse]
1400
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1alpha::Instance>]
1395
1401
  #
1396
1402
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1397
1403
  #
@@ -1443,7 +1449,9 @@ module Google
1443
1449
  retry_policy: @config.retry_policy
1444
1450
 
1445
1451
  @alloy_db_admin_stub.list_instances request, options do |result, operation|
1452
+ result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_instances, "instances", request, result, options
1446
1453
  yield result, operation if block_given?
1454
+ throw :response, result
1447
1455
  end
1448
1456
  rescue ::Gapic::Rest::Error => e
1449
1457
  raise ::Google::Cloud::Error.from_error(e)
@@ -2535,10 +2543,10 @@ module Google
2535
2543
  # @param order_by [::String]
2536
2544
  # Hint for how to order the results
2537
2545
  # @yield [result, operation] Access the result along with the TransportOperation object
2538
- # @yieldparam result [::Google::Cloud::AlloyDB::V1alpha::ListBackupsResponse]
2546
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1alpha::Backup>]
2539
2547
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2540
2548
  #
2541
- # @return [::Google::Cloud::AlloyDB::V1alpha::ListBackupsResponse]
2549
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1alpha::Backup>]
2542
2550
  #
2543
2551
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2544
2552
  #
@@ -2590,7 +2598,9 @@ module Google
2590
2598
  retry_policy: @config.retry_policy
2591
2599
 
2592
2600
  @alloy_db_admin_stub.list_backups request, options do |result, operation|
2601
+ result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_backups, "backups", request, result, options
2593
2602
  yield result, operation if block_given?
2603
+ throw :response, result
2594
2604
  end
2595
2605
  rescue ::Gapic::Rest::Error => e
2596
2606
  raise ::Google::Cloud::Error.from_error(e)
@@ -3334,10 +3344,10 @@ module Google
3334
3344
  # @param order_by [::String]
3335
3345
  # Optional. Hint for how to order the results
3336
3346
  # @yield [result, operation] Access the result along with the TransportOperation object
3337
- # @yieldparam result [::Google::Cloud::AlloyDB::V1alpha::ListUsersResponse]
3347
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1alpha::User>]
3338
3348
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
3339
3349
  #
3340
- # @return [::Google::Cloud::AlloyDB::V1alpha::ListUsersResponse]
3350
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1alpha::User>]
3341
3351
  #
3342
3352
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3343
3353
  #
@@ -3389,7 +3399,9 @@ module Google
3389
3399
  retry_policy: @config.retry_policy
3390
3400
 
3391
3401
  @alloy_db_admin_stub.list_users request, options do |result, operation|
3402
+ result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_users, "users", request, result, options
3392
3403
  yield result, operation if block_given?
3404
+ throw :response, result
3393
3405
  end
3394
3406
  rescue ::Gapic::Rest::Error => e
3395
3407
  raise ::Google::Cloud::Error.from_error(e)
@@ -3910,6 +3922,13 @@ module Google
3910
3922
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3911
3923
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3912
3924
  # * (`nil`) indicating no credentials
3925
+ #
3926
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
3927
+ # external source for authentication to Google Cloud, you must validate it before
3928
+ # providing it to a Google API client library. Providing an unvalidated credential
3929
+ # configuration to Google APIs can compromise the security of your systems and data.
3930
+ # For more information, refer to [Validate credential configurations from external
3931
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
3913
3932
  # @return [::Object]
3914
3933
  # @!attribute [rw] scope
3915
3934
  # 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 V1alpha
24
- VERSION = "0.9.0"
24
+ VERSION = "0.11.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::V1alpha::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::V1alpha::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::V1alpha::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::V1alpha::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::V1alpha::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:
@@ -1370,9 +1380,13 @@ module Google
1370
1380
  # @!attribute [rw] string_restrictions
1371
1381
  # @return [::Google::Cloud::AlloyDB::V1alpha::SupportedDatabaseFlag::StringRestrictions]
1372
1382
  # Restriction on STRING type value.
1383
+ #
1384
+ # 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.
1373
1385
  # @!attribute [rw] integer_restrictions
1374
1386
  # @return [::Google::Cloud::AlloyDB::V1alpha::SupportedDatabaseFlag::IntegerRestrictions]
1375
1387
  # Restriction on INTEGER type value.
1388
+ #
1389
+ # 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.
1376
1390
  # @!attribute [rw] name
1377
1391
  # @return [::String]
1378
1392
  # 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::V1alpha::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::V1alpha::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::V1alpha::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::V1alpha::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::V1alpha::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-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.11.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