We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b028db5 commit 867820fCopy full SHA for 867820f
infisical_sdk/api_types.py
@@ -365,6 +365,15 @@ class DynamicSecretLease(BaseModel):
365
config: Optional[Any] = None
366
dynamicSecret: Optional[DynamicSecret] = None
367
368
+ @classmethod
369
+ def from_dict(cls, data: Dict) -> 'DynamicSecretLease':
370
+ """Create model from dictionary with nested DynamicSecret"""
371
+ lease_data = data.copy()
372
+ if 'dynamicSecret' in data and data['dynamicSecret'] is not None:
373
+ lease_data['dynamicSecret'] = DynamicSecret.from_dict(data['dynamicSecret'])
374
+
375
+ return super().from_dict(lease_data)
376
377
@dataclass
378
class CreateLeaseResponse(BaseModel):
379
"""Response model for create lease API - returns lease, dynamicSecret, and data"""
0 commit comments