# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------


def cf_attestation_data(cli_ctx, *_):
    from ..vendored_sdks.azure_attestation import AttestationClient
    from azure.cli.core._profile import Profile

    profile = Profile(cli_ctx=cli_ctx)
    cred, _, _ = profile.get_login_credentials(
        resource="https://attest.azure.net")
    return AttestationClient(credentials=cred)


def cf_policy_certificates(cli_ctx, *_):
    return cf_attestation_data(cli_ctx).policy_certificates


def cf_policy(cli_ctx, *_):
    return cf_attestation_data(cli_ctx).policy


def cf_attest(cli_ctx, *_):
    return cf_attestation_data(cli_ctx).attest
