def list_properties_of_certificate_versions( self, name: str, **kwargs: "**Any" ) -> AsyncIterable[CertificateProperties]: """List the versions of a certificate. The GetCertificateVersions operation returns the versions of a certificate in the key vault. This operation requires the certificates/list permission. :param str name: The name of the certificate. :returns: An iterator like instance of CertificateProperties :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.certificates.models.CertificateProperties] :raises: :class:`~azure.core.exceptions.HttpResponseError` Example: .. literalinclude:: ../tests/test_examples_certificates_async.py :start-after: [START list_properties_of_certificate_versions] :end-before: [END list_properties_of_certificate_versions] :language: python :caption: List all versions of a certificate :dedent: 8 """ max_page_size = kwargs.pop("max_page_size", None) return self._client.get_certificate_versions( vault_base_url=self._vault_url, certificate_name=name, maxresults=max_page_size, cls=lambda objs: [CertificateProperties._from_certificate_item(x) for x in objs], **kwargs )
def list_properties_of_certificates(self, **kwargs: "**Any") -> AsyncIterable[CertificateProperties]: """List certificates in the key vault. The GetCertificates operation returns the set of certificates resources in the key vault. This operation requires the certificates/list permission. :keyword bool include_pending: Specifies whether to include certificates which are not completely provisioned. :returns: An iterator like instance of CertificateProperties :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.certificates.models.CertificateProperties] :raises: :class:`~azure.core.exceptions.HttpResponseError` Example: .. literalinclude:: ../tests/test_examples_certificates_async.py :start-after: [START list_properties_of_certificates] :end-before: [END list_properties_of_certificates] :language: python :caption: List all certificates :dedent: 8 """ max_page_size = kwargs.pop("max_page_size", None) return self._client.get_certificates( vault_base_url=self._vault_url, maxresults=max_page_size, cls=lambda objs: [CertificateProperties._from_certificate_item(x) for x in objs], **kwargs )