# coding: utf-8

"""
    https://api.partner.microsoft.com/v1.0/ingestion

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 1.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six
from swagger_client.models.microsoft_ingestion_api_models_packages_base_package import MicrosoftIngestionApiModelsPackagesBasePackage  # noqa: F401,E501

class MicrosoftIngestionApiModelsPackagesAzurePackage(MicrosoftIngestionApiModelsPackagesBasePackage):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """
    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'resource_type': 'str',
        'file_name': 'str',
        'file_sas_uri': 'str',
        'file_size': 'float',
        'validation_items': 'list[MicrosoftIngestionApiModelsSubmissionsValidationItem]',
        'publish_targets': 'list[MicrosoftIngestionApiModelsPackagesPublishTarget]',
        'is_certified': 'bool'
    }
    if hasattr(MicrosoftIngestionApiModelsPackagesBasePackage, "swagger_types"):
        swagger_types.update(MicrosoftIngestionApiModelsPackagesBasePackage.swagger_types)

    attribute_map = {
        'resource_type': 'resourceType',
        'file_name': 'fileName',
        'file_sas_uri': 'fileSasUri',
        'file_size': 'fileSize',
        'validation_items': 'validationItems',
        'publish_targets': 'publishTargets',
        'is_certified': 'isCertified'
    }
    if hasattr(MicrosoftIngestionApiModelsPackagesBasePackage, "attribute_map"):
        attribute_map.update(MicrosoftIngestionApiModelsPackagesBasePackage.attribute_map)

    def __init__(self, resource_type=None, file_name=None, file_sas_uri=None, file_size=None, validation_items=None, publish_targets=None, is_certified=None, *args, **kwargs):  # noqa: E501
        """MicrosoftIngestionApiModelsPackagesAzurePackage - a model defined in Swagger"""  # noqa: E501
        self._resource_type = None
        self._file_name = None
        self._file_sas_uri = None
        self._file_size = None
        self._validation_items = None
        self._publish_targets = None
        self._is_certified = None
        self.discriminator = None
        if resource_type is not None:
            self.resource_type = resource_type
        if file_name is not None:
            self.file_name = file_name
        if file_sas_uri is not None:
            self.file_sas_uri = file_sas_uri
        if file_size is not None:
            self.file_size = file_size
        if validation_items is not None:
            self.validation_items = validation_items
        if publish_targets is not None:
            self.publish_targets = publish_targets
        if is_certified is not None:
            self.is_certified = is_certified
        MicrosoftIngestionApiModelsPackagesBasePackage.__init__(self, *args, **kwargs)

    @property
    def resource_type(self):
        """Gets the resource_type of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501


        :return: The resource_type of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :rtype: str
        """
        return self._resource_type

    @resource_type.setter
    def resource_type(self, resource_type):
        """Sets the resource_type of this MicrosoftIngestionApiModelsPackagesAzurePackage.


        :param resource_type: The resource_type of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :type: str
        """
        allowed_values = ["", "AzureApplicationPackage", "Dynamics365BusinessCentralAddOnExtensionPackage", "Dynamics365BusinessCentralAddOnLibraryExtensionPackage", "Dynamics365BusinessCentralAddOnDependencyPackage"]  # noqa: E501
        if resource_type not in allowed_values:
            raise ValueError(
                "Invalid value for `resource_type` ({0}), must be one of {1}"  # noqa: E501
                .format(resource_type, allowed_values)
            )

        self._resource_type = resource_type

    @property
    def file_name(self):
        """Gets the file_name of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501


        :return: The file_name of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :rtype: str
        """
        return self._file_name

    @file_name.setter
    def file_name(self, file_name):
        """Sets the file_name of this MicrosoftIngestionApiModelsPackagesAzurePackage.


        :param file_name: The file_name of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :type: str
        """

        self._file_name = file_name

    @property
    def file_sas_uri(self):
        """Gets the file_sas_uri of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501


        :return: The file_sas_uri of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :rtype: str
        """
        return self._file_sas_uri

    @file_sas_uri.setter
    def file_sas_uri(self, file_sas_uri):
        """Sets the file_sas_uri of this MicrosoftIngestionApiModelsPackagesAzurePackage.


        :param file_sas_uri: The file_sas_uri of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :type: str
        """

        self._file_sas_uri = file_sas_uri

    @property
    def file_size(self):
        """Gets the file_size of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501


        :return: The file_size of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :rtype: float
        """
        return self._file_size

    @file_size.setter
    def file_size(self, file_size):
        """Sets the file_size of this MicrosoftIngestionApiModelsPackagesAzurePackage.


        :param file_size: The file_size of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :type: float
        """

        self._file_size = file_size

    @property
    def validation_items(self):
        """Gets the validation_items of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501


        :return: The validation_items of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :rtype: list[MicrosoftIngestionApiModelsSubmissionsValidationItem]
        """
        return self._validation_items

    @validation_items.setter
    def validation_items(self, validation_items):
        """Sets the validation_items of this MicrosoftIngestionApiModelsPackagesAzurePackage.


        :param validation_items: The validation_items of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :type: list[MicrosoftIngestionApiModelsSubmissionsValidationItem]
        """

        self._validation_items = validation_items

    @property
    def publish_targets(self):
        """Gets the publish_targets of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501


        :return: The publish_targets of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :rtype: list[MicrosoftIngestionApiModelsPackagesPublishTarget]
        """
        return self._publish_targets

    @publish_targets.setter
    def publish_targets(self, publish_targets):
        """Sets the publish_targets of this MicrosoftIngestionApiModelsPackagesAzurePackage.


        :param publish_targets: The publish_targets of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :type: list[MicrosoftIngestionApiModelsPackagesPublishTarget]
        """

        self._publish_targets = publish_targets

    @property
    def is_certified(self):
        """Gets the is_certified of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501


        :return: The is_certified of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :rtype: bool
        """
        return self._is_certified

    @is_certified.setter
    def is_certified(self, is_certified):
        """Sets the is_certified of this MicrosoftIngestionApiModelsPackagesAzurePackage.


        :param is_certified: The is_certified of this MicrosoftIngestionApiModelsPackagesAzurePackage.  # noqa: E501
        :type: bool
        """

        self._is_certified = is_certified

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(MicrosoftIngestionApiModelsPackagesAzurePackage, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, MicrosoftIngestionApiModelsPackagesAzurePackage):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
