57
57
58
58
59
59
def unmarshal_MaintenanceWindow (data : Any ) -> MaintenanceWindow :
60
- if not isinstance (data , dict ) :
60
+ if type (data ) is not dict :
61
61
raise TypeError (
62
- "Unmarshalling the type 'MaintenanceWindow' failed as data isn't a dictionary."
62
+ f "Unmarshalling the type 'MaintenanceWindow' failed as data isn't a dictionary."
63
63
)
64
64
65
65
args : Dict [str , Any ] = {}
@@ -74,9 +74,9 @@ def unmarshal_MaintenanceWindow(data: Any) -> MaintenanceWindow:
74
74
75
75
76
76
def unmarshal_ClusterAutoUpgrade (data : Any ) -> ClusterAutoUpgrade :
77
- if not isinstance (data , dict ) :
77
+ if type (data ) is not dict :
78
78
raise TypeError (
79
- "Unmarshalling the type 'ClusterAutoUpgrade' failed as data isn't a dictionary."
79
+ f "Unmarshalling the type 'ClusterAutoUpgrade' failed as data isn't a dictionary."
80
80
)
81
81
82
82
args : Dict [str , Any ] = {}
@@ -93,9 +93,9 @@ def unmarshal_ClusterAutoUpgrade(data: Any) -> ClusterAutoUpgrade:
93
93
94
94
95
95
def unmarshal_ClusterAutoscalerConfig (data : Any ) -> ClusterAutoscalerConfig :
96
- if not isinstance (data , dict ) :
96
+ if type (data ) is not dict :
97
97
raise TypeError (
98
- "Unmarshalling the type 'ClusterAutoscalerConfig' failed as data isn't a dictionary."
98
+ f "Unmarshalling the type 'ClusterAutoscalerConfig' failed as data isn't a dictionary."
99
99
)
100
100
101
101
args : Dict [str , Any ] = {}
@@ -134,9 +134,9 @@ def unmarshal_ClusterAutoscalerConfig(data: Any) -> ClusterAutoscalerConfig:
134
134
135
135
136
136
def unmarshal_ClusterOpenIDConnectConfig (data : Any ) -> ClusterOpenIDConnectConfig :
137
- if not isinstance (data , dict ) :
137
+ if type (data ) is not dict :
138
138
raise TypeError (
139
- "Unmarshalling the type 'ClusterOpenIDConnectConfig' failed as data isn't a dictionary."
139
+ f "Unmarshalling the type 'ClusterOpenIDConnectConfig' failed as data isn't a dictionary."
140
140
)
141
141
142
142
args : Dict [str , Any ] = {}
@@ -166,9 +166,9 @@ def unmarshal_ClusterOpenIDConnectConfig(data: Any) -> ClusterOpenIDConnectConfi
166
166
167
167
168
168
def unmarshal_PoolUpgradePolicy (data : Any ) -> PoolUpgradePolicy :
169
- if not isinstance (data , dict ) :
169
+ if type (data ) is not dict :
170
170
raise TypeError (
171
- "Unmarshalling the type 'PoolUpgradePolicy' failed as data isn't a dictionary."
171
+ f "Unmarshalling the type 'PoolUpgradePolicy' failed as data isn't a dictionary."
172
172
)
173
173
174
174
args : Dict [str , Any ] = {}
@@ -183,9 +183,9 @@ def unmarshal_PoolUpgradePolicy(data: Any) -> PoolUpgradePolicy:
183
183
184
184
185
185
def unmarshal_Cluster (data : Any ) -> Cluster :
186
- if not isinstance (data , dict ) :
186
+ if type (data ) is not dict :
187
187
raise TypeError (
188
- "Unmarshalling the type 'Cluster' failed as data isn't a dictionary."
188
+ f "Unmarshalling the type 'Cluster' failed as data isn't a dictionary."
189
189
)
190
190
191
191
args : Dict [str , Any ] = {}
@@ -213,12 +213,10 @@ def unmarshal_Cluster(data: Any) -> Cluster:
213
213
args ["cni" ] = field
214
214
215
215
field = data .get ("commitment_ends_at" , None )
216
- args ["commitment_ends_at" ] = (
217
- parser .isoparse (field ) if isinstance (field , str ) else field
218
- )
216
+ args ["commitment_ends_at" ] = parser .isoparse (field ) if type (field ) is str else field
219
217
220
218
field = data .get ("created_at" , None )
221
- args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
219
+ args ["created_at" ] = parser .isoparse (field ) if type (field ) is str else field
222
220
223
221
field = data .get ("dashboard_enabled" , None )
224
222
args ["dashboard_enabled" ] = field
@@ -268,7 +266,7 @@ def unmarshal_Cluster(data: Any) -> Cluster:
268
266
args ["type_" ] = field
269
267
270
268
field = data .get ("updated_at" , None )
271
- args ["updated_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
269
+ args ["updated_at" ] = parser .isoparse (field ) if type (field ) is str else field
272
270
273
271
field = data .get ("upgrade_available" , None )
274
272
args ["upgrade_available" ] = field
@@ -280,9 +278,9 @@ def unmarshal_Cluster(data: Any) -> Cluster:
280
278
281
279
282
280
def unmarshal_ClusterType (data : Any ) -> ClusterType :
283
- if not isinstance (data , dict ) :
281
+ if type (data ) is not dict :
284
282
raise TypeError (
285
- "Unmarshalling the type 'ClusterType' failed as data isn't a dictionary."
283
+ f "Unmarshalling the type 'ClusterType' failed as data isn't a dictionary."
286
284
)
287
285
288
286
args : Dict [str , Any ] = {}
@@ -315,9 +313,9 @@ def unmarshal_ClusterType(data: Any) -> ClusterType:
315
313
316
314
317
315
def unmarshal_Node (data : Any ) -> Node :
318
- if not isinstance (data , dict ) :
316
+ if type (data ) is not dict :
319
317
raise TypeError (
320
- "Unmarshalling the type 'Node' failed as data isn't a dictionary."
318
+ f "Unmarshalling the type 'Node' failed as data isn't a dictionary."
321
319
)
322
320
323
321
args : Dict [str , Any ] = {}
@@ -329,7 +327,7 @@ def unmarshal_Node(data: Any) -> Node:
329
327
args ["conditions" ] = field
330
328
331
329
field = data .get ("created_at" , None )
332
- args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
330
+ args ["created_at" ] = parser .isoparse (field ) if type (field ) is str else field
333
331
334
332
field = data .get ("error_message" , None )
335
333
args ["error_message" ] = field
@@ -359,15 +357,15 @@ def unmarshal_Node(data: Any) -> Node:
359
357
args ["status" ] = field
360
358
361
359
field = data .get ("updated_at" , None )
362
- args ["updated_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
360
+ args ["updated_at" ] = parser .isoparse (field ) if type (field ) is str else field
363
361
364
362
return Node (** args )
365
363
366
364
367
365
def unmarshal_Pool (data : Any ) -> Pool :
368
- if not isinstance (data , dict ) :
366
+ if type (data ) is not dict :
369
367
raise TypeError (
370
- "Unmarshalling the type 'Pool' failed as data isn't a dictionary."
368
+ f "Unmarshalling the type 'Pool' failed as data isn't a dictionary."
371
369
)
372
370
373
371
args : Dict [str , Any ] = {}
@@ -385,7 +383,7 @@ def unmarshal_Pool(data: Any) -> Pool:
385
383
args ["container_runtime" ] = field
386
384
387
385
field = data .get ("created_at" , None )
388
- args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
386
+ args ["created_at" ] = parser .isoparse (field ) if type (field ) is str else field
389
387
390
388
field = data .get ("id" , None )
391
389
args ["id" ] = field
@@ -427,7 +425,7 @@ def unmarshal_Pool(data: Any) -> Pool:
427
425
args ["tags" ] = field
428
426
429
427
field = data .get ("updated_at" , None )
430
- args ["updated_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
428
+ args ["updated_at" ] = parser .isoparse (field ) if type (field ) is str else field
431
429
432
430
field = data .get ("upgrade_policy" , None )
433
431
args ["upgrade_policy" ] = (
@@ -444,9 +442,9 @@ def unmarshal_Pool(data: Any) -> Pool:
444
442
445
443
446
444
def unmarshal_Version (data : Any ) -> Version :
447
- if not isinstance (data , dict ) :
445
+ if type (data ) is not dict :
448
446
raise TypeError (
449
- "Unmarshalling the type 'Version' failed as data isn't a dictionary."
447
+ f "Unmarshalling the type 'Version' failed as data isn't a dictionary."
450
448
)
451
449
452
450
args : Dict [str , Any ] = {}
@@ -482,9 +480,9 @@ def unmarshal_Version(data: Any) -> Version:
482
480
483
481
484
482
def unmarshal_ExternalNode (data : Any ) -> ExternalNode :
485
- if not isinstance (data , dict ) :
483
+ if type (data ) is not dict :
486
484
raise TypeError (
487
- "Unmarshalling the type 'ExternalNode' failed as data isn't a dictionary."
485
+ f "Unmarshalling the type 'ExternalNode' failed as data isn't a dictionary."
488
486
)
489
487
490
488
args : Dict [str , Any ] = {}
@@ -519,9 +517,9 @@ def unmarshal_ExternalNode(data: Any) -> ExternalNode:
519
517
def unmarshal_ListClusterAvailableTypesResponse (
520
518
data : Any ,
521
519
) -> ListClusterAvailableTypesResponse :
522
- if not isinstance (data , dict ) :
520
+ if type (data ) is not dict :
523
521
raise TypeError (
524
- "Unmarshalling the type 'ListClusterAvailableTypesResponse' failed as data isn't a dictionary."
522
+ f "Unmarshalling the type 'ListClusterAvailableTypesResponse' failed as data isn't a dictionary."
525
523
)
526
524
527
525
args : Dict [str , Any ] = {}
@@ -540,9 +538,9 @@ def unmarshal_ListClusterAvailableTypesResponse(
540
538
def unmarshal_ListClusterAvailableVersionsResponse (
541
539
data : Any ,
542
540
) -> ListClusterAvailableVersionsResponse :
543
- if not isinstance (data , dict ) :
541
+ if type (data ) is not dict :
544
542
raise TypeError (
545
- "Unmarshalling the type 'ListClusterAvailableVersionsResponse' failed as data isn't a dictionary."
543
+ f "Unmarshalling the type 'ListClusterAvailableVersionsResponse' failed as data isn't a dictionary."
546
544
)
547
545
548
546
args : Dict [str , Any ] = {}
@@ -556,9 +554,9 @@ def unmarshal_ListClusterAvailableVersionsResponse(
556
554
557
555
558
556
def unmarshal_ListClusterTypesResponse (data : Any ) -> ListClusterTypesResponse :
559
- if not isinstance (data , dict ) :
557
+ if type (data ) is not dict :
560
558
raise TypeError (
561
- "Unmarshalling the type 'ListClusterTypesResponse' failed as data isn't a dictionary."
559
+ f "Unmarshalling the type 'ListClusterTypesResponse' failed as data isn't a dictionary."
562
560
)
563
561
564
562
args : Dict [str , Any ] = {}
@@ -575,9 +573,9 @@ def unmarshal_ListClusterTypesResponse(data: Any) -> ListClusterTypesResponse:
575
573
576
574
577
575
def unmarshal_ListClustersResponse (data : Any ) -> ListClustersResponse :
578
- if not isinstance (data , dict ) :
576
+ if type (data ) is not dict :
579
577
raise TypeError (
580
- "Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary."
578
+ f "Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary."
581
579
)
582
580
583
581
args : Dict [str , Any ] = {}
@@ -594,9 +592,9 @@ def unmarshal_ListClustersResponse(data: Any) -> ListClustersResponse:
594
592
595
593
596
594
def unmarshal_ListNodesResponse (data : Any ) -> ListNodesResponse :
597
- if not isinstance (data , dict ) :
595
+ if type (data ) is not dict :
598
596
raise TypeError (
599
- "Unmarshalling the type 'ListNodesResponse' failed as data isn't a dictionary."
597
+ f "Unmarshalling the type 'ListNodesResponse' failed as data isn't a dictionary."
600
598
)
601
599
602
600
args : Dict [str , Any ] = {}
@@ -611,9 +609,9 @@ def unmarshal_ListNodesResponse(data: Any) -> ListNodesResponse:
611
609
612
610
613
611
def unmarshal_ListPoolsResponse (data : Any ) -> ListPoolsResponse :
614
- if not isinstance (data , dict ) :
612
+ if type (data ) is not dict :
615
613
raise TypeError (
616
- "Unmarshalling the type 'ListPoolsResponse' failed as data isn't a dictionary."
614
+ f "Unmarshalling the type 'ListPoolsResponse' failed as data isn't a dictionary."
617
615
)
618
616
619
617
args : Dict [str , Any ] = {}
@@ -628,9 +626,9 @@ def unmarshal_ListPoolsResponse(data: Any) -> ListPoolsResponse:
628
626
629
627
630
628
def unmarshal_ListVersionsResponse (data : Any ) -> ListVersionsResponse :
631
- if not isinstance (data , dict ) :
629
+ if type (data ) is not dict :
632
630
raise TypeError (
633
- "Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary."
631
+ f "Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary."
634
632
)
635
633
636
634
args : Dict [str , Any ] = {}
0 commit comments