|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + Mux API |
| 5 | +
|
| 6 | + Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. # noqa: E501 |
| 7 | +
|
| 8 | + The version of the OpenAPI document: v1 |
| 9 | + |
| 10 | + Generated by: https://openapi-generator.tech |
| 11 | +""" |
| 12 | + |
| 13 | + |
| 14 | +import inspect |
| 15 | +import pprint |
| 16 | +import re # noqa: F401 |
| 17 | +import six |
| 18 | + |
| 19 | +from mux_python.configuration import Configuration |
| 20 | + |
| 21 | + |
| 22 | +class LiveStreamStatus(object): |
| 23 | + """NOTE: This class is auto generated by OpenAPI Generator. |
| 24 | + Ref: https://openapi-generator.tech |
| 25 | +
|
| 26 | + Do not edit the class manually. |
| 27 | + """ |
| 28 | + |
| 29 | + """ |
| 30 | + allowed enum values |
| 31 | + """ |
| 32 | + ACTIVE = "active" |
| 33 | + IDLE = "idle" |
| 34 | + DISABLED = "disabled" |
| 35 | + |
| 36 | + allowable_values = [ACTIVE, IDLE, DISABLED] # noqa: E501 |
| 37 | + |
| 38 | + """ |
| 39 | + Attributes: |
| 40 | + openapi_types (dict): The key is attribute name |
| 41 | + and the value is attribute type. |
| 42 | + attribute_map (dict): The key is attribute name |
| 43 | + and the value is json key in definition. |
| 44 | + """ |
| 45 | + openapi_types = { |
| 46 | + } |
| 47 | + |
| 48 | + attribute_map = { |
| 49 | + } |
| 50 | + |
| 51 | + def __init__(self, local_vars_configuration=None): # noqa: E501 |
| 52 | + """LiveStreamStatus - a model defined in OpenAPI""" # noqa: E501 |
| 53 | + if local_vars_configuration is None: |
| 54 | + local_vars_configuration = Configuration.get_default_copy() |
| 55 | + self.local_vars_configuration = local_vars_configuration |
| 56 | + self.discriminator = None |
| 57 | + |
| 58 | + def to_dict(self, serialize=False): |
| 59 | + """Returns the model properties as a dict""" |
| 60 | + result = {} |
| 61 | + |
| 62 | + def convert(x): |
| 63 | + if hasattr(x, "to_dict"): |
| 64 | + args = inspect.getargspec(x.to_dict).args |
| 65 | + if len(args) == 1: |
| 66 | + return x.to_dict() |
| 67 | + else: |
| 68 | + return x.to_dict(serialize) |
| 69 | + else: |
| 70 | + return x |
| 71 | + |
| 72 | + for attr, _ in six.iteritems(self.openapi_types): |
| 73 | + value = getattr(self, attr) |
| 74 | + attr = self.attribute_map.get(attr, attr) if serialize else attr |
| 75 | + if isinstance(value, list): |
| 76 | + result[attr] = list(map( |
| 77 | + lambda x: convert(x), |
| 78 | + value |
| 79 | + )) |
| 80 | + elif isinstance(value, dict): |
| 81 | + result[attr] = dict(map( |
| 82 | + lambda item: (item[0], convert(item[1])), |
| 83 | + value.items() |
| 84 | + )) |
| 85 | + else: |
| 86 | + result[attr] = convert(value) |
| 87 | + |
| 88 | + return result |
| 89 | + |
| 90 | + def to_str(self): |
| 91 | + """Returns the string representation of the model""" |
| 92 | + return pprint.pformat(self.to_dict()) |
| 93 | + |
| 94 | + def __repr__(self): |
| 95 | + """For `print` and `pprint`""" |
| 96 | + return self.to_str() |
| 97 | + |
| 98 | + def __eq__(self, other): |
| 99 | + """Returns true if both objects are equal""" |
| 100 | + if not isinstance(other, LiveStreamStatus): |
| 101 | + return False |
| 102 | + |
| 103 | + return self.to_dict() == other.to_dict() |
| 104 | + |
| 105 | + def __ne__(self, other): |
| 106 | + """Returns true if both objects are not equal""" |
| 107 | + if not isinstance(other, LiveStreamStatus): |
| 108 | + return True |
| 109 | + |
| 110 | + return self.to_dict() != other.to_dict() |
0 commit comments