def METHOD_NAME(self, client, **kwargs):
    secret_client = client
    secret_name = self.get_resource_name("secret-name")
    secret_client.set_secret(secret_name, "secret-value")
    secret_client.begin_delete_secret(secret_name).wait()
    # [START get_deleted_secret]
    # gets a deleted secret (requires soft-delete enabled for the vault)
    deleted_secret = secret_client.get_deleted_secret(secret_name)
    print(deleted_secret.name)
    # [END get_deleted_secret]
    # [START recover_deleted_secret]
    # recover deleted secret to the latest version
    recover_secret_poller = secret_client.begin_recover_deleted_secret(secret_name)
    recovered_secret = recover_secret_poller.result()
    print(recovered_secret.id)
    print(recovered_secret.name)
    # if you want to block until secret is recovered server-side, call wait() on the poller
    recover_secret_poller.wait()
    # [END recover_deleted_secret]