File tree Expand file tree Collapse file tree 4 files changed +16
-14
lines changed
scaleway/scaleway/mongodb/v1alpha1
scaleway-async/scaleway_async/mongodb/v1alpha1 Expand file tree Collapse file tree 4 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -1077,16 +1077,16 @@ async def create_user(
1077
1077
* ,
1078
1078
instance_id : str ,
1079
1079
name : str ,
1080
+ password : str ,
1080
1081
region : Optional [Region ] = None ,
1081
- password : Optional [str ] = None ,
1082
1082
) -> User :
1083
1083
"""
1084
1084
Create an user on a Database Instance.
1085
1085
Create an user on a Database Instance. You must define the `name`, `password` of the user and `instance_id` parameters in the request.
1086
1086
:param instance_id: UUID of the Database Instance the user belongs to.
1087
1087
:param name: Name of the database user.
1088
- :param region: Region to target. If none is passed will use default region from the config.
1089
1088
:param password: Password of the database user.
1089
+ :param region: Region to target. If none is passed will use default region from the config.
1090
1090
:return: :class:`User <User>`
1091
1091
1092
1092
Usage:
@@ -1095,6 +1095,7 @@ async def create_user(
1095
1095
result = await api.create_user(
1096
1096
instance_id="example",
1097
1097
name="example",
1098
+ password="example",
1098
1099
)
1099
1100
"""
1100
1101
@@ -1111,8 +1112,8 @@ async def create_user(
1111
1112
CreateUserRequest (
1112
1113
instance_id = instance_id ,
1113
1114
name = name ,
1114
- region = region ,
1115
1115
password = password ,
1116
+ region = region ,
1116
1117
),
1117
1118
self .client ,
1118
1119
),
Original file line number Diff line number Diff line change @@ -604,14 +604,14 @@ class CreateUserRequest:
604
604
Name of the database user.
605
605
"""
606
606
607
- region : Optional [ Region ]
607
+ password : str
608
608
"""
609
- Region to target. If none is passed will use default region from the config .
609
+ Password of the database user .
610
610
"""
611
611
612
- password : Optional [str ]
612
+ region : Optional [Region ]
613
613
"""
614
- Password of the database user .
614
+ Region to target. If none is passed will use default region from the config .
615
615
"""
616
616
617
617
Original file line number Diff line number Diff line change @@ -1073,16 +1073,16 @@ def create_user(
1073
1073
* ,
1074
1074
instance_id : str ,
1075
1075
name : str ,
1076
+ password : str ,
1076
1077
region : Optional [Region ] = None ,
1077
- password : Optional [str ] = None ,
1078
1078
) -> User :
1079
1079
"""
1080
1080
Create an user on a Database Instance.
1081
1081
Create an user on a Database Instance. You must define the `name`, `password` of the user and `instance_id` parameters in the request.
1082
1082
:param instance_id: UUID of the Database Instance the user belongs to.
1083
1083
:param name: Name of the database user.
1084
- :param region: Region to target. If none is passed will use default region from the config.
1085
1084
:param password: Password of the database user.
1085
+ :param region: Region to target. If none is passed will use default region from the config.
1086
1086
:return: :class:`User <User>`
1087
1087
1088
1088
Usage:
@@ -1091,6 +1091,7 @@ def create_user(
1091
1091
result = api.create_user(
1092
1092
instance_id="example",
1093
1093
name="example",
1094
+ password="example",
1094
1095
)
1095
1096
"""
1096
1097
@@ -1107,8 +1108,8 @@ def create_user(
1107
1108
CreateUserRequest (
1108
1109
instance_id = instance_id ,
1109
1110
name = name ,
1110
- region = region ,
1111
1111
password = password ,
1112
+ region = region ,
1112
1113
),
1113
1114
self .client ,
1114
1115
),
Original file line number Diff line number Diff line change @@ -604,14 +604,14 @@ class CreateUserRequest:
604
604
Name of the database user.
605
605
"""
606
606
607
- region : Optional [ Region ]
607
+ password : str
608
608
"""
609
- Region to target. If none is passed will use default region from the config .
609
+ Password of the database user .
610
610
"""
611
611
612
- password : Optional [str ]
612
+ region : Optional [Region ]
613
613
"""
614
- Password of the database user .
614
+ Region to target. If none is passed will use default region from the config .
615
615
"""
616
616
617
617
You can’t perform that action at this time.
0 commit comments