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

module Azure::Compute::Mgmt::V2020_09_30_preview
  module Models
    #
    # Specifies information about the gallery image version that you want to
    # create or update.
    #
    class SharedGalleryImageVersion < PirSharedGalleryResource

      include MsRestAzure

      # @return [DateTime] The published date of the gallery image version
      # Definition. This property can be used for decommissioning purposes.
      # This property is updatable.
      attr_accessor :published_date

      # @return [DateTime] The end of life date of the gallery image version
      # Definition. This property can be used for decommissioning purposes.
      # This property is updatable.
      attr_accessor :end_of_life_date


      #
      # Mapper for SharedGalleryImageVersion class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SharedGalleryImageVersion',
          type: {
            name: 'Composite',
            class_name: 'SharedGalleryImageVersion',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              location: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'location',
                type: {
                  name: 'String'
                }
              },
              unique_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'identifier.uniqueId',
                type: {
                  name: 'String'
                }
              },
              published_date: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.publishedDate',
                type: {
                  name: 'DateTime'
                }
              },
              end_of_life_date: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.endOfLifeDate',
                type: {
                  name: 'DateTime'
                }
              }
            }
          }
        }
      end
    end
  end
end
