|
19 | 19 | from volcenginesdkcore.configuration import Configuration |
20 | 20 |
|
21 | 21 |
|
22 | | -class DefaultValueForCreateVikingdbCollectionInput(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 | | - } |
37 | | - |
38 | | - attribute_map = { |
39 | | - } |
40 | | - |
41 | | - def __init__(self, _configuration=None): # noqa: E501 |
42 | | - """DefaultValueForCreateVikingdbCollectionInput - a model defined in Swagger""" # noqa: E501 |
43 | | - if _configuration is None: |
44 | | - _configuration = Configuration() |
45 | | - self._configuration = _configuration |
46 | | - self.discriminator = None |
47 | | - |
48 | | - def to_dict(self): |
49 | | - """Returns the model properties as a dict""" |
50 | | - result = {} |
51 | | - |
52 | | - for attr, _ in six.iteritems(self.swagger_types): |
53 | | - value = getattr(self, attr) |
54 | | - if isinstance(value, list): |
55 | | - result[attr] = list(map( |
56 | | - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
57 | | - value |
58 | | - )) |
59 | | - elif hasattr(value, "to_dict"): |
60 | | - result[attr] = value.to_dict() |
61 | | - elif isinstance(value, dict): |
62 | | - result[attr] = dict(map( |
63 | | - lambda item: (item[0], item[1].to_dict()) |
64 | | - if hasattr(item[1], "to_dict") else item, |
65 | | - value.items() |
66 | | - )) |
67 | | - else: |
68 | | - result[attr] = value |
69 | | - if issubclass(DefaultValueForCreateVikingdbCollectionInput, dict): |
70 | | - for key, value in self.items(): |
71 | | - result[key] = value |
72 | | - |
73 | | - return result |
74 | | - |
75 | | - def to_str(self): |
76 | | - """Returns the string representation of the model""" |
77 | | - return pprint.pformat(self.to_dict()) |
78 | | - |
79 | | - def __repr__(self): |
80 | | - """For `print` and `pprint`""" |
81 | | - return self.to_str() |
82 | | - |
83 | | - def __eq__(self, other): |
84 | | - """Returns true if both objects are equal""" |
85 | | - if not isinstance(other, DefaultValueForCreateVikingdbCollectionInput): |
86 | | - return False |
87 | | - |
88 | | - return self.to_dict() == other.to_dict() |
89 | | - |
90 | | - def __ne__(self, other): |
91 | | - """Returns true if both objects are not equal""" |
92 | | - if not isinstance(other, DefaultValueForCreateVikingdbCollectionInput): |
93 | | - return True |
94 | | - |
95 | | - return self.to_dict() != other.to_dict() |
| 22 | +# class DefaultValueForCreateVikingdbCollectionInput(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 | +# } |
| 37 | + |
| 38 | +# attribute_map = { |
| 39 | +# } |
| 40 | + |
| 41 | +# def __init__(self, _configuration=None): # noqa: E501 |
| 42 | +# """DefaultValueForCreateVikingdbCollectionInput - a model defined in Swagger""" # noqa: E501 |
| 43 | +# if _configuration is None: |
| 44 | +# _configuration = Configuration() |
| 45 | +# self._configuration = _configuration |
| 46 | +# self.discriminator = None |
| 47 | + |
| 48 | +# def to_dict(self): |
| 49 | +# """Returns the model properties as a dict""" |
| 50 | +# result = {} |
| 51 | + |
| 52 | +# for attr, _ in six.iteritems(self.swagger_types): |
| 53 | +# value = getattr(self, attr) |
| 54 | +# if isinstance(value, list): |
| 55 | +# result[attr] = list(map( |
| 56 | +# lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 57 | +# value |
| 58 | +# )) |
| 59 | +# elif hasattr(value, "to_dict"): |
| 60 | +# result[attr] = value.to_dict() |
| 61 | +# elif isinstance(value, dict): |
| 62 | +# result[attr] = dict(map( |
| 63 | +# lambda item: (item[0], item[1].to_dict()) |
| 64 | +# if hasattr(item[1], "to_dict") else item, |
| 65 | +# value.items() |
| 66 | +# )) |
| 67 | +# else: |
| 68 | +# result[attr] = value |
| 69 | +# if issubclass(DefaultValueForCreateVikingdbCollectionInput, dict): |
| 70 | +# for key, value in self.items(): |
| 71 | +# result[key] = value |
| 72 | + |
| 73 | +# return result |
| 74 | + |
| 75 | +# def to_str(self): |
| 76 | +# """Returns the string representation of the model""" |
| 77 | +# return pprint.pformat(self.to_dict()) |
| 78 | + |
| 79 | +# def __repr__(self): |
| 80 | +# """For `print` and `pprint`""" |
| 81 | +# return self.to_str() |
| 82 | + |
| 83 | +# def __eq__(self, other): |
| 84 | +# """Returns true if both objects are equal""" |
| 85 | +# if not isinstance(other, DefaultValueForCreateVikingdbCollectionInput): |
| 86 | +# return False |
| 87 | + |
| 88 | +# return self.to_dict() == other.to_dict() |
| 89 | + |
| 90 | +# def __ne__(self, other): |
| 91 | +# """Returns true if both objects are not equal""" |
| 92 | +# if not isinstance(other, DefaultValueForCreateVikingdbCollectionInput): |
| 93 | +# return True |
| 94 | + |
| 95 | +# return self.to_dict() != other.to_dict() |
0 commit comments