# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module MobileCenterApi
  module Models
    #
    # Basic information on a release
    #
    class BasicReleaseDetails
      # @return [Float] ID identifying this unique release.
      attr_accessor :id

      # @return [String] The release's version.<br>
      # For iOS: CFBundleVersion from info.plist.<br>
      # For Android: android:versionCode from AppManifest.xml.
      #
      attr_accessor :version

      # @return [String] The release's short version.<br>
      # For iOS: CFBundleShortVersionString from info.plist.<br>
      # For Android: android:versionName from AppManifest.xml.
      #
      attr_accessor :short_version

      # @return [String] UTC time in ISO 8601 format of the uploaded time.
      attr_accessor :uploaded_at

      # @return [Array<DistributionGroup>] a list of distribution groups that
      # are associated with this release.
      attr_accessor :distribution_groups


      #
      # Mapper for BasicReleaseDetails class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'BasicReleaseDetails',
          type: {
            name: 'Composite',
            class_name: 'BasicReleaseDetails',
            model_properties: {
              id: {
                required: false,
                serialized_name: 'id',
                type: {
                  name: 'Double'
                }
              },
              version: {
                required: false,
                serialized_name: 'version',
                type: {
                  name: 'String'
                }
              },
              short_version: {
                required: false,
                serialized_name: 'short_version',
                type: {
                  name: 'String'
                }
              },
              uploaded_at: {
                required: false,
                serialized_name: 'uploaded_at',
                type: {
                  name: 'String'
                }
              },
              distribution_groups: {
                required: false,
                serialized_name: 'distribution_groups',
                type: {
                  name: 'Sequence',
                  element: {
                      required: false,
                      serialized_name: 'DistributionGroupElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'DistributionGroup'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
