google-cloud-alloy_db-v1 1.1.0 → 1.3.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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/client.rb +375 -4
  4. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb +354 -4
  5. data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/service_stub.rb +186 -0
  6. data/lib/google/cloud/alloy_db/v1/alloy_db_cloud_sql_admin/client.rb +519 -0
  7. data/lib/google/cloud/alloy_db/v1/alloy_db_cloud_sql_admin/credentials.rb +47 -0
  8. data/lib/google/cloud/alloy_db/v1/alloy_db_cloud_sql_admin/operations.rb +813 -0
  9. data/lib/google/cloud/alloy_db/v1/alloy_db_cloud_sql_admin/paths.rb +128 -0
  10. data/lib/google/cloud/alloy_db/v1/alloy_db_cloud_sql_admin/rest/client.rb +494 -0
  11. data/lib/google/cloud/alloy_db/v1/alloy_db_cloud_sql_admin/rest/operations.rb +914 -0
  12. data/lib/google/cloud/alloy_db/v1/alloy_db_cloud_sql_admin/rest/service_stub.rb +143 -0
  13. data/lib/google/cloud/alloy_db/v1/alloy_db_cloud_sql_admin/rest.rb +54 -0
  14. data/lib/google/cloud/alloy_db/v1/alloy_db_cloud_sql_admin.rb +56 -0
  15. data/lib/google/cloud/alloy_db/v1/rest.rb +1 -0
  16. data/lib/google/cloud/alloy_db/v1/version.rb +1 -1
  17. data/lib/google/cloud/alloy_db/v1.rb +1 -0
  18. data/lib/google/cloud/alloydb/v1/csql_resources_pb.rb +44 -0
  19. data/lib/google/cloud/alloydb/v1/csql_service_pb.rb +53 -0
  20. data/lib/google/cloud/alloydb/v1/csql_service_services_pb.rb +45 -0
  21. data/lib/google/cloud/alloydb/v1/resources_pb.rb +11 -1
  22. data/lib/google/cloud/alloydb/v1/service_pb.rb +21 -1
  23. data/lib/google/cloud/alloydb/v1/service_services_pb.rb +9 -0
  24. data/proto_docs/google/cloud/alloydb/v1/csql_resources.rb +42 -0
  25. data/proto_docs/google/cloud/alloydb/v1/csql_service.rb +45 -0
  26. data/proto_docs/google/cloud/alloydb/v1/resources.rb +260 -25
  27. data/proto_docs/google/cloud/alloydb/v1/service.rb +421 -6
  28. data/proto_docs/google/type/date.rb +53 -0
  29. data/proto_docs/google/type/timeofday.rb +1 -1
  30. metadata +18 -3
@@ -181,8 +181,7 @@ module Google
181
181
  # @return [::Google::Cloud::AlloyDB::V1::EncryptionConfig]
182
182
  # Optional. The encryption config can be specified to encrypt the
183
183
  # backups with a customer-managed encryption key (CMEK). When this field is
184
- # not specified, the backup will then use default encryption scheme to
185
- # protect the user data.
184
+ # not specified, the backup will use the cluster's encryption config.
186
185
  # @!attribute [rw] location
187
186
  # @return [::String]
188
187
  # The location where the backup will be stored. Currently, the only supported
@@ -265,8 +264,7 @@ module Google
265
264
  # @return [::Google::Cloud::AlloyDB::V1::EncryptionConfig]
266
265
  # The encryption config can be specified to encrypt the
267
266
  # backups with a customer-managed encryption key (CMEK). When this field is
268
- # not specified, the backup will then use default encryption scheme to
269
- # protect the user data.
267
+ # not specified, the backup will use the cluster's encryption config.
270
268
  class ContinuousBackupConfig
271
269
  include ::Google::Protobuf::MessageExts
272
270
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -284,12 +282,19 @@ module Google
284
282
  # if ContinuousBackup is not enabled.
285
283
  # @!attribute [r] schedule
286
284
  # @return [::Array<::Google::Type::DayOfWeek>]
287
- # Output only. Days of the week on which a continuous backup is taken. Output
288
- # only field. Ignored if passed into the request.
285
+ # Output only. Days of the week on which a continuous backup is taken.
289
286
  # @!attribute [r] earliest_restorable_time
290
287
  # @return [::Google::Protobuf::Timestamp]
291
- # Output only. The earliest restorable time that can be restored to. Output
292
- # only field.
288
+ # Output only. The earliest restorable time that can be restored to. If
289
+ # continuous backups and recovery was recently enabled, the earliest
290
+ # restorable time is the creation time of the earliest eligible backup within
291
+ # this cluster's continuous backup recovery window. After a cluster has had
292
+ # continuous backups enabled for the duration of its recovery window, the
293
+ # earliest restorable time becomes "now minus the recovery window". For
294
+ # example, assuming a point in time recovery is attempted at 04/16/2025
295
+ # 3:23:00PM with a 14d recovery window, the earliest restorable time would be
296
+ # 04/02/2025 3:23:00PM. This field is only visible if the
297
+ # CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.
293
298
  class ContinuousBackupInfo
294
299
  include ::Google::Protobuf::MessageExts
295
300
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -328,6 +333,9 @@ module Google
328
333
  # @!attribute [rw] maintenance_windows
329
334
  # @return [::Array<::Google::Cloud::AlloyDB::V1::MaintenanceUpdatePolicy::MaintenanceWindow>]
330
335
  # Preferred windows to perform maintenance. Currently limited to 1.
336
+ # @!attribute [rw] deny_maintenance_periods
337
+ # @return [::Array<::Google::Cloud::AlloyDB::V1::MaintenanceUpdatePolicy::DenyMaintenancePeriod>]
338
+ # Periods to deny maintenance. Currently limited to 1.
331
339
  class MaintenanceUpdatePolicy
332
340
  include ::Google::Protobuf::MessageExts
333
341
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,6 +352,32 @@ module Google
344
352
  include ::Google::Protobuf::MessageExts
345
353
  extend ::Google::Protobuf::MessageExts::ClassMethods
346
354
  end
355
+
356
+ # DenyMaintenancePeriod definition. Excepting emergencies, maintenance
357
+ # will not be scheduled to start within this deny period. The start_date must
358
+ # be less than the end_date.
359
+ # @!attribute [rw] start_date
360
+ # @return [::Google::Type::Date]
361
+ # Deny period start date.
362
+ # This can be:
363
+ # * A full date, with non-zero year, month and day values OR
364
+ # * A month and day value, with a zero year for recurring
365
+ # @!attribute [rw] end_date
366
+ # @return [::Google::Type::Date]
367
+ # Deny period end date.
368
+ # This can be:
369
+ # * A full date, with non-zero year, month and day values OR
370
+ # * A month and day value, with a zero year for recurring
371
+ # @!attribute [rw] time
372
+ # @return [::Google::Type::TimeOfDay]
373
+ # Time in UTC when the deny period starts on start_date and ends on
374
+ # end_date. This can be:
375
+ # * Full time OR
376
+ # * All zeros for 00:00:00 UTC
377
+ class DenyMaintenancePeriod
378
+ include ::Google::Protobuf::MessageExts
379
+ extend ::Google::Protobuf::MessageExts::ClassMethods
380
+ end
347
381
  end
348
382
 
349
383
  # MaintenanceSchedule stores the maintenance schedule generated from
@@ -366,12 +400,17 @@ module Google
366
400
  # @return [::Google::Cloud::AlloyDB::V1::BackupSource]
367
401
  # Output only. Cluster created from backup.
368
402
  #
369
- # Note: The following fields are mutually exclusive: `backup_source`, `migration_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
403
+ # 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.
370
404
  # @!attribute [r] migration_source
371
405
  # @return [::Google::Cloud::AlloyDB::V1::MigrationSource]
372
406
  # Output only. Cluster created via DMS migration.
373
407
  #
374
- # Note: The following fields are mutually exclusive: `migration_source`, `backup_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
408
+ # 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.
409
+ # @!attribute [r] cloudsql_backup_run_source
410
+ # @return [::Google::Cloud::AlloyDB::V1::CloudSQLBackupRunSource]
411
+ # Output only. Cluster created from CloudSQL snapshot.
412
+ #
413
+ # 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.
375
414
  # @!attribute [r] name
376
415
  # @return [::String]
377
416
  # Output only. The name of the cluster resource with the format:
@@ -562,6 +601,10 @@ module Google
562
601
  # @return [::Boolean]
563
602
  # Optional. Create an instance that allows connections from Private Service
564
603
  # Connect endpoints to the instance.
604
+ # @!attribute [r] service_owned_project_number
605
+ # @return [::Integer]
606
+ # Output only. The project number that needs to be allowlisted on the
607
+ # network attachment to enable outbound connectivity.
565
608
  class PscConfig
566
609
  include ::Google::Protobuf::MessageExts
567
610
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -727,11 +770,13 @@ module Google
727
770
  # zone with available capacity.
728
771
  # @!attribute [rw] database_flags
729
772
  # @return [::Google::Protobuf::Map{::String => ::String}]
730
- # Database flags. Set at instance level.
731
- # * They are copied from primary instance on read instance creation.
732
- # * Read instances can set new or override existing flags that are relevant
733
- # for reads, e.g. for enabling columnar cache on a read instance. Flags
734
- # set on read instance may or may not be present on primary.
773
+ # Database flags. Set at the instance level.
774
+ # They are copied from the primary instance on secondary instance creation.
775
+ # Flags that have restrictions default to the value at primary
776
+ # instance on read instances during creation. Read instances can set new
777
+ # flags or override existing flags that are relevant for reads, for example,
778
+ # for enabling columnar cache on a read instance. Flags set on read instance
779
+ # might or might not be present on the primary instance.
735
780
  #
736
781
  #
737
782
  # This is a list of "key": "value" pairs.
@@ -752,6 +797,9 @@ module Google
752
797
  # @!attribute [rw] query_insights_config
753
798
  # @return [::Google::Cloud::AlloyDB::V1::Instance::QueryInsightsInstanceConfig]
754
799
  # Configuration for query insights.
800
+ # @!attribute [rw] observability_config
801
+ # @return [::Google::Cloud::AlloyDB::V1::Instance::ObservabilityInstanceConfig]
802
+ # Configuration for observability.
755
803
  # @!attribute [rw] read_pool_config
756
804
  # @return [::Google::Cloud::AlloyDB::V1::Instance::ReadPoolConfig]
757
805
  # Read pool instance configuration.
@@ -796,6 +844,15 @@ module Google
796
844
  # @!attribute [r] outbound_public_ip_addresses
797
845
  # @return [::Array<::String>]
798
846
  # Output only. All outbound public IP addresses configured for the instance.
847
+ # @!attribute [rw] activation_policy
848
+ # @return [::Google::Cloud::AlloyDB::V1::Instance::ActivationPolicy]
849
+ # Optional. Specifies whether an instance needs to spin up. Once the instance
850
+ # is active, the activation policy can be updated to the `NEVER` to stop the
851
+ # instance. Likewise, the activation policy can be updated to `ALWAYS` to
852
+ # start the instance.
853
+ # There are restrictions around when an instance can/cannot be activated (for
854
+ # example, a read pool instance should be stopped before stopping primary
855
+ # etc.). Please refer to the API documentation for more details.
799
856
  class Instance
800
857
  include ::Google::Protobuf::MessageExts
801
858
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -804,27 +861,33 @@ module Google
804
861
  # @!attribute [rw] cpu_count
805
862
  # @return [::Integer]
806
863
  # The number of CPU's in the VM instance.
864
+ # @!attribute [rw] machine_type
865
+ # @return [::String]
866
+ # Machine type of the VM instance. E.g. "n2-highmem-4",
867
+ # "n2-highmem-8", "c4a-highmem-4-lssd".
868
+ # cpu_count must match the number of vCPUs in the machine type.
807
869
  class MachineConfig
808
870
  include ::Google::Protobuf::MessageExts
809
871
  extend ::Google::Protobuf::MessageExts::ClassMethods
810
872
  end
811
873
 
812
874
  # Details of a single node in the instance.
813
- # Nodes in an AlloyDB instance are ephemereal, they can change during
875
+ # Nodes in an AlloyDB instance are ephemeral, they can change during
814
876
  # update, failover, autohealing and resize operations.
815
- # @!attribute [rw] zone_id
877
+ # @!attribute [r] zone_id
816
878
  # @return [::String]
817
- # The Compute Engine zone of the VM e.g. "us-central1-b".
818
- # @!attribute [rw] id
879
+ # Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
880
+ # @!attribute [r] id
819
881
  # @return [::String]
820
- # The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
821
- # @!attribute [rw] ip
882
+ # Output only. The identifier of the VM e.g.
883
+ # "test-read-0601-407e52be-ms3l".
884
+ # @!attribute [r] ip
822
885
  # @return [::String]
823
- # The private IP address of the VM e.g. "10.57.0.34".
824
- # @!attribute [rw] state
886
+ # Output only. The private IP address of the VM e.g. "10.57.0.34".
887
+ # @!attribute [r] state
825
888
  # @return [::String]
826
- # Determined by state of the compute VM and postgres-service health.
827
- # Compute VM state can have values listed in
889
+ # Output only. Determined by state of the compute VM and postgres-service
890
+ # health. Compute VM state can have values listed in
828
891
  # https://cloud.google.com/compute/docs/instances/instance-life-cycle and
829
892
  # postgres-service health can have values: HEALTHY and UNHEALTHY.
830
893
  class Node
@@ -855,6 +918,47 @@ module Google
855
918
  extend ::Google::Protobuf::MessageExts::ClassMethods
856
919
  end
857
920
 
921
+ # Observability Instance specific configuration.
922
+ # @!attribute [rw] enabled
923
+ # @return [::Boolean]
924
+ # Observability feature status for an instance.
925
+ # This flag is turned "off" by default.
926
+ # @!attribute [rw] preserve_comments
927
+ # @return [::Boolean]
928
+ # Preserve comments in query string for an instance.
929
+ # This flag is turned "off" by default.
930
+ # @!attribute [rw] track_wait_events
931
+ # @return [::Boolean]
932
+ # Track wait events during query execution for an instance.
933
+ # This flag is turned "on" by default but tracking is enabled only after
934
+ # observability enabled flag is also turned on.
935
+ # @!attribute [r] track_wait_event_types
936
+ # @return [::Boolean]
937
+ # Output only. Track wait event types during query execution for an
938
+ # instance. This flag is turned "on" by default but tracking is enabled
939
+ # only after observability enabled flag is also turned on. This is
940
+ # read-only flag and only modifiable by internal API.
941
+ # @!attribute [rw] max_query_string_length
942
+ # @return [::Integer]
943
+ # Query string length. The default value is 10k.
944
+ # @!attribute [rw] record_application_tags
945
+ # @return [::Boolean]
946
+ # Record application tags for an instance.
947
+ # This flag is turned "off" by default.
948
+ # @!attribute [rw] query_plans_per_minute
949
+ # @return [::Integer]
950
+ # Number of query execution plans captured by Insights per minute
951
+ # for all queries combined. The default value is 200.
952
+ # Any integer between 0 to 200 is considered valid.
953
+ # @!attribute [rw] track_active_queries
954
+ # @return [::Boolean]
955
+ # Track actively running queries on the instance.
956
+ # If not set, this flag is "off" by default.
957
+ class ObservabilityInstanceConfig
958
+ include ::Google::Protobuf::MessageExts
959
+ extend ::Google::Protobuf::MessageExts::ClassMethods
960
+ end
961
+
858
962
  # Configuration for a read pool instance.
859
963
  # @!attribute [rw] node_count
860
964
  # @return [::Integer]
@@ -877,6 +981,69 @@ module Google
877
981
  extend ::Google::Protobuf::MessageExts::ClassMethods
878
982
  end
879
983
 
984
+ # Configuration for setting up a PSC interface to enable outbound
985
+ # connectivity.
986
+ # @!attribute [rw] network_attachment_resource
987
+ # @return [::String]
988
+ # The network attachment resource created in the consumer network to which
989
+ # the PSC interface will be linked. This is of the format:
990
+ # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}".
991
+ # The network attachment must be in the same region as the instance.
992
+ class PscInterfaceConfig
993
+ include ::Google::Protobuf::MessageExts
994
+ extend ::Google::Protobuf::MessageExts::ClassMethods
995
+ end
996
+
997
+ # Configuration for setting up PSC service automation. Consumer projects in
998
+ # the configs will be allowlisted automatically for the instance.
999
+ # @!attribute [rw] consumer_project
1000
+ # @return [::String]
1001
+ # The consumer project to which the PSC service automation endpoint will
1002
+ # be created.
1003
+ # @!attribute [rw] consumer_network
1004
+ # @return [::String]
1005
+ # The consumer network for the PSC service automation, example:
1006
+ # "projects/vpc-host-project/global/networks/default".
1007
+ # The consumer network might be hosted a different project than the
1008
+ # consumer project.
1009
+ # @!attribute [r] ip_address
1010
+ # @return [::String]
1011
+ # Output only. The IP address of the PSC service automation endpoint.
1012
+ # @!attribute [r] status
1013
+ # @return [::String]
1014
+ # Output only. The status of the PSC service automation connection.
1015
+ # Possible values:
1016
+ # "STATE_UNSPECIFIED" - An invalid state as the default case.
1017
+ # "ACTIVE" - The connection has been created successfully.
1018
+ # "FAILED" - The connection is not functional since some resources on the
1019
+ # connection fail to be created.
1020
+ # "CREATING" - The connection is being created.
1021
+ # "DELETING" - The connection is being deleted.
1022
+ # "CREATE_REPAIRING" - The connection is being repaired to complete
1023
+ # creation.
1024
+ # "DELETE_REPAIRING" - The connection is being repaired to complete
1025
+ # deletion.
1026
+ # @!attribute [r] consumer_network_status
1027
+ # @return [::String]
1028
+ # Output only. The status of the service connection policy.
1029
+ # Possible values:
1030
+ # "STATE_UNSPECIFIED" - Default state, when Connection Map is created
1031
+ # initially.
1032
+ # "VALID" - Set when policy and map configuration is valid, and their
1033
+ # matching can lead to allowing creation of PSC Connections subject to
1034
+ # other constraints like connections limit.
1035
+ # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for
1036
+ # this network and Service Class
1037
+ # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for
1038
+ # this network and Service Class
1039
+ # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance
1040
+ # project is not in AllowedGoogleProducersResourceHierarchyLevels of the
1041
+ # matching ServiceConnectionPolicy.
1042
+ class PscAutoConnectionConfig
1043
+ include ::Google::Protobuf::MessageExts
1044
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1045
+ end
1046
+
880
1047
  # PscInstanceConfig contains PSC related configuration at an
881
1048
  # instance level.
882
1049
  # @!attribute [r] service_attachment_link
@@ -893,6 +1060,15 @@ module Google
893
1060
  # @return [::String]
894
1061
  # Output only. The DNS name of the instance for PSC connectivity.
895
1062
  # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
1063
+ # @!attribute [rw] psc_interface_configs
1064
+ # @return [::Array<::Google::Cloud::AlloyDB::V1::Instance::PscInterfaceConfig>]
1065
+ # Optional. Configurations for setting up PSC interfaces attached to the
1066
+ # instance which are used for outbound connectivity. Only primary instances
1067
+ # can have PSC interface attached. Currently we only support 0 or 1 PSC
1068
+ # interface.
1069
+ # @!attribute [rw] psc_auto_connections
1070
+ # @return [::Array<::Google::Cloud::AlloyDB::V1::Instance::PscAutoConnectionConfig>]
1071
+ # Optional. Configurations for setting up PSC service automation.
896
1072
  class PscInstanceConfig
897
1073
  include ::Google::Protobuf::MessageExts
898
1074
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -909,6 +1085,22 @@ module Google
909
1085
  # @return [::Boolean]
910
1086
  # Optional. Enabling an outbound public IP address to support a database
911
1087
  # server sending requests out into the internet.
1088
+ # @!attribute [r] network
1089
+ # @return [::String]
1090
+ # Output only. The resource link for the VPC network in which instance
1091
+ # resources are created and from which they are accessible via Private IP.
1092
+ # This will be the same value as the parent cluster's network. It is
1093
+ # specified in the form: //
1094
+ # `projects/{project_number}/global/networks/{network_id}`.
1095
+ # @!attribute [rw] allocated_ip_range_override
1096
+ # @return [::String]
1097
+ # Optional. Name of the allocated IP range for the private IP AlloyDB
1098
+ # instance, for example: "google-managed-services-default". If set, the
1099
+ # instance IPs will be created from this allocated range and will override
1100
+ # the IP range used by the parent cluster. The range name must comply with
1101
+ # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically,
1102
+ # the name must be 1-63 characters long and match the regular expression
1103
+ # [a-z]([-a-z0-9]*[a-z0-9])?.
912
1104
  class InstanceNetworkConfig
913
1105
  include ::Google::Protobuf::MessageExts
914
1106
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1022,6 +1214,18 @@ module Google
1022
1214
  # Regional (or Highly) available instance.
1023
1215
  REGIONAL = 2
1024
1216
  end
1217
+
1218
+ # Specifies whether an instance needs to spin up.
1219
+ module ActivationPolicy
1220
+ # The policy is not specified.
1221
+ ACTIVATION_POLICY_UNSPECIFIED = 0
1222
+
1223
+ # The instance is running.
1224
+ ALWAYS = 1
1225
+
1226
+ # The instance is not running.
1227
+ NEVER = 2
1228
+ end
1025
1229
  end
1026
1230
 
1027
1231
  # ConnectionInfo singleton resource.
@@ -1074,9 +1278,15 @@ module Google
1074
1278
  # @!attribute [r] update_time
1075
1279
  # @return [::Google::Protobuf::Timestamp]
1076
1280
  # Output only. Update time stamp
1281
+ #
1282
+ # Users should not infer any meaning from this field. Its value is generally
1283
+ # unrelated to the timing of the backup creation operation.
1077
1284
  # @!attribute [r] delete_time
1078
1285
  # @return [::Google::Protobuf::Timestamp]
1079
1286
  # Output only. Delete time stamp
1287
+ # @!attribute [r] create_completion_time
1288
+ # @return [::Google::Protobuf::Timestamp]
1289
+ # Output only. Timestamp when the resource finished being created.
1080
1290
  # @!attribute [rw] labels
1081
1291
  # @return [::Google::Protobuf::Map{::String => ::String}]
1082
1292
  # Labels as key value pairs
@@ -1258,6 +1468,16 @@ module Google
1258
1468
  # Restriction on INTEGER type value.
1259
1469
  #
1260
1470
  # 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.
1471
+ # @!attribute [rw] recommended_string_value
1472
+ # @return [::String]
1473
+ # The recommended value for a STRING flag.
1474
+ #
1475
+ # Note: The following fields are mutually exclusive: `recommended_string_value`, `recommended_integer_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1476
+ # @!attribute [rw] recommended_integer_value
1477
+ # @return [::Google::Protobuf::Int64Value]
1478
+ # The recommended value for an INTEGER flag.
1479
+ #
1480
+ # Note: The following fields are mutually exclusive: `recommended_integer_value`, `recommended_string_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1261
1481
  # @!attribute [rw] name
1262
1482
  # @return [::String]
1263
1483
  # The name of the flag resource, following Google Cloud conventions, e.g.:
@@ -1282,6 +1502,9 @@ module Google
1282
1502
  # restart. If a flag that requires database restart is set, the backend
1283
1503
  # will automatically restart the database (making sure to satisfy any
1284
1504
  # availability SLO's).
1505
+ # @!attribute [rw] scope
1506
+ # @return [::Google::Cloud::AlloyDB::V1::SupportedDatabaseFlag::Scope]
1507
+ # The scope of the flag.
1285
1508
  class SupportedDatabaseFlag
1286
1509
  include ::Google::Protobuf::MessageExts
1287
1510
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1327,6 +1550,18 @@ module Google
1327
1550
  # Denotes that the flag does not accept any values.
1328
1551
  NONE = 4
1329
1552
  end
1553
+
1554
+ # The scope of the flag.
1555
+ module Scope
1556
+ # The scope of the flag is not specified. Default is DATABASE.
1557
+ SCOPE_UNSPECIFIED = 0
1558
+
1559
+ # The flag is a database flag.
1560
+ DATABASE = 1
1561
+
1562
+ # The flag is a connection pool flag.
1563
+ CONNECTION_POOL = 2
1564
+ end
1330
1565
  end
1331
1566
 
1332
1567
  # Message describing User object.