Skip to content

Commit f2354fd

Browse files
author
Yalin Li
authored
[KeyVault Certs] Fix cspell errors (Azure#23251)
1 parent 4b4cbbe commit f2354fd

File tree

11 files changed

+30
-15
lines changed

11 files changed

+30
-15
lines changed

.vscode/cspell.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"sdk/formrecognizer/azure-ai-formrecognizer/**",
7474
"sdk/identity/azure-identity/tests/pod-identity/**",
7575
"sdk/identity/azure-identity/tests/managed-identity-live/service-fabric/**",
76-
"sdk/keyvault/azure-keyvault-certificates/**",
76+
"sdk/keyvault/azure-keyvault-certificates/tests/certs.py",
7777
"sdk/keyvault/azure-keyvault-keys/tests/keys.py",
7878
"sdk/mixedreality/azure-mixedreality-authentication/**",
7979
"sdk/modelsrepository/azure-iot-modelsrepository/**",
@@ -129,6 +129,8 @@
129129
"bstr",
130130
"byref",
131131
"cdll",
132+
"certprg",
133+
"certver",
132134
"clientid",
133135
"cname",
134136
"conda",
@@ -150,6 +152,7 @@
150152
"DWORD",
151153
"eastus",
152154
"eckey",
155+
"ekus",
153156
"encryptor",
154157
"engsys",
155158
"envname",
@@ -159,6 +162,7 @@
159162
"gbps",
160163
"GCCH",
161164
"graphrbac",
165+
"gmtime",
162166
"guids",
163167
"hanaonazure",
164168
"hdinsight",
@@ -184,6 +188,9 @@
184188
"Kubernetes",
185189
"Kusto",
186190
"livekvtest",
191+
"livekvtestcertprg",
192+
"livekvtestcertrec",
193+
"livekvtestgetcertperfcert",
187194
"livekvtestgetsecretperfsecret",
188195
"livekvtestlistperfsecret",
189196
"lmazuel",
@@ -223,6 +230,7 @@
223230
"perfstress",
224231
"personalizer",
225232
"pkce",
233+
"pkey",
226234
"plex",
227235
"pluggy",
228236
"popen",
@@ -264,6 +272,8 @@
264272
"ukwest",
265273
"unpadder",
266274
"unredacted",
275+
"unsubscriptable",
276+
"upns",
267277
"upserted",
268278
"urandom",
269279
"urlsafeb",

sdk/keyvault/azure-keyvault-certificates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ This section contains code snippets covering common tasks:
147147
* [Retrieve a Certificate](#retrieve-a-certificate "Retrieve a Certificate")
148148
* [Update Properties of an existing Certificate](#update-properties-of-an-existing-certificate "Update Properties of an existing Certificate")
149149
* [Delete a Certificate](#delete-a-certificate "Delete a Certificate")
150-
* [List Properites of Certificates](#list-properties-of-certificates "List Properties of Certificates")
150+
* [List Properties of Certificates](#list-properties-of-certificates "List Properties of Certificates")
151151
* [Asynchronously create a Certificate](#asynchronously-create-a-certificate "Asynchronously create a Certificate")
152152
* [Asynchronously list properties of Certificates](#asynchronously-list-properties-of-certificates "Asynchronously list properties of Certificates")
153153

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def get_certificate_policy(self, certificate_name, **kwargs):
414414
@distributed_trace
415415
def update_certificate_policy(self, certificate_name, policy, **kwargs):
416416
# type: (str, CertificatePolicy, **Any) -> CertificatePolicy
417-
"""Updates the policy for a certificate. Requires certificiates/update permission.
417+
"""Updates the policy for a certificate. Requires certificates/update permission.
418418
419419
Set specified members in the certificate policy. Leaves others as null.
420420

sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_shared/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def _get_exception_for_key_vault_error(cls, response):
2323
body = ContentDecodePolicy.deserialize_from_http_generics(response)
2424
message = "({}) {}".format(body["error"]["code"], body["error"]["message"]) # type: Optional[str]
2525
except (DecodeError, KeyError):
26-
# Key Vault error response bodies should have the expected shape and be deserializable.
26+
# Key Vault error response bodies should have the expected shape and be de-serializable.
2727
# If we somehow land here, we'll take HttpResponse's default message.
2828
message = None
2929

sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_shared/http_challenge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, request_uri, challenge, response_headers=None):
4141
raise ValueError("Invalid challenge parameters")
4242

4343
authorization_uri = self.get_authorization_server()
44-
# the authoritzation server URI should look something like https://login.windows.net/tenant-id
44+
# the authorization server URI should look something like https://login.windows.net/tenant-id
4545
uri_path = parse.urlparse(authorization_uri).path.lstrip("/")
4646
self.tenant_id = uri_path.split("/")[0] or None
4747

sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/aio/_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ async def get_certificate_policy(self, certificate_name: str, **kwargs: "Any") -
390390
async def update_certificate_policy(
391391
self, certificate_name: str, policy: CertificatePolicy, **kwargs: "Any"
392392
) -> CertificatePolicy:
393-
"""Updates the policy for a certificate. Requires certificiates/update permission.
393+
"""Updates the policy for a certificate. Requires certificates/update permission.
394394
395395
Set specified members in the certificate policy. Leaves others as null.
396396
@@ -652,7 +652,7 @@ async def set_contacts(self, contacts: Iterable[CertificateContact], **kwargs: "
652652
async def get_contacts(self, **kwargs: "Any") -> List[CertificateContact]:
653653
# pylint:disable=unsubscriptable-object
654654

655-
# disabled unsubscruptable-object because of pylint bug referenced here:
655+
# disabled unsubscriptable-object because of pylint bug referenced here:
656656
# https://github.com/PyCQA/pylint/issues/2377
657657
"""Gets the certificate contacts for the key vault. Requires the certificates/managecontacts permission.
658658
@@ -677,7 +677,7 @@ async def get_contacts(self, **kwargs: "Any") -> List[CertificateContact]:
677677
async def delete_contacts(self, **kwargs: "Any") -> List[CertificateContact]:
678678
# pylint:disable=unsubscriptable-object
679679

680-
# disabled unsubscruptable-object because of pylint bug referenced here:
680+
# disabled unsubscriptable-object because of pylint bug referenced here:
681681
# https://github.com/PyCQA/pylint/issues/2377
682682
"""Deletes the certificate contacts for the key vault. Requires the certificates/managecontacts permission.
683683

sdk/keyvault/azure-keyvault-certificates/samples/issuers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
print(contact.email)
6464
print(contact.phone)
6565

66-
# Now we update the admnistrator contact for this issuer
66+
# Now we update the administrator contact for this issuer
6767
admin_contacts = [
6868
AdministratorContact(first_name="Jane", last_name="Doe", email="[email protected]", phone="4255555555")
6969
]

sdk/keyvault/azure-keyvault-certificates/samples/issuers_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def run_sample():
6666
print(contact.email)
6767
print(contact.phone)
6868

69-
# Now we update the admnistrator contact for this issuer
69+
# Now we update the administrator contact for this issuer
7070
admin_contacts = [
7171
AdministratorContact(first_name="Jane", last_name="Doe", email="[email protected]", phone="4255555555")
7272
]

0 commit comments

Comments
 (0)