Automatically generated Python client for Gitea. DO NOT UPDATE MANUALLY!!!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

300 lines
8.0 KiB

# coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class MigrateRepoForm(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 = {
'auth_password': 'str',
'auth_username': 'str',
'clone_addr': 'str',
'description': 'str',
'mirror': 'bool',
'private': 'bool',
'repo_name': 'str',
'uid': 'int'
}
attribute_map = {
'auth_password': 'auth_password',
'auth_username': 'auth_username',
'clone_addr': 'clone_addr',
'description': 'description',
'mirror': 'mirror',
'private': 'private',
'repo_name': 'repo_name',
'uid': 'uid'
}
def __init__(self, auth_password=None, auth_username=None, clone_addr=None, description=None, mirror=None, private=None, repo_name=None, uid=None): # noqa: E501
"""MigrateRepoForm - a model defined in Swagger""" # noqa: E501
self._auth_password = None
self._auth_username = None
self._clone_addr = None
self._description = None
self._mirror = None
self._private = None
self._repo_name = None
self._uid = None
self.discriminator = None
if auth_password is not None:
self.auth_password = auth_password
if auth_username is not None:
self.auth_username = auth_username
self.clone_addr = clone_addr
if description is not None:
self.description = description
if mirror is not None:
self.mirror = mirror
if private is not None:
self.private = private
self.repo_name = repo_name
self.uid = uid
@property
def auth_password(self):
"""Gets the auth_password of this MigrateRepoForm. # noqa: E501
:return: The auth_password of this MigrateRepoForm. # noqa: E501
:rtype: str
"""
return self._auth_password
@auth_password.setter
def auth_password(self, auth_password):
"""Sets the auth_password of this MigrateRepoForm.
:param auth_password: The auth_password of this MigrateRepoForm. # noqa: E501
:type: str
"""
self._auth_password = auth_password
@property
def auth_username(self):
"""Gets the auth_username of this MigrateRepoForm. # noqa: E501
:return: The auth_username of this MigrateRepoForm. # noqa: E501
:rtype: str
"""
return self._auth_username
@auth_username.setter
def auth_username(self, auth_username):
"""Sets the auth_username of this MigrateRepoForm.
:param auth_username: The auth_username of this MigrateRepoForm. # noqa: E501
:type: str
"""
self._auth_username = auth_username
@property
def clone_addr(self):
"""Gets the clone_addr of this MigrateRepoForm. # noqa: E501
:return: The clone_addr of this MigrateRepoForm. # noqa: E501
:rtype: str
"""
return self._clone_addr
@clone_addr.setter
def clone_addr(self, clone_addr):
"""Sets the clone_addr of this MigrateRepoForm.
:param clone_addr: The clone_addr of this MigrateRepoForm. # noqa: E501
:type: str
"""
if clone_addr is None:
raise ValueError("Invalid value for `clone_addr`, must not be `None`") # noqa: E501
self._clone_addr = clone_addr
@property
def description(self):
"""Gets the description of this MigrateRepoForm. # noqa: E501
:return: The description of this MigrateRepoForm. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this MigrateRepoForm.
:param description: The description of this MigrateRepoForm. # noqa: E501
:type: str
"""
self._description = description
@property
def mirror(self):
"""Gets the mirror of this MigrateRepoForm. # noqa: E501
:return: The mirror of this MigrateRepoForm. # noqa: E501
:rtype: bool
"""
return self._mirror
@mirror.setter
def mirror(self, mirror):
"""Sets the mirror of this MigrateRepoForm.
:param mirror: The mirror of this MigrateRepoForm. # noqa: E501
:type: bool
"""
self._mirror = mirror
@property
def private(self):
"""Gets the private of this MigrateRepoForm. # noqa: E501
:return: The private of this MigrateRepoForm. # noqa: E501
:rtype: bool
"""
return self._private
@private.setter
def private(self, private):
"""Sets the private of this MigrateRepoForm.
:param private: The private of this MigrateRepoForm. # noqa: E501
:type: bool
"""
self._private = private
@property
def repo_name(self):
"""Gets the repo_name of this MigrateRepoForm. # noqa: E501
:return: The repo_name of this MigrateRepoForm. # noqa: E501
:rtype: str
"""
return self._repo_name
@repo_name.setter
def repo_name(self, repo_name):
"""Sets the repo_name of this MigrateRepoForm.
:param repo_name: The repo_name of this MigrateRepoForm. # noqa: E501
:type: str
"""
if repo_name is None:
raise ValueError("Invalid value for `repo_name`, must not be `None`") # noqa: E501
self._repo_name = repo_name
@property
def uid(self):
"""Gets the uid of this MigrateRepoForm. # noqa: E501
:return: The uid of this MigrateRepoForm. # noqa: E501
:rtype: int
"""
return self._uid
@uid.setter
def uid(self, uid):
"""Sets the uid of this MigrateRepoForm.
:param uid: The uid of this MigrateRepoForm. # noqa: E501
:type: int
"""
if uid is None:
raise ValueError("Invalid value for `uid`, must not be `None`") # noqa: E501
self._uid = uid
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(MigrateRepoForm, 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, MigrateRepoForm):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other