# coding: utf-8

"""
    vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto

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

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

import pprint
import re  # noqa: F401

import six

class ProductsUpdateProductVersionParamsRequest(object):
    """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 = {
        'product_version_id': 'str',
        'request_id': 'str',
        'items_to_add': 'list[ParamsParam]',
        'items_to_remove': 'list[ParamsParam]'
    }

    attribute_map = {
        'product_version_id': 'product_version_id',
        'request_id': 'request_id',
        'items_to_add': 'items_to_add',
        'items_to_remove': 'items_to_remove'
    }

    def __init__(self, product_version_id=None, request_id=None, items_to_add=None, items_to_remove=None):  # noqa: E501
        """ProductsUpdateProductVersionParamsRequest - a model defined in Swagger"""  # noqa: E501
        self._product_version_id = None
        self._request_id = None
        self._items_to_add = None
        self._items_to_remove = None
        self.discriminator = None
        self.product_version_id = product_version_id
        self.request_id = request_id
        if items_to_add is not None:
            self.items_to_add = items_to_add
        if items_to_remove is not None:
            self.items_to_remove = items_to_remove

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

        The ID of the product version to be updated.  Required.  # noqa: E501

        :return: The product_version_id of this ProductsUpdateProductVersionParamsRequest.  # noqa: E501
        :rtype: str
        """
        return self._product_version_id

    @product_version_id.setter
    def product_version_id(self, product_version_id):
        """Sets the product_version_id of this ProductsUpdateProductVersionParamsRequest.

        The ID of the product version to be updated.  Required.  # noqa: E501

        :param product_version_id: The product_version_id of this ProductsUpdateProductVersionParamsRequest.  # noqa: E501
        :type: str
        """
        if product_version_id is None:
            raise ValueError("Invalid value for `product_version_id`, must not be `None`")  # noqa: E501

        self._product_version_id = product_version_id

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

        A unique string ID used to ensure the request is idempotent.  Required. Max length: 512 characters.  # noqa: E501

        :return: The request_id of this ProductsUpdateProductVersionParamsRequest.  # noqa: E501
        :rtype: str
        """
        return self._request_id

    @request_id.setter
    def request_id(self, request_id):
        """Sets the request_id of this ProductsUpdateProductVersionParamsRequest.

        A unique string ID used to ensure the request is idempotent.  Required. Max length: 512 characters.  # noqa: E501

        :param request_id: The request_id of this ProductsUpdateProductVersionParamsRequest.  # noqa: E501
        :type: str
        """
        if request_id is None:
            raise ValueError("Invalid value for `request_id`, must not be `None`")  # noqa: E501

        self._request_id = request_id

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

        A list of parameters that are to be added to the product version parameter timeseries. Each parameter in the `items_to_add` field must have its `name` and `value` populated. The `effective_timestamp` is optional and will default to current time. If set, the `effective_timestamp` must be in UTC format.  When editing the value of one or more parameter(s), each parameter in `items_to_add` must correspond to a parameter in `items_to_remove` with a matching `name` and `effective_timestamp`.  # noqa: E501

        :return: The items_to_add of this ProductsUpdateProductVersionParamsRequest.  # noqa: E501
        :rtype: list[ParamsParam]
        """
        return self._items_to_add

    @items_to_add.setter
    def items_to_add(self, items_to_add):
        """Sets the items_to_add of this ProductsUpdateProductVersionParamsRequest.

        A list of parameters that are to be added to the product version parameter timeseries. Each parameter in the `items_to_add` field must have its `name` and `value` populated. The `effective_timestamp` is optional and will default to current time. If set, the `effective_timestamp` must be in UTC format.  When editing the value of one or more parameter(s), each parameter in `items_to_add` must correspond to a parameter in `items_to_remove` with a matching `name` and `effective_timestamp`.  # noqa: E501

        :param items_to_add: The items_to_add of this ProductsUpdateProductVersionParamsRequest.  # noqa: E501
        :type: list[ParamsParam]
        """

        self._items_to_add = items_to_add

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

        A list of the parameters that are to be removed from the product version parameter timeseries. Each parameter in the `items_to_remove` field must have its `name` and `effective_timestamp` populated. The `effective_timestamp` must be in UTC format. The `value` of the parameter(s) will be ignored. An error will be raised if the `items_to_remove` field is populated with a parameter `name` and `effective_timestamp` that do not already exist in the product version parameter timeseries.  When editing the value of one or more parameter(s), each parameter in `items_to_remove` must correspond to a parameter in `items_to_add` with a matching `name` and `effective_timestamp`.  # noqa: E501

        :return: The items_to_remove of this ProductsUpdateProductVersionParamsRequest.  # noqa: E501
        :rtype: list[ParamsParam]
        """
        return self._items_to_remove

    @items_to_remove.setter
    def items_to_remove(self, items_to_remove):
        """Sets the items_to_remove of this ProductsUpdateProductVersionParamsRequest.

        A list of the parameters that are to be removed from the product version parameter timeseries. Each parameter in the `items_to_remove` field must have its `name` and `effective_timestamp` populated. The `effective_timestamp` must be in UTC format. The `value` of the parameter(s) will be ignored. An error will be raised if the `items_to_remove` field is populated with a parameter `name` and `effective_timestamp` that do not already exist in the product version parameter timeseries.  When editing the value of one or more parameter(s), each parameter in `items_to_remove` must correspond to a parameter in `items_to_add` with a matching `name` and `effective_timestamp`.  # noqa: E501

        :param items_to_remove: The items_to_remove of this ProductsUpdateProductVersionParamsRequest.  # noqa: E501
        :type: list[ParamsParam]
        """

        self._items_to_remove = items_to_remove

    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(ProductsUpdateProductVersionParamsRequest, 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, ProductsUpdateProductVersionParamsRequest):
            return False

        return self.__dict__ == other.__dict__

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