3232
3333
3434def 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
6060def 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
113113def 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
145145def 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
168168def 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
187187def 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
206206def 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
225225def 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