#
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
#
# DataRobot, Inc.
#
# This is proprietary source code of DataRobot, Inc. and its
# affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
"""
Autogenerated DataRobot python client file.  Please don't modify.
"""

import trafaret as t
from datarobot.models.api_object import APIObject

class SamlSecurityParameters(APIObject):
    """
    Attributes
    ----------
    allow_unsolicited:bool [optional]
         Allow unsolicited.. 
    authn_requests_signed:bool [optional]
         Sign auth requests.. 
    logout_requests_signed:bool [optional]
         Sign logout requests.. 
    want_assertions_signed:bool [optional]
         Sign assertions.. 
    want_response_signed:bool [optional]
         Sign response.. 
    """
    _converter = t.Dict(
        {
            t.Key("allow_unsolicited", optional=True):  t.Bool(),
            t.Key("authn_requests_signed", optional=True):  t.Bool(),
            t.Key("logout_requests_signed", optional=True):  t.Bool(),
            t.Key("want_assertions_signed", optional=True):  t.Bool(),
            t.Key("want_response_signed", optional=True):  t.Bool(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        allow_unsolicited=None,
        authn_requests_signed=None,
        logout_requests_signed=None,
        want_assertions_signed=None,
        want_response_signed=None,
    ):
        self.allow_unsolicited = allow_unsolicited
        self.authn_requests_signed = authn_requests_signed
        self.logout_requests_signed = logout_requests_signed
        self.want_assertions_signed = want_assertions_signed
        self.want_response_signed = want_response_signed

    def __repr__(self):
        return (
            "SamlSecurityParameters("
            "allow_unsolicited={0.allow_unsolicited}, "
            "authn_requests_signed={0.authn_requests_signed}, "
            "logout_requests_signed={0.logout_requests_signed}, "
            "want_assertions_signed={0.want_assertions_signed}, "
            "want_response_signed={0.want_response_signed}, "
        ).format(self)
