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 Metadata(Model):
      """Metadata for the TwinCollection.
  
      :param last_updated: Last time the TwinCollection was updated
      :type last_updated: datetime
      :param last_updated_version: This SHOULD be null for Reported properties
       metadata and MUST not be null for Desired properties metadata.
      :type last_updated_version: long
      """
  
      _attribute_map = {
          'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'},
          'last_updated_version': {'key': 'lastUpdatedVersion', 'type': 'long'},
      }
  
      def __init__(self, **kwargs):
          super(Metadata, self).__init__(**kwargs)
          self.last_updated = kwargs.get('last_updated', None)
          self.last_updated_version = kwargs.get('last_updated_version', None)
  