Skip to content

Commit b6259ef

Browse files
Copilotmccoyp
andauthored
[Key Vault] Fix certificate model property docstrings to include descriptions (#42067)
* Initial plan * Fix certificate model property docstrings - add descriptions to rtype-only docstrings Co-authored-by: mccoyp <39780829+mccoyp@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mccoyp <39780829+mccoyp@users.noreply.github.com>
1 parent 83ebd8b commit b6259ef

File tree

1 file changed

+21
-7
lines changed
  • sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates

1 file changed

+21
-7
lines changed

sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_models.py

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,30 @@ def _from_admin_detail(cls, admin_detail: models.AdministratorDetails) -> "Admin
6161

6262
@property
6363
def email(self) -> Optional[str]:
64-
""":rtype: str or None"""
64+
"""Email address of the issuer.
65+
66+
:rtype: str or None"""
6567
return self._email
6668

6769
@property
6870
def first_name(self) -> Optional[str]:
69-
""":rtype: str or None"""
71+
"""First name of the issuer.
72+
73+
:rtype: str or None"""
7074
return self._first_name
7175

7276
@property
7377
def last_name(self) -> Optional[str]:
74-
""":rtype: str or None"""
78+
"""Last name of the issuer.
79+
80+
:rtype: str or None"""
7581
return self._last_name
7682

7783
@property
7884
def phone(self) -> Optional[str]:
79-
""":rtype: str or None"""
85+
"""Phone number of the issuer.
86+
87+
:rtype: str or None"""
8088
return self._phone
8189

8290

@@ -1134,17 +1142,23 @@ def _from_certificate_contacts_item(cls, contact_item: models.Contact) -> "Certi
11341142

11351143
@property
11361144
def email(self) -> Optional[str]:
1137-
""":rtype: str or None"""
1145+
"""Email address of a contact for the certificate.
1146+
1147+
:rtype: str or None"""
11381148
return self._email
11391149

11401150
@property
11411151
def name(self) -> Optional[str]:
1142-
""":rtype: str or None"""
1152+
"""Name of a contact for the certificate.
1153+
1154+
:rtype: str or None"""
11431155
return self._name
11441156

11451157
@property
11461158
def phone(self) -> Optional[str]:
1147-
""":rtype: str or None"""
1159+
"""Phone number of a contact for the certificate.
1160+
1161+
:rtype: str or None"""
11481162
return self._phone
11491163

11501164

0 commit comments

Comments
 (0)