|
4 | 4 | # ------------------------------------
|
5 | 5 | # pylint:disable=too-many-lines,too-many-public-methods
|
6 | 6 | import base64
|
7 |
| -from typing import Any, AsyncIterable, Optional, Iterable, List, Dict, Union |
| 7 | +from typing import Any, Optional, Iterable, List, Dict, Union |
8 | 8 | from functools import partial
|
9 | 9 |
|
10 | 10 | from azure.core.polling import async_poller
|
11 | 11 | from azure.core.tracing.decorator import distributed_trace
|
12 | 12 | from azure.core.tracing.decorator_async import distributed_trace_async
|
| 13 | +from azure.core.async_paging import AsyncItemPaged |
13 | 14 |
|
14 | 15 | from .. import (
|
15 | 16 | KeyVaultCertificate,
|
@@ -504,7 +505,7 @@ async def restore_certificate_backup(self, backup: bytes, **kwargs: "Any") -> Ke
|
504 | 505 | return KeyVaultCertificate._from_certificate_bundle(certificate_bundle=bundle)
|
505 | 506 |
|
506 | 507 | @distributed_trace
|
507 |
| - def list_deleted_certificates(self, **kwargs: "Any") -> AsyncIterable[DeletedCertificate]: |
| 508 | + def list_deleted_certificates(self, **kwargs: "Any") -> AsyncItemPaged[DeletedCertificate]: |
508 | 509 | """Lists the currently-recoverable deleted certificates. Possible only if vault is soft-delete enabled.
|
509 | 510 |
|
510 | 511 | Requires certificates/get/list permission. Retrieves the certificates in the current vault which
|
@@ -536,7 +537,7 @@ def list_deleted_certificates(self, **kwargs: "Any") -> AsyncIterable[DeletedCer
|
536 | 537 | )
|
537 | 538 |
|
538 | 539 | @distributed_trace
|
539 |
| - def list_properties_of_certificates(self, **kwargs: "Any") -> AsyncIterable[CertificateProperties]: |
| 540 | + def list_properties_of_certificates(self, **kwargs: "Any") -> AsyncItemPaged[CertificateProperties]: |
540 | 541 | """List identifiers and properties of all certificates in the vault.
|
541 | 542 |
|
542 | 543 | Requires certificates/list permission.
|
@@ -568,7 +569,7 @@ def list_properties_of_certificates(self, **kwargs: "Any") -> AsyncIterable[Cert
|
568 | 569 | @distributed_trace
|
569 | 570 | def list_properties_of_certificate_versions(
|
570 | 571 | self, certificate_name: str, **kwargs: "Any"
|
571 |
| - ) -> AsyncIterable[CertificateProperties]: |
| 572 | + ) -> AsyncItemPaged[CertificateProperties]: |
572 | 573 | """List the identifiers and properties of a certificate's versions.
|
573 | 574 |
|
574 | 575 | Requires certificates/list permission.
|
@@ -965,7 +966,7 @@ async def delete_issuer(self, issuer_name: str, **kwargs: "Any") -> CertificateI
|
965 | 966 | return CertificateIssuer._from_issuer_bundle(issuer_bundle=issuer_bundle)
|
966 | 967 |
|
967 | 968 | @distributed_trace
|
968 |
| - def list_properties_of_issuers(self, **kwargs: "Any") -> AsyncIterable[IssuerProperties]: |
| 969 | + def list_properties_of_issuers(self, **kwargs: "Any") -> AsyncItemPaged[IssuerProperties]: |
969 | 970 | """Lists properties of the certificate issuers for the key vault.
|
970 | 971 |
|
971 | 972 | Requires the certificates/manageissuers/getissuers permission.
|
|
0 commit comments