# coding: utf-8 """ Copyright 2015 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Ref: https://github.com/swagger-api/swagger-codegen """ from pprint import pformat from six import iteritems class GroupsCommand(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self): """ GroupsCommand - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition. """ self.swagger_types = { 'user': 'str', 'group': 'str', 'is_sub_group': 'str', 'is_owner': 'str', 'is_user': 'str', 'max_results': 'str', 'max_scan_rows': 'str', 'max_lock_time': 'str', 'max_open_files': 'str', 'timeout': 'str', 'pass_timeout': 'str' } self.attribute_map = { 'user': 'user', 'group': 'group', 'is_sub_group': 'isSubGroup', 'is_owner': 'isOwner', 'is_user': 'isUser', 'max_results': 'maxResults', 'max_scan_rows': 'maxScanRows', 'max_lock_time': 'maxLockTime', 'max_open_files': 'maxOpenFiles', 'timeout': 'timeout', 'pass_timeout': 'passTimeout' } self._user = None self._group = None self._is_sub_group = None self._is_owner = None self._is_user = None self._max_results = None self._max_scan_rows = None self._max_lock_time = None self._max_open_files = None self._timeout = None self._pass_timeout = None @property def user(self): """ Gets the user of this GroupsCommand. :return: The user of this GroupsCommand. :rtype: str """ return self._user @user.setter def user(self, user): """ Sets the user of this GroupsCommand. :param user: The user of this GroupsCommand. :type: str """ self._user = user @property def group(self): """ Gets the group of this GroupsCommand. :return: The group of this GroupsCommand. :rtype: str """ return self._group @group.setter def group(self, group): """ Sets the group of this GroupsCommand. :param group: The group of this GroupsCommand. :type: str """ self._group = group @property def is_sub_group(self): """ Gets the is_sub_group of this GroupsCommand. :return: The is_sub_group of this GroupsCommand. :rtype: str """ return self._is_sub_group @is_sub_group.setter def is_sub_group(self, is_sub_group): """ Sets the is_sub_group of this GroupsCommand. :param is_sub_group: The is_sub_group of this GroupsCommand. :type: str """ self._is_sub_group = is_sub_group @property def is_owner(self): """ Gets the is_owner of this GroupsCommand. :return: The is_owner of this GroupsCommand. :rtype: str """ return self._is_owner @is_owner.setter def is_owner(self, is_owner): """ Sets the is_owner of this GroupsCommand. :param is_owner: The is_owner of this GroupsCommand. :type: str """ self._is_owner = is_owner @property def is_user(self): """ Gets the is_user of this GroupsCommand. :return: The is_user of this GroupsCommand. :rtype: str """ return self._is_user @is_user.setter def is_user(self, is_user): """ Sets the is_user of this GroupsCommand. :param is_user: The is_user of this GroupsCommand. :type: str """ self._is_user = is_user @property def max_results(self): """ Gets the max_results of this GroupsCommand. :return: The max_results of this GroupsCommand. :rtype: str """ return self._max_results @max_results.setter def max_results(self, max_results): """ Sets the max_results of this GroupsCommand. :param max_results: The max_results of this GroupsCommand. :type: str """ self._max_results = max_results @property def max_scan_rows(self): """ Gets the max_scan_rows of this GroupsCommand. :return: The max_scan_rows of this GroupsCommand. :rtype: str """ return self._max_scan_rows @max_scan_rows.setter def max_scan_rows(self, max_scan_rows): """ Sets the max_scan_rows of this GroupsCommand. :param max_scan_rows: The max_scan_rows of this GroupsCommand. :type: str """ self._max_scan_rows = max_scan_rows @property def max_lock_time(self): """ Gets the max_lock_time of this GroupsCommand. :return: The max_lock_time of this GroupsCommand. :rtype: str """ return self._max_lock_time @max_lock_time.setter def max_lock_time(self, max_lock_time): """ Sets the max_lock_time of this GroupsCommand. :param max_lock_time: The max_lock_time of this GroupsCommand. :type: str """ self._max_lock_time = max_lock_time @property def max_open_files(self): """ Gets the max_open_files of this GroupsCommand. :return: The max_open_files of this GroupsCommand. :rtype: str """ return self._max_open_files @max_open_files.setter def max_open_files(self, max_open_files): """ Sets the max_open_files of this GroupsCommand. :param max_open_files: The max_open_files of this GroupsCommand. :type: str """ self._max_open_files = max_open_files @property def timeout(self): """ Gets the timeout of this GroupsCommand. :return: The timeout of this GroupsCommand. :rtype: str """ return self._timeout @timeout.setter def timeout(self, timeout): """ Sets the timeout of this GroupsCommand. :param timeout: The timeout of this GroupsCommand. :type: str """ self._timeout = timeout @property def pass_timeout(self): """ Gets the pass_timeout of this GroupsCommand. :return: The pass_timeout of this GroupsCommand. :rtype: str """ return self._pass_timeout @pass_timeout.setter def pass_timeout(self, pass_timeout): """ Sets the pass_timeout of this GroupsCommand. :param pass_timeout: The pass_timeout of this GroupsCommand. :type: str """ self._pass_timeout = pass_timeout def to_dict(self): """ Returns the model properties as a dict """ result = {} for attr, _ in 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() else: result[attr] = value return result def to_str(self): """ Returns the string representation of the model """ return 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 """ return self.__dict__ == other.__dict__ def __ne__(self, other): """ Returns true if both objects are not equal """ return not self == other