Skip to content

Commit 8863395

Browse files
authored
docs(sem): fix wording (#299)
1 parent 1741137 commit 8863395

File tree

4 files changed

+46
-46
lines changed

4 files changed

+46
-46
lines changed

scaleway-async/scaleway_async/secret/v1alpha1/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ async def list_folders(
413413
order_by: ListFoldersRequestOrderBy = ListFoldersRequestOrderBy.CREATED_AT_ASC,
414414
) -> ListFoldersResponse:
415415
"""
416-
List secrets.
416+
List folders.
417417
Retrieve the list of folders created within a Project.
418418
:param region: Region to target. If none is passed will use default region from the config.
419419
:param project_id: ID of the Project.
@@ -459,7 +459,7 @@ async def list_folders_all(
459459
order_by: Optional[ListFoldersRequestOrderBy] = None,
460460
) -> List[Folder]:
461461
"""
462-
List secrets.
462+
List folders.
463463
Retrieve the list of folders created within a Project.
464464
:param region: Region to target. If none is passed will use default region from the config.
465465
:param project_id: ID of the Project.

scaleway-async/scaleway_async/secret/v1alpha1/marshalling.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232

3333

3434
def unmarshal_Folder(data: Any) -> Folder:
35-
if not isinstance(data, dict):
35+
if type(data) is not dict:
3636
raise TypeError(
37-
"Unmarshalling the type 'Folder' failed as data isn't a dictionary."
37+
f"Unmarshalling the type 'Folder' failed as data isn't a dictionary."
3838
)
3939

4040
args: Dict[str, Any] = {}
4141

4242
field = data.get("created_at", None)
43-
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
43+
args["created_at"] = parser.isoparse(field) if type(field) is str else field
4444

4545
field = data.get("id", None)
4646
args["id"] = field
@@ -58,15 +58,15 @@ def unmarshal_Folder(data: Any) -> Folder:
5858

5959

6060
def unmarshal_Secret(data: Any) -> Secret:
61-
if not isinstance(data, dict):
61+
if type(data) is not dict:
6262
raise TypeError(
63-
"Unmarshalling the type 'Secret' failed as data isn't a dictionary."
63+
f"Unmarshalling the type 'Secret' failed as data isn't a dictionary."
6464
)
6565

6666
args: Dict[str, Any] = {}
6767

6868
field = data.get("created_at", None)
69-
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
69+
args["created_at"] = parser.isoparse(field) if type(field) is str else field
7070

7171
field = data.get("description", None)
7272
args["description"] = field
@@ -102,7 +102,7 @@ def unmarshal_Secret(data: Any) -> Secret:
102102
args["type_"] = field
103103

104104
field = data.get("updated_at", None)
105-
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
105+
args["updated_at"] = parser.isoparse(field) if type(field) is str else field
106106

107107
field = data.get("version_count", None)
108108
args["version_count"] = field
@@ -111,15 +111,15 @@ def unmarshal_Secret(data: Any) -> Secret:
111111

112112

113113
def unmarshal_SecretVersion(data: Any) -> SecretVersion:
114-
if not isinstance(data, dict):
114+
if type(data) is not dict:
115115
raise TypeError(
116-
"Unmarshalling the type 'SecretVersion' failed as data isn't a dictionary."
116+
f"Unmarshalling the type 'SecretVersion' failed as data isn't a dictionary."
117117
)
118118

119119
args: Dict[str, Any] = {}
120120

121121
field = data.get("created_at", None)
122-
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
122+
args["created_at"] = parser.isoparse(field) if type(field) is str else field
123123

124124
field = data.get("description", None)
125125
args["description"] = field
@@ -137,15 +137,15 @@ def unmarshal_SecretVersion(data: Any) -> SecretVersion:
137137
args["status"] = field
138138

139139
field = data.get("updated_at", None)
140-
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
140+
args["updated_at"] = parser.isoparse(field) if type(field) is str else field
141141

142142
return SecretVersion(**args)
143143

144144

145145
def unmarshal_AccessSecretVersionResponse(data: Any) -> AccessSecretVersionResponse:
146-
if not isinstance(data, dict):
146+
if type(data) is not dict:
147147
raise TypeError(
148-
"Unmarshalling the type 'AccessSecretVersionResponse' failed as data isn't a dictionary."
148+
f"Unmarshalling the type 'AccessSecretVersionResponse' failed as data isn't a dictionary."
149149
)
150150

151151
args: Dict[str, Any] = {}
@@ -166,9 +166,9 @@ def unmarshal_AccessSecretVersionResponse(data: Any) -> AccessSecretVersionRespo
166166

167167

168168
def unmarshal_ListFoldersResponse(data: Any) -> ListFoldersResponse:
169-
if not isinstance(data, dict):
169+
if type(data) is not dict:
170170
raise TypeError(
171-
"Unmarshalling the type 'ListFoldersResponse' failed as data isn't a dictionary."
171+
f"Unmarshalling the type 'ListFoldersResponse' failed as data isn't a dictionary."
172172
)
173173

174174
args: Dict[str, Any] = {}
@@ -185,9 +185,9 @@ def unmarshal_ListFoldersResponse(data: Any) -> ListFoldersResponse:
185185

186186

187187
def unmarshal_ListSecretVersionsResponse(data: Any) -> ListSecretVersionsResponse:
188-
if not isinstance(data, dict):
188+
if type(data) is not dict:
189189
raise TypeError(
190-
"Unmarshalling the type 'ListSecretVersionsResponse' failed as data isn't a dictionary."
190+
f"Unmarshalling the type 'ListSecretVersionsResponse' failed as data isn't a dictionary."
191191
)
192192

193193
args: Dict[str, Any] = {}
@@ -204,9 +204,9 @@ def unmarshal_ListSecretVersionsResponse(data: Any) -> ListSecretVersionsRespons
204204

205205

206206
def unmarshal_ListSecretsResponse(data: Any) -> ListSecretsResponse:
207-
if not isinstance(data, dict):
207+
if type(data) is not dict:
208208
raise TypeError(
209-
"Unmarshalling the type 'ListSecretsResponse' failed as data isn't a dictionary."
209+
f"Unmarshalling the type 'ListSecretsResponse' failed as data isn't a dictionary."
210210
)
211211

212212
args: Dict[str, Any] = {}
@@ -223,9 +223,9 @@ def unmarshal_ListSecretsResponse(data: Any) -> ListSecretsResponse:
223223

224224

225225
def unmarshal_ListTagsResponse(data: Any) -> ListTagsResponse:
226-
if not isinstance(data, dict):
226+
if type(data) is not dict:
227227
raise TypeError(
228-
"Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary."
228+
f"Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary."
229229
)
230230

231231
args: Dict[str, Any] = {}

scaleway/scaleway/secret/v1alpha1/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def list_folders(
413413
order_by: ListFoldersRequestOrderBy = ListFoldersRequestOrderBy.CREATED_AT_ASC,
414414
) -> ListFoldersResponse:
415415
"""
416-
List secrets.
416+
List folders.
417417
Retrieve the list of folders created within a Project.
418418
:param region: Region to target. If none is passed will use default region from the config.
419419
:param project_id: ID of the Project.
@@ -459,7 +459,7 @@ def list_folders_all(
459459
order_by: Optional[ListFoldersRequestOrderBy] = None,
460460
) -> List[Folder]:
461461
"""
462-
List secrets.
462+
List folders.
463463
Retrieve the list of folders created within a Project.
464464
:param region: Region to target. If none is passed will use default region from the config.
465465
:param project_id: ID of the Project.

scaleway/scaleway/secret/v1alpha1/marshalling.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232

3333

3434
def unmarshal_Folder(data: Any) -> Folder:
35-
if not isinstance(data, dict):
35+
if type(data) is not dict:
3636
raise TypeError(
37-
"Unmarshalling the type 'Folder' failed as data isn't a dictionary."
37+
f"Unmarshalling the type 'Folder' failed as data isn't a dictionary."
3838
)
3939

4040
args: Dict[str, Any] = {}
4141

4242
field = data.get("created_at", None)
43-
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
43+
args["created_at"] = parser.isoparse(field) if type(field) is str else field
4444

4545
field = data.get("id", None)
4646
args["id"] = field
@@ -58,15 +58,15 @@ def unmarshal_Folder(data: Any) -> Folder:
5858

5959

6060
def unmarshal_Secret(data: Any) -> Secret:
61-
if not isinstance(data, dict):
61+
if type(data) is not dict:
6262
raise TypeError(
63-
"Unmarshalling the type 'Secret' failed as data isn't a dictionary."
63+
f"Unmarshalling the type 'Secret' failed as data isn't a dictionary."
6464
)
6565

6666
args: Dict[str, Any] = {}
6767

6868
field = data.get("created_at", None)
69-
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
69+
args["created_at"] = parser.isoparse(field) if type(field) is str else field
7070

7171
field = data.get("description", None)
7272
args["description"] = field
@@ -102,7 +102,7 @@ def unmarshal_Secret(data: Any) -> Secret:
102102
args["type_"] = field
103103

104104
field = data.get("updated_at", None)
105-
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
105+
args["updated_at"] = parser.isoparse(field) if type(field) is str else field
106106

107107
field = data.get("version_count", None)
108108
args["version_count"] = field
@@ -111,15 +111,15 @@ def unmarshal_Secret(data: Any) -> Secret:
111111

112112

113113
def unmarshal_SecretVersion(data: Any) -> SecretVersion:
114-
if not isinstance(data, dict):
114+
if type(data) is not dict:
115115
raise TypeError(
116-
"Unmarshalling the type 'SecretVersion' failed as data isn't a dictionary."
116+
f"Unmarshalling the type 'SecretVersion' failed as data isn't a dictionary."
117117
)
118118

119119
args: Dict[str, Any] = {}
120120

121121
field = data.get("created_at", None)
122-
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
122+
args["created_at"] = parser.isoparse(field) if type(field) is str else field
123123

124124
field = data.get("description", None)
125125
args["description"] = field
@@ -137,15 +137,15 @@ def unmarshal_SecretVersion(data: Any) -> SecretVersion:
137137
args["status"] = field
138138

139139
field = data.get("updated_at", None)
140-
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
140+
args["updated_at"] = parser.isoparse(field) if type(field) is str else field
141141

142142
return SecretVersion(**args)
143143

144144

145145
def unmarshal_AccessSecretVersionResponse(data: Any) -> AccessSecretVersionResponse:
146-
if not isinstance(data, dict):
146+
if type(data) is not dict:
147147
raise TypeError(
148-
"Unmarshalling the type 'AccessSecretVersionResponse' failed as data isn't a dictionary."
148+
f"Unmarshalling the type 'AccessSecretVersionResponse' failed as data isn't a dictionary."
149149
)
150150

151151
args: Dict[str, Any] = {}
@@ -166,9 +166,9 @@ def unmarshal_AccessSecretVersionResponse(data: Any) -> AccessSecretVersionRespo
166166

167167

168168
def unmarshal_ListFoldersResponse(data: Any) -> ListFoldersResponse:
169-
if not isinstance(data, dict):
169+
if type(data) is not dict:
170170
raise TypeError(
171-
"Unmarshalling the type 'ListFoldersResponse' failed as data isn't a dictionary."
171+
f"Unmarshalling the type 'ListFoldersResponse' failed as data isn't a dictionary."
172172
)
173173

174174
args: Dict[str, Any] = {}
@@ -185,9 +185,9 @@ def unmarshal_ListFoldersResponse(data: Any) -> ListFoldersResponse:
185185

186186

187187
def unmarshal_ListSecretVersionsResponse(data: Any) -> ListSecretVersionsResponse:
188-
if not isinstance(data, dict):
188+
if type(data) is not dict:
189189
raise TypeError(
190-
"Unmarshalling the type 'ListSecretVersionsResponse' failed as data isn't a dictionary."
190+
f"Unmarshalling the type 'ListSecretVersionsResponse' failed as data isn't a dictionary."
191191
)
192192

193193
args: Dict[str, Any] = {}
@@ -204,9 +204,9 @@ def unmarshal_ListSecretVersionsResponse(data: Any) -> ListSecretVersionsRespons
204204

205205

206206
def unmarshal_ListSecretsResponse(data: Any) -> ListSecretsResponse:
207-
if not isinstance(data, dict):
207+
if type(data) is not dict:
208208
raise TypeError(
209-
"Unmarshalling the type 'ListSecretsResponse' failed as data isn't a dictionary."
209+
f"Unmarshalling the type 'ListSecretsResponse' failed as data isn't a dictionary."
210210
)
211211

212212
args: Dict[str, Any] = {}
@@ -223,9 +223,9 @@ def unmarshal_ListSecretsResponse(data: Any) -> ListSecretsResponse:
223223

224224

225225
def unmarshal_ListTagsResponse(data: Any) -> ListTagsResponse:
226-
if not isinstance(data, dict):
226+
if type(data) is not dict:
227227
raise TypeError(
228-
"Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary."
228+
f"Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary."
229229
)
230230

231231
args: Dict[str, Any] = {}

0 commit comments

Comments
 (0)