|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + storage_ebs |
| 5 | +
|
| 6 | + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 |
| 7 | +
|
| 8 | + OpenAPI spec version: common-version |
| 9 | + |
| 10 | + Generated by: https://github.com/swagger-api/swagger-codegen.git |
| 11 | +""" |
| 12 | + |
| 13 | + |
| 14 | +import pprint |
| 15 | +import re # noqa: F401 |
| 16 | + |
| 17 | +import six |
| 18 | + |
| 19 | +from volcenginesdkcore.configuration import Configuration |
| 20 | + |
| 21 | + |
| 22 | +class AttachmentForDescribeVolumesOutput(object): |
| 23 | + """NOTE: This class is auto generated by the swagger code generator program. |
| 24 | +
|
| 25 | + Do not edit the class manually. |
| 26 | + """ |
| 27 | + |
| 28 | + """ |
| 29 | + Attributes: |
| 30 | + swagger_types (dict): The key is attribute name |
| 31 | + and the value is attribute type. |
| 32 | + attribute_map (dict): The key is attribute name |
| 33 | + and the value is json key in definition. |
| 34 | + """ |
| 35 | + swagger_types = { |
| 36 | + 'attached_time': 'str', |
| 37 | + 'instance_id': 'str' |
| 38 | + } |
| 39 | + |
| 40 | + attribute_map = { |
| 41 | + 'attached_time': 'AttachedTime', |
| 42 | + 'instance_id': 'InstanceId' |
| 43 | + } |
| 44 | + |
| 45 | + def __init__(self, attached_time=None, instance_id=None, _configuration=None): # noqa: E501 |
| 46 | + """AttachmentForDescribeVolumesOutput - a model defined in Swagger""" # noqa: E501 |
| 47 | + if _configuration is None: |
| 48 | + _configuration = Configuration() |
| 49 | + self._configuration = _configuration |
| 50 | + |
| 51 | + self._attached_time = None |
| 52 | + self._instance_id = None |
| 53 | + self.discriminator = None |
| 54 | + |
| 55 | + if attached_time is not None: |
| 56 | + self.attached_time = attached_time |
| 57 | + if instance_id is not None: |
| 58 | + self.instance_id = instance_id |
| 59 | + |
| 60 | + @property |
| 61 | + def attached_time(self): |
| 62 | + """Gets the attached_time of this AttachmentForDescribeVolumesOutput. # noqa: E501 |
| 63 | +
|
| 64 | +
|
| 65 | + :return: The attached_time of this AttachmentForDescribeVolumesOutput. # noqa: E501 |
| 66 | + :rtype: str |
| 67 | + """ |
| 68 | + return self._attached_time |
| 69 | + |
| 70 | + @attached_time.setter |
| 71 | + def attached_time(self, attached_time): |
| 72 | + """Sets the attached_time of this AttachmentForDescribeVolumesOutput. |
| 73 | +
|
| 74 | +
|
| 75 | + :param attached_time: The attached_time of this AttachmentForDescribeVolumesOutput. # noqa: E501 |
| 76 | + :type: str |
| 77 | + """ |
| 78 | + |
| 79 | + self._attached_time = attached_time |
| 80 | + |
| 81 | + @property |
| 82 | + def instance_id(self): |
| 83 | + """Gets the instance_id of this AttachmentForDescribeVolumesOutput. # noqa: E501 |
| 84 | +
|
| 85 | +
|
| 86 | + :return: The instance_id of this AttachmentForDescribeVolumesOutput. # noqa: E501 |
| 87 | + :rtype: str |
| 88 | + """ |
| 89 | + return self._instance_id |
| 90 | + |
| 91 | + @instance_id.setter |
| 92 | + def instance_id(self, instance_id): |
| 93 | + """Sets the instance_id of this AttachmentForDescribeVolumesOutput. |
| 94 | +
|
| 95 | +
|
| 96 | + :param instance_id: The instance_id of this AttachmentForDescribeVolumesOutput. # noqa: E501 |
| 97 | + :type: str |
| 98 | + """ |
| 99 | + |
| 100 | + self._instance_id = instance_id |
| 101 | + |
| 102 | + def to_dict(self): |
| 103 | + """Returns the model properties as a dict""" |
| 104 | + result = {} |
| 105 | + |
| 106 | + for attr, _ in six.iteritems(self.swagger_types): |
| 107 | + value = getattr(self, attr) |
| 108 | + if isinstance(value, list): |
| 109 | + result[attr] = list(map( |
| 110 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 111 | + value |
| 112 | + )) |
| 113 | + elif hasattr(value, "to_dict"): |
| 114 | + result[attr] = value.to_dict() |
| 115 | + elif isinstance(value, dict): |
| 116 | + result[attr] = dict(map( |
| 117 | + lambda item: (item[0], item[1].to_dict()) |
| 118 | + if hasattr(item[1], "to_dict") else item, |
| 119 | + value.items() |
| 120 | + )) |
| 121 | + else: |
| 122 | + result[attr] = value |
| 123 | + if issubclass(AttachmentForDescribeVolumesOutput, dict): |
| 124 | + for key, value in self.items(): |
| 125 | + result[key] = value |
| 126 | + |
| 127 | + return result |
| 128 | + |
| 129 | + def to_str(self): |
| 130 | + """Returns the string representation of the model""" |
| 131 | + return pprint.pformat(self.to_dict()) |
| 132 | + |
| 133 | + def __repr__(self): |
| 134 | + """For `print` and `pprint`""" |
| 135 | + return self.to_str() |
| 136 | + |
| 137 | + def __eq__(self, other): |
| 138 | + """Returns true if both objects are equal""" |
| 139 | + if not isinstance(other, AttachmentForDescribeVolumesOutput): |
| 140 | + return False |
| 141 | + |
| 142 | + return self.to_dict() == other.to_dict() |
| 143 | + |
| 144 | + def __ne__(self, other): |
| 145 | + """Returns true if both objects are not equal""" |
| 146 | + if not isinstance(other, AttachmentForDescribeVolumesOutput): |
| 147 | + return True |
| 148 | + |
| 149 | + return self.to_dict() != other.to_dict() |
0 commit comments