google-cloud-alloy_db-v1beta 0.8.1 → 0.10.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.
@@ -114,7 +114,7 @@ module Google
114
114
 
115
115
  # SSL mode options.
116
116
  module SslMode
117
- # SSL mode not specified. Defaults to ENCRYPTED_ONLY.
117
+ # SSL mode is not specified. Defaults to ENCRYPTED_ONLY.
118
118
  SSL_MODE_UNSPECIFIED = 0
119
119
 
120
120
  # SSL connections are optional. CA verification not enforced.
@@ -126,7 +126,7 @@ module Google
126
126
  SSL_MODE_REQUIRE = 2
127
127
 
128
128
  # SSL connections are required. CA verification enforced.
129
- # Clients must have certificates signed by a Cluster CA, e.g. via
129
+ # Clients must have certificates signed by a Cluster CA, for example, using
130
130
  # GenerateClientCertificate.
131
131
  SSL_MODE_VERIFY_CA = 3
132
132
 
@@ -320,6 +320,41 @@ module Google
320
320
  extend ::Google::Protobuf::MessageExts::ClassMethods
321
321
  end
322
322
 
323
+ # MaintenanceUpdatePolicy defines the policy for system updates.
324
+ # @!attribute [rw] maintenance_windows
325
+ # @return [::Array<::Google::Cloud::AlloyDB::V1beta::MaintenanceUpdatePolicy::MaintenanceWindow>]
326
+ # Preferred windows to perform maintenance. Currently limited to 1.
327
+ class MaintenanceUpdatePolicy
328
+ include ::Google::Protobuf::MessageExts
329
+ extend ::Google::Protobuf::MessageExts::ClassMethods
330
+
331
+ # MaintenanceWindow specifies a preferred day and time for maintenance.
332
+ # @!attribute [rw] day
333
+ # @return [::Google::Type::DayOfWeek]
334
+ # Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
335
+ # @!attribute [rw] start_time
336
+ # @return [::Google::Type::TimeOfDay]
337
+ # Preferred time to start the maintenance operation on the specified day.
338
+ # Maintenance will start within 1 hour of this time.
339
+ class MaintenanceWindow
340
+ include ::Google::Protobuf::MessageExts
341
+ extend ::Google::Protobuf::MessageExts::ClassMethods
342
+ end
343
+ end
344
+
345
+ # MaintenanceSchedule stores the maintenance schedule generated from
346
+ # the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if
347
+ # MaintenanceWindow is set, and if there is no conflicting DenyPeriod.
348
+ # The schedule is cleared once the update takes place. This field cannot be
349
+ # manually changed; modify the MaintenanceUpdatePolicy instead.
350
+ # @!attribute [r] start_time
351
+ # @return [::Google::Protobuf::Timestamp]
352
+ # Output only. The scheduled start time for the maintenance.
353
+ class MaintenanceSchedule
354
+ include ::Google::Protobuf::MessageExts
355
+ extend ::Google::Protobuf::MessageExts::ClassMethods
356
+ end
357
+
323
358
  # A cluster is a collection of regional AlloyDB resources. It can include a
324
359
  # primary instance and one or more read pool instances.
325
360
  # All cluster resources share a storage layer, which scales as needed.
@@ -329,6 +364,9 @@ module Google
329
364
  # @!attribute [r] migration_source
330
365
  # @return [::Google::Cloud::AlloyDB::V1beta::MigrationSource]
331
366
  # Output only. Cluster created via DMS migration.
367
+ # @!attribute [r] cloudsql_backup_run_source
368
+ # @return [::Google::Cloud::AlloyDB::V1beta::CloudSQLBackupRunSource]
369
+ # Output only. Cluster created from CloudSQL snapshot.
332
370
  # @!attribute [r] name
333
371
  # @return [::String]
334
372
  # Output only. The name of the cluster resource with the format:
@@ -379,7 +417,7 @@ module Google
379
417
  # Required. The resource link for the VPC network in which cluster resources
380
418
  # are created and from which they are accessible via Private IP. The network
381
419
  # must belong to the same project as the cluster. It is specified in the
382
- # form: "projects/\\{project}/global/networks/\\{network_id}". This is required
420
+ # form: `projects/{project}/global/networks/{network_id}`. This is required
383
421
  # to create a cluster. Deprecated, use network_config.network instead.
384
422
  # @!attribute [rw] etag
385
423
  # @return [::String]
@@ -438,6 +476,36 @@ module Google
438
476
  # @!attribute [r] satisfies_pzs
439
477
  # @return [::Boolean]
440
478
  # Output only. Reserved for future use.
479
+ # @!attribute [rw] psc_config
480
+ # @return [::Google::Cloud::AlloyDB::V1beta::Cluster::PscConfig]
481
+ # Optional. The configuration for Private Service Connect (PSC) for the
482
+ # cluster.
483
+ # @!attribute [rw] maintenance_update_policy
484
+ # @return [::Google::Cloud::AlloyDB::V1beta::MaintenanceUpdatePolicy]
485
+ # Optional. The maintenance update policy determines when to allow or deny
486
+ # updates.
487
+ # @!attribute [r] maintenance_schedule
488
+ # @return [::Google::Cloud::AlloyDB::V1beta::MaintenanceSchedule]
489
+ # Output only. The maintenance schedule for the cluster, generated for a
490
+ # specific rollout if a maintenance window is set.
491
+ # @!attribute [rw] gemini_config
492
+ # @return [::Google::Cloud::AlloyDB::V1beta::GeminiClusterConfig]
493
+ # Optional. Configuration parameters related to the Gemini in Databases
494
+ # add-on.
495
+ # @!attribute [rw] subscription_type
496
+ # @return [::Google::Cloud::AlloyDB::V1beta::SubscriptionType]
497
+ # Optional. Subscription type of the cluster.
498
+ # @!attribute [r] trial_metadata
499
+ # @return [::Google::Cloud::AlloyDB::V1beta::Cluster::TrialMetadata]
500
+ # Output only. Metadata for free trial clusters
501
+ # @!attribute [rw] tags
502
+ # @return [::Google::Protobuf::Map{::String => ::String}]
503
+ # Optional. Input only. Immutable. Tag keys/values directly bound to this
504
+ # resource. For example:
505
+ # ```
506
+ # "123/environment": "production",
507
+ # "123/costCenter": "marketing"
508
+ # ```
441
509
  class Cluster
442
510
  include ::Google::Protobuf::MessageExts
443
511
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -449,7 +517,7 @@ module Google
449
517
  # resources are created and from which they are accessible via Private IP.
450
518
  # The network must belong to the same project as the cluster. It is
451
519
  # specified in the form:
452
- # "projects/\\{project_number}/global/networks/\\{network_id}". This is
520
+ # `projects/{project_number}/global/networks/{network_id}`. This is
453
521
  # required to create a cluster.
454
522
  # @!attribute [rw] allocated_ip_range
455
523
  # @return [::String]
@@ -488,6 +556,34 @@ module Google
488
556
  extend ::Google::Protobuf::MessageExts::ClassMethods
489
557
  end
490
558
 
559
+ # PscConfig contains PSC related configuration at a cluster level.
560
+ # @!attribute [rw] psc_enabled
561
+ # @return [::Boolean]
562
+ # Optional. Create an instance that allows connections from Private Service
563
+ # Connect endpoints to the instance.
564
+ class PscConfig
565
+ include ::Google::Protobuf::MessageExts
566
+ extend ::Google::Protobuf::MessageExts::ClassMethods
567
+ end
568
+
569
+ # Contains information and all metadata related to TRIAL clusters.
570
+ # @!attribute [rw] start_time
571
+ # @return [::Google::Protobuf::Timestamp]
572
+ # start time of the trial cluster.
573
+ # @!attribute [rw] end_time
574
+ # @return [::Google::Protobuf::Timestamp]
575
+ # End time of the trial cluster.
576
+ # @!attribute [rw] upgrade_time
577
+ # @return [::Google::Protobuf::Timestamp]
578
+ # Upgrade time of trial cluster to Standard cluster.
579
+ # @!attribute [rw] grace_end_time
580
+ # @return [::Google::Protobuf::Timestamp]
581
+ # grace end time of the cluster.
582
+ class TrialMetadata
583
+ include ::Google::Protobuf::MessageExts
584
+ extend ::Google::Protobuf::MessageExts::ClassMethods
585
+ end
586
+
491
587
  # @!attribute [rw] key
492
588
  # @return [::String]
493
589
  # @!attribute [rw] value
@@ -506,6 +602,15 @@ module Google
506
602
  extend ::Google::Protobuf::MessageExts::ClassMethods
507
603
  end
508
604
 
605
+ # @!attribute [rw] key
606
+ # @return [::String]
607
+ # @!attribute [rw] value
608
+ # @return [::String]
609
+ class TagsEntry
610
+ include ::Google::Protobuf::MessageExts
611
+ extend ::Google::Protobuf::MessageExts::ClassMethods
612
+ end
613
+
509
614
  # Cluster State
510
615
  module State
511
616
  # The state of the cluster is unknown.
@@ -646,6 +751,9 @@ module Google
646
751
  # @!attribute [rw] query_insights_config
647
752
  # @return [::Google::Cloud::AlloyDB::V1beta::Instance::QueryInsightsInstanceConfig]
648
753
  # Configuration for query insights.
754
+ # @!attribute [rw] observability_config
755
+ # @return [::Google::Cloud::AlloyDB::V1beta::Instance::ObservabilityInstanceConfig]
756
+ # Configuration for observability.
649
757
  # @!attribute [rw] read_pool_config
650
758
  # @return [::Google::Cloud::AlloyDB::V1beta::Instance::ReadPoolConfig]
651
759
  # Read pool instance configuration.
@@ -692,7 +800,14 @@ module Google
692
800
  # instance.
693
801
  # @!attribute [rw] network_config
694
802
  # @return [::Google::Cloud::AlloyDB::V1beta::Instance::InstanceNetworkConfig]
695
- # Optional. Instance level network configuration.
803
+ # Optional. Instance-level network configuration.
804
+ # @!attribute [rw] gemini_config
805
+ # @return [::Google::Cloud::AlloyDB::V1beta::GeminiInstanceConfig]
806
+ # Optional. Configuration parameters related to the Gemini in Databases
807
+ # add-on.
808
+ # @!attribute [r] outbound_public_ip_addresses
809
+ # @return [::Array<::String>]
810
+ # Output only. All outbound public IP addresses configured for the instance.
696
811
  class Instance
697
812
  include ::Google::Protobuf::MessageExts
698
813
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -752,6 +867,51 @@ module Google
752
867
  extend ::Google::Protobuf::MessageExts::ClassMethods
753
868
  end
754
869
 
870
+ # Observability Instance specific configuration.
871
+ # @!attribute [rw] enabled
872
+ # @return [::Boolean]
873
+ # Observability feature status for an instance.
874
+ # This flag is turned "off" by default.
875
+ # @!attribute [rw] preserve_comments
876
+ # @return [::Boolean]
877
+ # Preserve comments in query string for an instance.
878
+ # This flag is turned "off" by default.
879
+ # @!attribute [rw] track_wait_events
880
+ # @return [::Boolean]
881
+ # Track wait events during query execution for an instance.
882
+ # This flag is turned "on" by default but tracking is enabled only after
883
+ # observability enabled flag is also turned on.
884
+ # @!attribute [r] track_wait_event_types
885
+ # @return [::Boolean]
886
+ # Output only. Track wait event types during query execution for an
887
+ # instance. This flag is turned "on" by default but tracking is enabled
888
+ # only after observability enabled flag is also turned on. This is
889
+ # read-only flag and only modifiable by producer API.
890
+ # @!attribute [rw] max_query_string_length
891
+ # @return [::Integer]
892
+ # Query string length. The default value is 10k.
893
+ # @!attribute [rw] record_application_tags
894
+ # @return [::Boolean]
895
+ # Record application tags for an instance.
896
+ # This flag is turned "off" by default.
897
+ # @!attribute [rw] query_plans_per_minute
898
+ # @return [::Integer]
899
+ # Number of query execution plans captured by Insights per minute
900
+ # for all queries combined. The default value is 200.
901
+ # Any integer between 0 to 200 is considered valid.
902
+ # @!attribute [rw] track_active_queries
903
+ # @return [::Boolean]
904
+ # Track actively running queries on the instance.
905
+ # If not set, this flag is "off" by default.
906
+ # @!attribute [rw] track_client_address
907
+ # @return [::Boolean]
908
+ # Track client address for an instance.
909
+ # If not set, default value is "off".
910
+ class ObservabilityInstanceConfig
911
+ include ::Google::Protobuf::MessageExts
912
+ extend ::Google::Protobuf::MessageExts::ClassMethods
913
+ end
914
+
755
915
  # Configuration for a read pool instance.
756
916
  # @!attribute [rw] node_count
757
917
  # @return [::Integer]
@@ -790,33 +950,12 @@ module Google
790
950
  # connections to the database.
791
951
  # @!attribute [rw] ssl_config
792
952
  # @return [::Google::Cloud::AlloyDB::V1beta::SslConfig]
793
- # Optional. SSL config option for this instance.
953
+ # Optional. SSL configuration option for this instance.
794
954
  class ClientConnectionConfig
795
955
  include ::Google::Protobuf::MessageExts
796
956
  extend ::Google::Protobuf::MessageExts::ClassMethods
797
957
  end
798
958
 
799
- # Configuration for setting up a PSC interface. This information needs to be
800
- # provided by the customer.
801
- # PSC interfaces will be created and added to VMs via SLM (adding a network
802
- # interface will require recreating the VM). For HA instances this will be
803
- # done via LDTM.
804
- # @!attribute [rw] consumer_endpoint_ips
805
- # @return [::Array<::String>]
806
- # A list of endpoints in the consumer VPC the interface might initiate
807
- # outbound connections to. This list has to be provided when the PSC
808
- # interface is created.
809
- # @!attribute [rw] network_attachment
810
- # @return [::String]
811
- # The NetworkAttachment resource created in the consumer VPC to which the
812
- # PSC interface will be linked, in the form of:
813
- # `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`.
814
- # NetworkAttachment has to be provided when the PSC interface is created.
815
- class PscInterfaceConfig
816
- include ::Google::Protobuf::MessageExts
817
- extend ::Google::Protobuf::MessageExts::ClassMethods
818
- end
819
-
820
959
  # PscInstanceConfig contains PSC related configuration at an
821
960
  # instance level.
822
961
  # @!attribute [r] service_attachment_link
@@ -829,38 +968,26 @@ module Google
829
968
  # @return [::Array<::String>]
830
969
  # Optional. List of consumer projects that are allowed to create
831
970
  # PSC endpoints to service-attachments to this instance.
832
- # @!attribute [rw] allowed_consumer_networks
833
- # @return [::Array<::String>]
834
- # Optional. List of consumer networks that are allowed to create
835
- # PSC endpoints to service-attachments to this instance.
836
- # @!attribute [rw] psc_interface_configs
837
- # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscInterfaceConfig>]
838
- # Optional. Configurations for setting up PSC interfaces attached to the
839
- # instance which are used for outbound connectivity. Only primary instances
840
- # can have PSC interface attached. All the VMs created for the primary
841
- # instance will share the same configurations. Currently we only support 0
842
- # or 1 PSC interface.
843
- # @!attribute [rw] outgoing_service_attachment_links
844
- # @return [::Array<::String>]
845
- # Optional. List of service attachments that this instance has created
846
- # endpoints to connect with. Currently, only a single outgoing service
847
- # attachment is supported per instance.
848
- # @!attribute [rw] psc_enabled
849
- # @return [::Boolean]
850
- # Optional. Whether PSC connectivity is enabled for this instance.
851
- # This is populated by referencing the value from the parent cluster.
971
+ # @!attribute [r] psc_dns_name
972
+ # @return [::String]
973
+ # Output only. The DNS name of the instance for PSC connectivity.
974
+ # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
852
975
  class PscInstanceConfig
853
976
  include ::Google::Protobuf::MessageExts
854
977
  extend ::Google::Protobuf::MessageExts::ClassMethods
855
978
  end
856
979
 
857
- # Metadata related to instance level network configuration.
980
+ # Metadata related to instance-level network configuration.
858
981
  # @!attribute [rw] authorized_external_networks
859
982
  # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::InstanceNetworkConfig::AuthorizedNetwork>]
860
983
  # Optional. A list of external network authorized to access this instance.
861
984
  # @!attribute [rw] enable_public_ip
862
985
  # @return [::Boolean]
863
986
  # Optional. Enabling public ip for the instance.
987
+ # @!attribute [rw] enable_outbound_public_ip
988
+ # @return [::Boolean]
989
+ # Optional. Enabling an outbound public IP address to support a database
990
+ # server sending requests out into the internet.
864
991
  class InstanceNetworkConfig
865
992
  include ::Google::Protobuf::MessageExts
866
993
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1101,6 +1228,14 @@ module Google
1101
1228
  # Output only. The database engine major version of the cluster this backup
1102
1229
  # was created from. Any restored cluster created from this backup will have
1103
1230
  # the same database version.
1231
+ # @!attribute [rw] tags
1232
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1233
+ # Optional. Input only. Immutable. Tag keys/values directly bound to this
1234
+ # resource. For example:
1235
+ # ```
1236
+ # "123/environment": "production",
1237
+ # "123/costCenter": "marketing"
1238
+ # ```
1104
1239
  class Backup
1105
1240
  include ::Google::Protobuf::MessageExts
1106
1241
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1149,6 +1284,15 @@ module Google
1149
1284
  extend ::Google::Protobuf::MessageExts::ClassMethods
1150
1285
  end
1151
1286
 
1287
+ # @!attribute [rw] key
1288
+ # @return [::String]
1289
+ # @!attribute [rw] value
1290
+ # @return [::String]
1291
+ class TagsEntry
1292
+ include ::Google::Protobuf::MessageExts
1293
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1294
+ end
1295
+
1152
1296
  # Backup State
1153
1297
  module State
1154
1298
  # The state of the backup is unknown.
@@ -1283,6 +1427,10 @@ module Google
1283
1427
  # @!attribute [rw] user_type
1284
1428
  # @return [::Google::Cloud::AlloyDB::V1beta::User::UserType]
1285
1429
  # Optional. Type of this user.
1430
+ # @!attribute [rw] keep_extra_roles
1431
+ # @return [::Boolean]
1432
+ # Input only. If the user already exists and it has additional roles, keep
1433
+ # them granted.
1286
1434
  class User
1287
1435
  include ::Google::Protobuf::MessageExts
1288
1436
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1367,6 +1515,24 @@ module Google
1367
1515
 
1368
1516
  # The database version is Postgres 15.
1369
1517
  POSTGRES_15 = 3
1518
+
1519
+ # The database version is Postgres 16.
1520
+ POSTGRES_16 = 4
1521
+ end
1522
+
1523
+ # Subscription_type added to distinguish between Standard and Trial
1524
+ # subscriptions. By default, a subscription type is considered STANDARD unless
1525
+ # explicitly specified.
1526
+ module SubscriptionType
1527
+ # This is an unknown subscription type. By default, the subscription type is
1528
+ # STANDARD.
1529
+ SUBSCRIPTION_TYPE_UNSPECIFIED = 0
1530
+
1531
+ # Standard subscription.
1532
+ STANDARD = 1
1533
+
1534
+ # Trial subscription.
1535
+ TRIAL = 2
1370
1536
  end
1371
1537
  end
1372
1538
  end