Skip to content

Commit afa7e56

Browse files
authored
docs(rdb): add more specific info about endpoint types in api doc (#1488)
1 parent 005c369 commit afa7e56

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

api/rdb/v1/rdb_sdk.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -936,13 +936,13 @@ type Endpoint struct {
936936
Port uint32 `json:"port"`
937937
// Name: name of the endpoint
938938
Name *string `json:"name"`
939-
// PrivateNetwork: private network details
939+
// PrivateNetwork: private network details. One at the most per RDB instance or read replica (an RDB instance and its read replica can have different private networks). Cannot be updated (has to be deleted and recreated)
940940
// Precisely one of DirectAccess, LoadBalancer, PrivateNetwork must be set.
941941
PrivateNetwork *EndpointPrivateNetworkDetails `json:"private_network,omitempty"`
942-
// LoadBalancer: load balancer details
942+
// LoadBalancer: load balancer details. Public endpoint for RDB instances which is systematically present. One per RDB instance
943943
// Precisely one of DirectAccess, LoadBalancer, PrivateNetwork must be set.
944944
LoadBalancer *EndpointLoadBalancerDetails `json:"load_balancer,omitempty"`
945-
// DirectAccess: direct access details
945+
// DirectAccess: direct access details. Public endpoint reserved for read replicas. One per read replica
946946
// Precisely one of DirectAccess, LoadBalancer, PrivateNetwork must be set.
947947
DirectAccess *EndpointDirectAccessDetails `json:"direct_access,omitempty"`
948948
// Hostname: hostname of the endpoint
@@ -968,10 +968,10 @@ type EndpointPrivateNetworkDetails struct {
968968

969969
// EndpointSpec: endpoint spec
970970
type EndpointSpec struct {
971-
// LoadBalancer: load balancer endpoint specifications
971+
// LoadBalancer: load balancer endpoint specifications. Public endpoint for RDB instances which is systematically present. One per RDB instance
972972
// Precisely one of LoadBalancer, PrivateNetwork must be set.
973973
LoadBalancer *EndpointSpecLoadBalancer `json:"load_balancer,omitempty"`
974-
// PrivateNetwork: private network endpoint specifications
974+
// PrivateNetwork: private network endpoint specifications. One at the most per RDB instance or read replica (an RDB instance and its read replica can have different private networks). Cannot be updated (has to be deleted and recreated)
975975
// Precisely one of LoadBalancer, PrivateNetwork must be set.
976976
PrivateNetwork *EndpointSpecPrivateNetwork `json:"private_network,omitempty"`
977977
}
@@ -1317,10 +1317,10 @@ type ReadReplica struct {
13171317

13181318
// ReadReplicaEndpointSpec: read replica endpoint spec
13191319
type ReadReplicaEndpointSpec struct {
1320-
// DirectAccess: direct access endpoint specifications
1320+
// DirectAccess: direct access endpoint specifications. Public endpoint reserved for read replicas. One per read replica
13211321
// Precisely one of DirectAccess, PrivateNetwork must be set.
13221322
DirectAccess *ReadReplicaEndpointSpecDirectAccess `json:"direct_access,omitempty"`
1323-
// PrivateNetwork: private network endpoint specifications
1323+
// PrivateNetwork: private network endpoint specifications. One at the most per read replica. Cannot be updated (has to be deleted and recreated)
13241324
// Precisely one of DirectAccess, PrivateNetwork must be set.
13251325
PrivateNetwork *ReadReplicaEndpointSpecPrivateNetwork `json:"private_network,omitempty"`
13261326
}
@@ -2072,7 +2072,7 @@ type CreateInstanceRequest struct {
20722072
VolumeType VolumeType `json:"volume_type"`
20732073
// VolumeSize: volume size when volume_type is not lssd
20742074
VolumeSize scw.Size `json:"volume_size"`
2075-
// InitEndpoints: one or multiple EndpointSpec used to expose your database instance
2075+
// InitEndpoints: one or multiple EndpointSpec used to expose your database instance. A load_balancer public endpoint is systematically created
20762076
InitEndpoints []*EndpointSpec `json:"init_endpoints"`
20772077
// BackupSameRegion: store logical backups in the same region as the database instance
20782078
BackupSameRegion bool `json:"backup_same_region"`

0 commit comments

Comments
 (0)