• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atlanticwave-sdx / sdx-lc-client / 3715129759

pending completion
3715129759

push

github

GitHub
Merge pull request #2 from atlanticwave-sdx/1.add-github-actions

106 of 562 new or added lines in 18 files covered. (18.86%)

1173 of 2405 relevant lines covered (48.77%)

1.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.98
/swagger_client/models/api_response.py
1
# coding: utf-8
2

3
"""
3✔
4
    SDX LC
5

6
    You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).   # noqa: E501
7

8
    OpenAPI spec version: 1.0.0
9
    Contact: yxin@renci.org
10
    Generated by: https://github.com/swagger-api/swagger-codegen.git
11
"""
12

13
import pprint
3✔
14
import re  # noqa: F401
3✔
15

16
import six
3✔
17

18

19
class ApiResponse(object):
3✔
20
    """NOTE: This class is auto generated by the swagger code generator program.
21

22
    Do not edit the class manually.
23
    """
24

25
    """
1✔
26
    Attributes:
27
      swagger_types (dict): The key is attribute name
28
                            and the value is attribute type.
29
      attribute_map (dict): The key is attribute name
30
                            and the value is json key in definition.
31
    """
32
    swagger_types = {"code": "int", "type": "str", "message": "str"}
3✔
33

34
    attribute_map = {"code": "code", "type": "type", "message": "message"}
3✔
35

36
    def __init__(self, code=None, type=None, message=None):  # noqa: E501
3✔
37
        """ApiResponse - a model defined in Swagger"""  # noqa: E501
38
        self._code = None
×
39
        self._type = None
×
40
        self._message = None
×
41
        self.discriminator = None
×
42
        if code is not None:
×
43
            self.code = code
×
44
        if type is not None:
×
45
            self.type = type
×
46
        if message is not None:
×
47
            self.message = message
×
48

49
    @property
3✔
50
    def code(self):
3✔
51
        """Gets the code of this ApiResponse.  # noqa: E501
52

53

54
        :return: The code of this ApiResponse.  # noqa: E501
55
        :rtype: int
56
        """
57
        return self._code
×
58

59
    @code.setter
3✔
60
    def code(self, code):
3✔
61
        """Sets the code of this ApiResponse.
62

63

64
        :param code: The code of this ApiResponse.  # noqa: E501
65
        :type: int
66
        """
67

68
        self._code = code
×
69

70
    @property
3✔
71
    def type(self):
3✔
72
        """Gets the type of this ApiResponse.  # noqa: E501
73

74

75
        :return: The type of this ApiResponse.  # noqa: E501
76
        :rtype: str
77
        """
78
        return self._type
×
79

80
    @type.setter
3✔
81
    def type(self, type):
3✔
82
        """Sets the type of this ApiResponse.
83

84

85
        :param type: The type of this ApiResponse.  # noqa: E501
86
        :type: str
87
        """
88

89
        self._type = type
×
90

91
    @property
3✔
92
    def message(self):
3✔
93
        """Gets the message of this ApiResponse.  # noqa: E501
94

95

96
        :return: The message of this ApiResponse.  # noqa: E501
97
        :rtype: str
98
        """
99
        return self._message
×
100

101
    @message.setter
3✔
102
    def message(self, message):
3✔
103
        """Sets the message of this ApiResponse.
104

105

106
        :param message: The message of this ApiResponse.  # noqa: E501
107
        :type: str
108
        """
109

110
        self._message = message
×
111

112
    def to_dict(self):
3✔
113
        """Returns the model properties as a dict"""
114
        result = {}
×
115

116
        for attr, _ in six.iteritems(self.swagger_types):
×
117
            value = getattr(self, attr)
×
118
            if isinstance(value, list):
×
NEW
119
                result[attr] = list(
×
120
                    map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value)
121
                )
122
            elif hasattr(value, "to_dict"):
×
123
                result[attr] = value.to_dict()
×
124
            elif isinstance(value, dict):
×
NEW
125
                result[attr] = dict(
×
126
                    map(
127
                        lambda item: (item[0], item[1].to_dict())
128
                        if hasattr(item[1], "to_dict")
129
                        else item,
130
                        value.items(),
131
                    )
132
                )
133
            else:
134
                result[attr] = value
×
135
        if issubclass(ApiResponse, dict):
×
136
            for key, value in self.items():
×
137
                result[key] = value
×
138

139
        return result
×
140

141
    def to_str(self):
3✔
142
        """Returns the string representation of the model"""
143
        return pprint.pformat(self.to_dict())
×
144

145
    def __repr__(self):
3✔
146
        """For `print` and `pprint`"""
147
        return self.to_str()
×
148

149
    def __eq__(self, other):
3✔
150
        """Returns true if both objects are equal"""
151
        if not isinstance(other, ApiResponse):
×
152
            return False
×
153

154
        return self.__dict__ == other.__dict__
×
155

156
    def __ne__(self, other):
3✔
157
        """Returns true if both objects are not equal"""
158
        return not self == other
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc