# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class CertificateInfoObject(Model):
    """CertificateInfoObject.

    All required parameters must be populated in order to send to Azure.

    :param certificates: Required. Certificates needed from customer
    :type certificates:
     list[~securitydomain.models.SecurityDomainCertificateItem]
    :param required: Customer to specify the number of certificates (minimum 2
     and maximum 10) to restore Security Domain. Default value: 2 .
    :type required: int
    """

    _validation = {
        'certificates': {'required': True, 'max_items': 10, 'min_items': 3, 'unique': True},
        'required': {'maximum': 10, 'minimum': 2},
    }

    _attribute_map = {
        'certificates': {'key': 'certificates', 'type': '[SecurityDomainCertificateItem]'},
        'required': {'key': 'required', 'type': 'int'},
    }

    def __init__(self, **kwargs):
        super(CertificateInfoObject, self).__init__(**kwargs)
        self.certificates = kwargs.get('certificates', None)
        self.required = kwargs.get('required', 2)
