# coding: utf-8

"""
    external/v1/auth_service.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

    NOTE
    ----
    standard swagger-codegen-cli for this python client has been modified
    by custom templates. The purpose of these templates is to include
    typing information in the API and Model code. Please refer to the
    main grid repository for more info
"""

import pprint
import re  # noqa: F401

from typing import TYPE_CHECKING

import six

if TYPE_CHECKING:
    from datetime import datetime
    from lightning_cloud.openapi.models import *

class V1ListPublishedCloudSpacesResponse(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 = {
        'next_page_token': 'str',
        'previous_page_token': 'str',
        'published': 'list[V1PublishedCloudSpaceResponse]',
        'user_engaged_cloudspace_ids': 'dict(str, V1CloudSpaceIdList)'
    }

    attribute_map = {
        'next_page_token': 'nextPageToken',
        'previous_page_token': 'previousPageToken',
        'published': 'published',
        'user_engaged_cloudspace_ids': 'userEngagedCloudspaceIds'
    }

    def __init__(self, next_page_token: 'str' =None, previous_page_token: 'str' =None, published: 'list[V1PublishedCloudSpaceResponse]' =None, user_engaged_cloudspace_ids: 'dict(str, V1CloudSpaceIdList)' =None):  # noqa: E501
        """V1ListPublishedCloudSpacesResponse - a model defined in Swagger"""  # noqa: E501
        self._next_page_token = None
        self._previous_page_token = None
        self._published = None
        self._user_engaged_cloudspace_ids = None
        self.discriminator = None
        if next_page_token is not None:
            self.next_page_token = next_page_token
        if previous_page_token is not None:
            self.previous_page_token = previous_page_token
        if published is not None:
            self.published = published
        if user_engaged_cloudspace_ids is not None:
            self.user_engaged_cloudspace_ids = user_engaged_cloudspace_ids

    @property
    def next_page_token(self) -> 'str':
        """Gets the next_page_token of this V1ListPublishedCloudSpacesResponse.  # noqa: E501


        :return: The next_page_token of this V1ListPublishedCloudSpacesResponse.  # noqa: E501
        :rtype: str
        """
        return self._next_page_token

    @next_page_token.setter
    def next_page_token(self, next_page_token: 'str'):
        """Sets the next_page_token of this V1ListPublishedCloudSpacesResponse.


        :param next_page_token: The next_page_token of this V1ListPublishedCloudSpacesResponse.  # noqa: E501
        :type: str
        """

        self._next_page_token = next_page_token

    @property
    def previous_page_token(self) -> 'str':
        """Gets the previous_page_token of this V1ListPublishedCloudSpacesResponse.  # noqa: E501


        :return: The previous_page_token of this V1ListPublishedCloudSpacesResponse.  # noqa: E501
        :rtype: str
        """
        return self._previous_page_token

    @previous_page_token.setter
    def previous_page_token(self, previous_page_token: 'str'):
        """Sets the previous_page_token of this V1ListPublishedCloudSpacesResponse.


        :param previous_page_token: The previous_page_token of this V1ListPublishedCloudSpacesResponse.  # noqa: E501
        :type: str
        """

        self._previous_page_token = previous_page_token

    @property
    def published(self) -> 'list[V1PublishedCloudSpaceResponse]':
        """Gets the published of this V1ListPublishedCloudSpacesResponse.  # noqa: E501


        :return: The published of this V1ListPublishedCloudSpacesResponse.  # noqa: E501
        :rtype: list[V1PublishedCloudSpaceResponse]
        """
        return self._published

    @published.setter
    def published(self, published: 'list[V1PublishedCloudSpaceResponse]'):
        """Sets the published of this V1ListPublishedCloudSpacesResponse.


        :param published: The published of this V1ListPublishedCloudSpacesResponse.  # noqa: E501
        :type: list[V1PublishedCloudSpaceResponse]
        """

        self._published = published

    @property
    def user_engaged_cloudspace_ids(self) -> 'dict(str, V1CloudSpaceIdList)':
        """Gets the user_engaged_cloudspace_ids of this V1ListPublishedCloudSpacesResponse.  # noqa: E501


        :return: The user_engaged_cloudspace_ids of this V1ListPublishedCloudSpacesResponse.  # noqa: E501
        :rtype: dict(str, V1CloudSpaceIdList)
        """
        return self._user_engaged_cloudspace_ids

    @user_engaged_cloudspace_ids.setter
    def user_engaged_cloudspace_ids(self, user_engaged_cloudspace_ids: 'dict(str, V1CloudSpaceIdList)'):
        """Sets the user_engaged_cloudspace_ids of this V1ListPublishedCloudSpacesResponse.


        :param user_engaged_cloudspace_ids: The user_engaged_cloudspace_ids of this V1ListPublishedCloudSpacesResponse.  # noqa: E501
        :type: dict(str, V1CloudSpaceIdList)
        """

        self._user_engaged_cloudspace_ids = user_engaged_cloudspace_ids

    def to_dict(self) -> dict:
        """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(V1ListPublishedCloudSpacesResponse, dict):
            for key, value in self.items():
                result[key] = value

        return result

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

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

    def __eq__(self, other: 'V1ListPublishedCloudSpacesResponse') -> bool:
        """Returns true if both objects are equal"""
        if not isinstance(other, V1ListPublishedCloudSpacesResponse):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other: 'V1ListPublishedCloudSpacesResponse') -> bool:
        """Returns true if both objects are not equal"""
        return not self == other
