@@ -38,8 +38,8 @@ class WrappingKey(BaseModel):
3838 created_at: datetime = Field(
3939 description="The date and time the creation of the wrapping key was triggered.", alias="createdAt"
4040 )
41- description: Optional[ Annotated[str, Field(strict=True, max_length=256)] ] = Field(
42- default=None, description="A user chosen description to distinguish multiple wrapping keys."
41+ description: Annotated[str, Field(strict=True, max_length=256)] = Field(
42+ description="A user chosen description to distinguish multiple wrapping keys."
4343 )
4444 display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
4545 description="The display name to distinguish multiple wrapping keys.", alias="displayName"
@@ -50,9 +50,7 @@ class WrappingKey(BaseModel):
5050 description="The unique id of the key ring this wrapping key is assigned to.", alias="keyRingId"
5151 )
5252 protection: Protection
53- public_key: Optional[StrictStr] = Field(
54- default=None, description="The public key of the wrapping key.", alias="publicKey"
55- )
53+ public_key: StrictStr = Field(description="The public key of the wrapping key.", alias="publicKey")
5654 purpose: WrappingPurpose
5755 state: StrictStr = Field(description="The current state of the wrapping key.")
5856 __properties: ClassVar[List[str]] = [
@@ -134,8 +132,13 @@ def to_dict(self) -> Dict[str, Any]:
134132 * `None` is only added to the output dict for nullable fields that
135133 were set at model initialization. Other fields with value `None`
136134 are ignored.
135+ * OpenAPI `readOnly` fields are excluded.
137136 """
138- excluded_fields: Set[str] = set([])
137+ excluded_fields: Set[str] = set(
138+ [
139+ "public_key",
140+ ]
141+ )
139142
140143 _dict = self.model_dump(
141144 by_alias=True,
0 commit comments