huaweicloudsdkgaussdbforopengauss 3.1.124__py2.py3-none-any.whl → 3.1.126__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class GaussDBErrorResponseBody:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'error_code': 'str',
21
+ 'error_msg': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'error_code': 'error_code',
26
+ 'error_msg': 'error_msg'
27
+ }
28
+
29
+ def __init__(self, error_code=None, error_msg=None):
30
+ """GaussDBErrorResponseBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param error_code: 错误码。
35
+ :type error_code: str
36
+ :param error_msg: 错误消息。
37
+ :type error_msg: str
38
+ """
39
+
40
+
41
+
42
+ self._error_code = None
43
+ self._error_msg = None
44
+ self.discriminator = None
45
+
46
+ self.error_code = error_code
47
+ self.error_msg = error_msg
48
+
49
+ @property
50
+ def error_code(self):
51
+ """Gets the error_code of this GaussDBErrorResponseBody.
52
+
53
+ 错误码。
54
+
55
+ :return: The error_code of this GaussDBErrorResponseBody.
56
+ :rtype: str
57
+ """
58
+ return self._error_code
59
+
60
+ @error_code.setter
61
+ def error_code(self, error_code):
62
+ """Sets the error_code of this GaussDBErrorResponseBody.
63
+
64
+ 错误码。
65
+
66
+ :param error_code: The error_code of this GaussDBErrorResponseBody.
67
+ :type error_code: str
68
+ """
69
+ self._error_code = error_code
70
+
71
+ @property
72
+ def error_msg(self):
73
+ """Gets the error_msg of this GaussDBErrorResponseBody.
74
+
75
+ 错误消息。
76
+
77
+ :return: The error_msg of this GaussDBErrorResponseBody.
78
+ :rtype: str
79
+ """
80
+ return self._error_msg
81
+
82
+ @error_msg.setter
83
+ def error_msg(self, error_msg):
84
+ """Sets the error_msg of this GaussDBErrorResponseBody.
85
+
86
+ 错误消息。
87
+
88
+ :param error_msg: The error_msg of this GaussDBErrorResponseBody.
89
+ :type error_msg: str
90
+ """
91
+ self._error_msg = error_msg
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, GaussDBErrorResponseBody):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListFeaturesRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'x_language': 'str',
21
+ 'instance_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'instance_id': 'instance_id'
27
+ }
28
+
29
+ def __init__(self, x_language=None, instance_id=None):
30
+ """ListFeaturesRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言。
35
+ :type x_language: str
36
+ :param instance_id: 实例ID。
37
+ :type instance_id: str
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._instance_id = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ self.instance_id = instance_id
49
+
50
+ @property
51
+ def x_language(self):
52
+ """Gets the x_language of this ListFeaturesRequest.
53
+
54
+ 语言。
55
+
56
+ :return: The x_language of this ListFeaturesRequest.
57
+ :rtype: str
58
+ """
59
+ return self._x_language
60
+
61
+ @x_language.setter
62
+ def x_language(self, x_language):
63
+ """Sets the x_language of this ListFeaturesRequest.
64
+
65
+ 语言。
66
+
67
+ :param x_language: The x_language of this ListFeaturesRequest.
68
+ :type x_language: str
69
+ """
70
+ self._x_language = x_language
71
+
72
+ @property
73
+ def instance_id(self):
74
+ """Gets the instance_id of this ListFeaturesRequest.
75
+
76
+ 实例ID。
77
+
78
+ :return: The instance_id of this ListFeaturesRequest.
79
+ :rtype: str
80
+ """
81
+ return self._instance_id
82
+
83
+ @instance_id.setter
84
+ def instance_id(self, instance_id):
85
+ """Sets the instance_id of this ListFeaturesRequest.
86
+
87
+ 实例ID。
88
+
89
+ :param instance_id: The instance_id of this ListFeaturesRequest.
90
+ :type instance_id: str
91
+ """
92
+ self._instance_id = instance_id
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, ListFeaturesRequest):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ListFeaturesResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'features': 'list[FeatureResult]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'features': 'features'
26
+ }
27
+
28
+ def __init__(self, features=None):
29
+ """ListFeaturesResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param features: 高级特性列表。
34
+ :type features: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.FeatureResult`]
35
+ """
36
+
37
+ super(ListFeaturesResponse, self).__init__()
38
+
39
+ self._features = None
40
+ self.discriminator = None
41
+
42
+ if features is not None:
43
+ self.features = features
44
+
45
+ @property
46
+ def features(self):
47
+ """Gets the features of this ListFeaturesResponse.
48
+
49
+ 高级特性列表。
50
+
51
+ :return: The features of this ListFeaturesResponse.
52
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.FeatureResult`]
53
+ """
54
+ return self._features
55
+
56
+ @features.setter
57
+ def features(self, features):
58
+ """Sets the features of this ListFeaturesResponse.
59
+
60
+ 高级特性列表。
61
+
62
+ :param features: The features of this ListFeaturesResponse.
63
+ :type features: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.FeatureResult`]
64
+ """
65
+ self._features = features
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, ListFeaturesResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateFeaturesRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'x_language': 'str',
21
+ 'instance_id': 'str',
22
+ 'body': 'UpdateFeaturesRequestBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, body=None):
32
+ """UpdateFeaturesRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 语言。
37
+ :type x_language: str
38
+ :param instance_id: 实例ID。
39
+ :type instance_id: str
40
+ :param body: Body of the UpdateFeaturesRequest
41
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateFeaturesRequestBody`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.instance_id = instance_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def x_language(self):
59
+ """Gets the x_language of this UpdateFeaturesRequest.
60
+
61
+ 语言。
62
+
63
+ :return: The x_language of this UpdateFeaturesRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ """Sets the x_language of this UpdateFeaturesRequest.
71
+
72
+ 语言。
73
+
74
+ :param x_language: The x_language of this UpdateFeaturesRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def instance_id(self):
81
+ """Gets the instance_id of this UpdateFeaturesRequest.
82
+
83
+ 实例ID。
84
+
85
+ :return: The instance_id of this UpdateFeaturesRequest.
86
+ :rtype: str
87
+ """
88
+ return self._instance_id
89
+
90
+ @instance_id.setter
91
+ def instance_id(self, instance_id):
92
+ """Sets the instance_id of this UpdateFeaturesRequest.
93
+
94
+ 实例ID。
95
+
96
+ :param instance_id: The instance_id of this UpdateFeaturesRequest.
97
+ :type instance_id: str
98
+ """
99
+ self._instance_id = instance_id
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this UpdateFeaturesRequest.
104
+
105
+ :return: The body of this UpdateFeaturesRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateFeaturesRequestBody`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this UpdateFeaturesRequest.
113
+
114
+ :param body: The body of this UpdateFeaturesRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpdateFeaturesRequestBody`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, UpdateFeaturesRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateFeaturesRequestBody:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'params': 'object'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'params': 'params'
25
+ }
26
+
27
+ def __init__(self, params=None):
28
+ """UpdateFeaturesRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param params: 需要修改的特性列表,参数值对象Map<String,String>。
33
+ :type params: object
34
+ """
35
+
36
+
37
+
38
+ self._params = None
39
+ self.discriminator = None
40
+
41
+ self.params = params
42
+
43
+ @property
44
+ def params(self):
45
+ """Gets the params of this UpdateFeaturesRequestBody.
46
+
47
+ 需要修改的特性列表,参数值对象Map<String,String>。
48
+
49
+ :return: The params of this UpdateFeaturesRequestBody.
50
+ :rtype: object
51
+ """
52
+ return self._params
53
+
54
+ @params.setter
55
+ def params(self, params):
56
+ """Sets the params of this UpdateFeaturesRequestBody.
57
+
58
+ 需要修改的特性列表,参数值对象Map<String,String>。
59
+
60
+ :param params: The params of this UpdateFeaturesRequestBody.
61
+ :type params: object
62
+ """
63
+ self._params = params
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, UpdateFeaturesRequestBody):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other