|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + Phrase Strings API Reference |
| 5 | +
|
| 6 | + The version of the OpenAPI document: 2.0.0 |
| 7 | + Contact: support@phrase.com |
| 8 | + Generated by: https://openapi-generator.tech |
| 9 | +""" |
| 10 | + |
| 11 | + |
| 12 | +import pprint |
| 13 | +import re # noqa: F401 |
| 14 | + |
| 15 | +import six |
| 16 | + |
| 17 | +from phrase_api.configuration import Configuration |
| 18 | + |
| 19 | + |
| 20 | +class RepoSyncExportParameters(object): |
| 21 | + """NOTE: This class is auto generated by OpenAPI Generator. |
| 22 | + Ref: https://openapi-generator.tech |
| 23 | +
|
| 24 | + Do not edit the class manually. |
| 25 | + """ |
| 26 | + |
| 27 | + """ |
| 28 | + Attributes: |
| 29 | + openapi_types (dict): The key is attribute name |
| 30 | + and the value is attribute type. |
| 31 | + attribute_map (dict): The key is attribute name |
| 32 | + and the value is json key in definition. |
| 33 | + """ |
| 34 | + openapi_types = { |
| 35 | + 'pr_branch': 'str' |
| 36 | + } |
| 37 | + |
| 38 | + attribute_map = { |
| 39 | + 'pr_branch': 'pr_branch' |
| 40 | + } |
| 41 | + |
| 42 | + def __init__(self, pr_branch=None, local_vars_configuration=None): # noqa: E501 |
| 43 | + """RepoSyncExportParameters - a model defined in OpenAPI""" # noqa: E501 |
| 44 | + if local_vars_configuration is None: |
| 45 | + local_vars_configuration = Configuration() |
| 46 | + self.local_vars_configuration = local_vars_configuration |
| 47 | + |
| 48 | + self._pr_branch = None |
| 49 | + self.discriminator = None |
| 50 | + |
| 51 | + if pr_branch is not None: |
| 52 | + self.pr_branch = pr_branch |
| 53 | + |
| 54 | + @property |
| 55 | + def pr_branch(self): |
| 56 | + """Gets the pr_branch of this RepoSyncExportParameters. # noqa: E501 |
| 57 | +
|
| 58 | + Source branch to open a pull request from # noqa: E501 |
| 59 | +
|
| 60 | + :return: The pr_branch of this RepoSyncExportParameters. # noqa: E501 |
| 61 | + :rtype: str |
| 62 | + """ |
| 63 | + return self._pr_branch |
| 64 | + |
| 65 | + @pr_branch.setter |
| 66 | + def pr_branch(self, pr_branch): |
| 67 | + """Sets the pr_branch of this RepoSyncExportParameters. |
| 68 | +
|
| 69 | + Source branch to open a pull request from # noqa: E501 |
| 70 | +
|
| 71 | + :param pr_branch: The pr_branch of this RepoSyncExportParameters. # noqa: E501 |
| 72 | + :type: str |
| 73 | + """ |
| 74 | + |
| 75 | + self._pr_branch = pr_branch |
| 76 | + |
| 77 | + def to_dict(self): |
| 78 | + """Returns the model properties as a dict""" |
| 79 | + result = {} |
| 80 | + |
| 81 | + for attr, _ in six.iteritems(self.openapi_types): |
| 82 | + value = getattr(self, attr) |
| 83 | + if isinstance(value, list): |
| 84 | + result[attr] = list(map( |
| 85 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 86 | + value |
| 87 | + )) |
| 88 | + elif hasattr(value, "to_dict"): |
| 89 | + result[attr] = value.to_dict() |
| 90 | + elif isinstance(value, dict): |
| 91 | + result[attr] = dict(map( |
| 92 | + lambda item: (item[0], item[1].to_dict()) |
| 93 | + if hasattr(item[1], "to_dict") else item, |
| 94 | + value.items() |
| 95 | + )) |
| 96 | + else: |
| 97 | + result[attr] = value |
| 98 | + |
| 99 | + return result |
| 100 | + |
| 101 | + def to_str(self): |
| 102 | + """Returns the string representation of the model""" |
| 103 | + return pprint.pformat(self.to_dict()) |
| 104 | + |
| 105 | + def __repr__(self): |
| 106 | + """For `print` and `pprint`""" |
| 107 | + return self.to_str() |
| 108 | + |
| 109 | + def __eq__(self, other): |
| 110 | + """Returns true if both objects are equal""" |
| 111 | + if not isinstance(other, RepoSyncExportParameters): |
| 112 | + return False |
| 113 | + |
| 114 | + return self.to_dict() == other.to_dict() |
| 115 | + |
| 116 | + def __ne__(self, other): |
| 117 | + """Returns true if both objects are not equal""" |
| 118 | + if not isinstance(other, RepoSyncExportParameters): |
| 119 | + return True |
| 120 | + |
| 121 | + return self.to_dict() != other.to_dict() |
0 commit comments