How to use the azure-keyvault.azure.keyvault.secrets._models.DeletedSecret._from_deleted_secret_item function in azure-keyvault

To help you get started, we’ve selected a few azure-keyvault examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-python / azure-keyvault / azure / keyvault / secrets / _client.py View on Github external
~azure.keyvault.secrets._models.DeletedSecretPaged[~azure.keyvault.secrets._models.DeletedSecret]

        Example:
            .. literalinclude:: ../tests/test_examples_keyvault.py
                :start-after: [START list_deleted_secrets]
                :end-before: [END list_deleted_secrets]
                :language: python
                :dedent: 4
                :caption: Lists the deleted secrets of the vault

        """
        url = '{}/deletedsecrets'.format(self._vault_url)
        max_page_size = kwargs.get("max_page_size", None)
        paging = functools.partial(self._internal_paging, url, max_page_size)
        pages = DeletedSecretItemPaged(paging, DESERIALIZE.dependencies)
        return (DeletedSecret._from_deleted_secret_item(item) for item in pages)