How to use the azure-keyvault.azure.keyvault.secrets._models.SecretAttributes._from_secret_bundle 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
restore_parameters = SecretRestoreParameters(secret_bundle_backup=backup)
        request_body = SERIALIZE.body(restore_parameters, 'SecretRestoreParameters')

        request = HttpRequest('POST', url, headers, data=request_body)

        request.format_parameters(query_parameters)

        response = self._pipeline.run(request, **kwargs).http_response

        if response.status_code != 200:
            raise ClientRequestError('Request failed status code {}.  {}'.format(response.status_code, response.text()))

        bundle = DESERIALIZE('SecretBundle', response)

        return SecretAttributes._from_secret_bundle(bundle)