You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/rdb/v1/rdb_sdk.go
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -912,7 +912,14 @@ type EndpointSpecPrivateNetwork struct {
912
912
// PrivateNetworkID: UUID of the private network to be connected to the database instance.
913
913
PrivateNetworkIDstring`json:"private_network_id"`
914
914
// ServiceIP: endpoint IPv4 adress with a CIDR notation. Check documentation about IP and subnet limitation.
915
-
ServiceIP scw.IPNet`json:"service_ip"`
915
+
// Precisely one of IpamConfig, ServiceIP must be set.
916
+
ServiceIP*scw.IPNet`json:"service_ip,omitempty"`
917
+
// IpamConfig: automated configuration of your private network endpoint with Scaleway IPAM service. 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).
918
+
// Precisely one of IpamConfig, ServiceIP must be set.
@@ -1256,7 +1263,14 @@ type ReadReplicaEndpointSpecPrivateNetwork struct {
1256
1263
// PrivateNetworkID: UUID of the private network to be connected to the read replica.
1257
1264
PrivateNetworkIDstring`json:"private_network_id"`
1258
1265
// ServiceIP: endpoint IPv4 adress with a CIDR notation. Check documentation about IP and subnet limitations.
1259
-
ServiceIP scw.IPNet`json:"service_ip"`
1266
+
// Precisely one of IpamConfig, ServiceIP must be set.
1267
+
ServiceIP*scw.IPNet`json:"service_ip,omitempty"`
1268
+
// IpamConfig: automated configuration of your private network endpoint with Scaleway IPAM service. 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).
1269
+
// Precisely one of IpamConfig, ServiceIP must be set.
0 commit comments