# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------
# pylint: disable=too-many-lines


def attestation_attestation_provider_list(client,
                                          resource_group_name=None):
    if resource_group_name:
        return client.list_by_resource_group(resource_group_name=resource_group_name)
    return client.list()


def attestation_attestation_provider_show(client,
                                          resource_group_name,
                                          provider_name):
    return client.get(resource_group_name=resource_group_name,
                      provider_name=provider_name)


def attestation_attestation_provider_create(client,
                                            resource_group_name,
                                            provider_name,
                                            location,
                                            tags=None,
                                            policy_signing_certificates_keys=None):
    return client.create(resource_group_name=resource_group_name,
                         provider_name=provider_name,
                         location=location,
                         tags=tags,
                         keys=policy_signing_certificates_keys)


def attestation_attestation_provider_update(client,
                                            resource_group_name,
                                            provider_name,
                                            tags=None):
    return client.update(resource_group_name=resource_group_name,
                         provider_name=provider_name,
                         tags=tags)


def attestation_attestation_provider_delete(client,
                                            resource_group_name,
                                            provider_name):
    return client.delete(resource_group_name=resource_group_name,
                         provider_name=provider_name)


def attestation_attestation_provider_get_default_by_location(client,
                                                             location):
    return client.get_default_by_location(location=location)


def attestation_attestation_provider_list_default(client):
    return client.list_default()
