text: # 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 X509CertificateInfo(Model):
      """X509 certificate info.
  
      All required parameters must be populated in order to send to Azure.
  
      :param subject_name: Required.
      :type subject_name: str
      :param sha1_thumbprint: Required.
      :type sha1_thumbprint: str
      :param sha256_thumbprint: Required.
      :type sha256_thumbprint: str
      :param issuer_name: Required.
      :type issuer_name: str
      :param not_before_utc: Required.
      :type not_before_utc: datetime
      :param not_after_utc: Required.
      :type not_after_utc: datetime
      :param serial_number: Required.
      :type serial_number: str
      :param version: Required.
      :type version: int
      """
  
      _validation = {
          'subject_name': {'required': True},
          'sha1_thumbprint': {'required': True},
          'sha256_thumbprint': {'required': True},
          'issuer_name': {'required': True},
          'not_before_utc': {'required': True},
          'not_after_utc': {'required': True},
          'serial_number': {'required': True},
          'version': {'required': True},
      }
  
      _attribute_map = {
          'subject_name': {'key': 'subjectName', 'type': 'str'},
          'sha1_thumbprint': {'key': 'sha1Thumbprint', 'type': 'str'},
          'sha256_thumbprint': {'key': 'sha256Thumbprint', 'type': 'str'},
          'issuer_name': {'key': 'issuerName', 'type': 'str'},
          'not_before_utc': {'key': 'notBeforeUtc', 'type': 'iso-8601'},
          'not_after_utc': {'key': 'notAfterUtc', 'type': 'iso-8601'},
          'serial_number': {'key': 'serialNumber', 'type': 'str'},
          'version': {'key': 'version', 'type': 'int'},
      }
  
      def __init__(self, **kwargs):
          super(X509CertificateInfo, self).__init__(**kwargs)
          self.subject_name = kwargs.get('subject_name', None)
          self.sha1_thumbprint = kwargs.get('sha1_thumbprint', None)
          self.sha256_thumbprint = kwargs.get('sha256_thumbprint', None)
          self.issuer_name = kwargs.get('issuer_name', None)
          self.not_before_utc = kwargs.get('not_before_utc', None)
          self.not_after_utc = kwargs.get('not_after_utc', None)
          self.serial_number = kwargs.get('serial_number', None)
          self.version = kwargs.get('version', None)
  