How to use the azure-keyvault.azure.keyvault.secrets._models.SecretAttributes._from_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
Example:
            .. literalinclude:: ../tests/test_examples_keyvault.py
                :start-after: [START list_secret_versions]
                :end-before: [END list_secret_versions]
                :language: python
                :dedent: 4
                :caption: List all versions of the specified secret

        """

        url = '{}/secrets/{}/versions'.format(self._vault_url, name)
        max_page_size = kwargs.get("max_page_size", None)
        paging = functools.partial(self._internal_paging, url, max_page_size)
        pages = SecretItemPaged(paging, DESERIALIZE.dependencies)
        return (SecretAttributes._from_secret_item(item) for item in pages)
github Azure / azure-sdk-for-python / azure-keyvault / azure / keyvault / secrets / _client.py View on Github external
~azure.keyvault.secrets._models.SecretAttributesPaged[~azure.keyvault.secrets._models.SecretAttributes]

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

        """
        url = '{}/secrets'.format(self._vault_url)
        max_page_size = kwargs.get("max_page_size", None)
        paging = functools.partial(self._internal_paging, url, max_page_size)
        pages = SecretItemPaged(paging, DESERIALIZE.dependencies)
        return (SecretAttributes._from_secret_item(item) for item in pages)