Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
~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)