@@ -231,21 +231,25 @@ export interface Endpoint {
231231 /** Name of the endpoint */
232232 name ?: string
233233 /**
234- * Private network details.
234+ * Private network details. One at the most per RDB instance or read replica
235+ * (an RDB instance and its read replica can have different private networks).
236+ * Cannot be updated (has to be deleted and recreated).
235237 *
236238 * One-of ('details'): at most one of 'privateNetwork', 'loadBalancer',
237239 * 'directAccess' could be set.
238240 */
239241 privateNetwork ?: EndpointPrivateNetworkDetails
240242 /**
241- * Load balancer details.
243+ * Load balancer details. Public endpoint for RDB instances which is
244+ * systematically present. One per RDB instance.
242245 *
243246 * One-of ('details'): at most one of 'privateNetwork', 'loadBalancer',
244247 * 'directAccess' could be set.
245248 */
246249 loadBalancer ?: EndpointLoadBalancerDetails
247250 /**
248- * Direct access details.
251+ * Direct access details. Public endpoint reserved for read replicas. One per
252+ * read replica.
249253 *
250254 * One-of ('details'): at most one of 'privateNetwork', 'loadBalancer',
251255 * 'directAccess' could be set.
@@ -276,14 +280,17 @@ export interface EndpointPrivateNetworkDetails {
276280/** Endpoint spec */
277281export interface EndpointSpec {
278282 /**
279- * Load balancer endpoint specifications.
283+ * Load balancer endpoint specifications. Public endpoint for RDB instances
284+ * which is systematically present. One per RDB instance.
280285 *
281286 * One-of ('spec'): at most one of 'loadBalancer', 'privateNetwork' could be
282287 * set.
283288 */
284289 loadBalancer ?: EndpointSpecLoadBalancer
285290 /**
286- * Private network endpoint specifications.
291+ * Private network endpoint specifications. One at the most per RDB instance
292+ * or read replica (an RDB instance and its read replica can have different
293+ * private networks). Cannot be updated (has to be deleted and recreated).
287294 *
288295 * One-of ('spec'): at most one of 'loadBalancer', 'privateNetwork' could be
289296 * set.
@@ -617,14 +624,16 @@ export interface ReadReplica {
617624/** Read replica endpoint spec */
618625export interface ReadReplicaEndpointSpec {
619626 /**
620- * Direct access endpoint specifications.
627+ * Direct access endpoint specifications. Public endpoint reserved for read
628+ * replicas. One per read replica.
621629 *
622630 * One-of ('spec'): at most one of 'directAccess', 'privateNetwork' could be
623631 * set.
624632 */
625633 directAccess ?: ReadReplicaEndpointSpecDirectAccess
626634 /**
627- * Private network endpoint specifications.
635+ * Private network endpoint specifications. One at the most per read replica.
636+ * Cannot be updated (has to be deleted and recreated).
628637 *
629638 * One-of ('spec'): at most one of 'directAccess', 'privateNetwork' could be
630639 * set.
@@ -913,7 +922,10 @@ export type CreateInstanceRequest = {
913922 volumeType : VolumeType
914923 /** Volume size when volume_type is not lssd */
915924 volumeSize : number
916- /** One or multiple EndpointSpec used to expose your database instance */
925+ /**
926+ * One or multiple EndpointSpec used to expose your database instance. A
927+ * load_balancer public endpoint is systematically created
928+ */
917929 initEndpoints ?: Array < EndpointSpec >
918930 /** Store logical backups in the same region as the database instance */
919931 backupSameRegion : boolean
0 commit comments