10
10
Database ,
11
11
DatabaseEngine ,
12
12
DatabaseType ,
13
+ DatabasePrivateNetwork ,
13
14
MySQLDatabase ,
14
15
PostgreSQLDatabase ,
15
16
drop_null_keys ,
@@ -126,6 +127,7 @@ def mysql_create(
126
127
engine ,
127
128
ltype ,
128
129
engine_config : Union [MySQLDatabaseConfigOptions , Dict [str , Any ]] = None ,
130
+ private_network : Union [DatabasePrivateNetwork , Dict [str , Any ]] = None ,
129
131
** kwargs ,
130
132
):
131
133
"""
@@ -159,6 +161,8 @@ def mysql_create(
159
161
:type ltype: str or Type
160
162
:param engine_config: The configuration options for this MySQL cluster
161
163
:type engine_config: Dict[str, Any] or MySQLDatabaseConfigOptions
164
+ :param private_network: The private network settings to use for this cluster
165
+ :type private_network: Dict[str, Any] or DatabasePrivateNetwork
162
166
"""
163
167
164
168
params = {
@@ -167,6 +171,7 @@ def mysql_create(
167
171
"engine" : engine ,
168
172
"type" : ltype ,
169
173
"engine_config" : engine_config ,
174
+ "private_network" : private_network ,
170
175
}
171
176
params .update (kwargs )
172
177
@@ -262,6 +267,7 @@ def postgresql_create(
262
267
engine_config : Union [
263
268
PostgreSQLDatabaseConfigOptions , Dict [str , Any ]
264
269
] = None ,
270
+ private_network : Union [DatabasePrivateNetwork , Dict [str , Any ]] = None ,
265
271
** kwargs ,
266
272
):
267
273
"""
@@ -295,6 +301,8 @@ def postgresql_create(
295
301
:type ltype: str or Type
296
302
:param engine_config: The configuration options for this PostgreSQL cluster
297
303
:type engine_config: Dict[str, Any] or PostgreSQLDatabaseConfigOptions
304
+ :param private_network: The private network settings to use for this cluster
305
+ :type private_network: Dict[str, Any] or DatabasePrivateNetwork
298
306
"""
299
307
300
308
params = {
@@ -303,6 +311,7 @@ def postgresql_create(
303
311
"engine" : engine ,
304
312
"type" : ltype ,
305
313
"engine_config" : engine_config ,
314
+ "private_network" : private_network ,
306
315
}
307
316
params .update (kwargs )
308
317
0 commit comments