# 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::Web::Mgmt::V2018_02_01
  module Models
    #
    # Site Extension Information.
    #
    class SiteExtensionInfo < ProxyOnlyResource

      include MsRestAzure

      # @return [String] Site extension ID.
      attr_accessor :extension_id

      # @return [String]
      attr_accessor :title

      # @return [SiteExtensionType] Site extension type. Possible values
      # include: 'Gallery', 'WebRoot'
      attr_accessor :extension_type

      # @return [String] Summary description.
      attr_accessor :summary

      # @return [String] Detailed description.
      attr_accessor :description

      # @return [String] Version information.
      attr_accessor :version

      # @return [String] Extension URL.
      attr_accessor :extension_url

      # @return [String] Project URL.
      attr_accessor :project_url

      # @return [String] Icon URL.
      attr_accessor :icon_url

      # @return [String] License URL.
      attr_accessor :license_url

      # @return [String] Feed URL.
      attr_accessor :feed_url

      # @return [Array<String>] List of authors.
      attr_accessor :authors

      # @return [String] Installer command line parameters.
      attr_accessor :installer_command_line_params

      # @return [DateTime] Published timestamp.
      attr_accessor :published_date_time

      # @return [Integer] Count of downloads.
      attr_accessor :download_count

      # @return [Boolean] <code>true</code> if the local version is the latest
      # version; <code>false</code> otherwise.
      attr_accessor :local_is_latest_version

      # @return [String] Local path.
      attr_accessor :local_path

      # @return [DateTime] Installed timestamp.
      attr_accessor :installed_date_time

      # @return [String] Provisioning state.
      attr_accessor :provisioning_state

      # @return [String] Site Extension comment.
      attr_accessor :comment


      #
      # Mapper for SiteExtensionInfo class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SiteExtensionInfo',
          type: {
            name: 'Composite',
            class_name: 'SiteExtensionInfo',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              kind: {
                client_side_validation: true,
                required: false,
                serialized_name: 'kind',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              extension_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.extension_id',
                type: {
                  name: 'String'
                }
              },
              title: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.title',
                type: {
                  name: 'String'
                }
              },
              extension_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.extension_type',
                type: {
                  name: 'Enum',
                  module: 'SiteExtensionType'
                }
              },
              summary: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.summary',
                type: {
                  name: 'String'
                }
              },
              description: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.description',
                type: {
                  name: 'String'
                }
              },
              version: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.version',
                type: {
                  name: 'String'
                }
              },
              extension_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.extension_url',
                type: {
                  name: 'String'
                }
              },
              project_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.project_url',
                type: {
                  name: 'String'
                }
              },
              icon_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.icon_url',
                type: {
                  name: 'String'
                }
              },
              license_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.license_url',
                type: {
                  name: 'String'
                }
              },
              feed_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.feed_url',
                type: {
                  name: 'String'
                }
              },
              authors: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.authors',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              installer_command_line_params: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.installer_command_line_params',
                type: {
                  name: 'String'
                }
              },
              published_date_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.published_date_time',
                type: {
                  name: 'DateTime'
                }
              },
              download_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.download_count',
                type: {
                  name: 'Number'
                }
              },
              local_is_latest_version: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.local_is_latest_version',
                type: {
                  name: 'Boolean'
                }
              },
              local_path: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.local_path',
                type: {
                  name: 'String'
                }
              },
              installed_date_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.installed_date_time',
                type: {
                  name: 'DateTime'
                }
              },
              provisioning_state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.provisioningState',
                type: {
                  name: 'String'
                }
              },
              comment: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.comment',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
