huaweicloudsdkgaussdbforopengauss 3.1.90__py2.py3-none-any.whl → 3.1.91__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.
Files changed (34) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +25 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +548 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +548 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +25 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/instances_statistics_response_body_instances_statistics.py +142 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +259 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_request.py +115 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_response.py +145 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
  30. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/METADATA +2 -2
  31. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/RECORD +34 -9
  32. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/LICENSE +0 -0
  33. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/WHEEL +0 -0
  34. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/top_level.txt +0 -0
@@ -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 ListCnInfosBeforeReduceRequest:
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
+ """ListCnInfosBeforeReduceRequest
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 ListCnInfosBeforeReduceRequest.
53
+
54
+ 语言
55
+
56
+ :return: The x_language of this ListCnInfosBeforeReduceRequest.
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 ListCnInfosBeforeReduceRequest.
64
+
65
+ 语言
66
+
67
+ :param x_language: The x_language of this ListCnInfosBeforeReduceRequest.
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 ListCnInfosBeforeReduceRequest.
75
+
76
+ 实例ID。
77
+
78
+ :return: The instance_id of this ListCnInfosBeforeReduceRequest.
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 ListCnInfosBeforeReduceRequest.
86
+
87
+ 实例ID。
88
+
89
+ :param instance_id: The instance_id of this ListCnInfosBeforeReduceRequest.
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, ListCnInfosBeforeReduceRequest):
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,174 @@
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 ListCnInfosBeforeReduceResponse(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
+ 'instance_id': 'str',
22
+ 'max_reduction_num': 'int',
23
+ 'nodes': 'list[CnInfoBeforeReduce]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'instance_id': 'instance_id',
28
+ 'max_reduction_num': 'max_reduction_num',
29
+ 'nodes': 'nodes'
30
+ }
31
+
32
+ def __init__(self, instance_id=None, max_reduction_num=None, nodes=None):
33
+ """ListCnInfosBeforeReduceResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param instance_id: 实例ID。
38
+ :type instance_id: str
39
+ :param max_reduction_num: 单次缩容允许最大步长。
40
+ :type max_reduction_num: int
41
+ :param nodes: 节点信息列表。
42
+ :type nodes: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CnInfoBeforeReduce`]
43
+ """
44
+
45
+ super(ListCnInfosBeforeReduceResponse, self).__init__()
46
+
47
+ self._instance_id = None
48
+ self._max_reduction_num = None
49
+ self._nodes = None
50
+ self.discriminator = None
51
+
52
+ if instance_id is not None:
53
+ self.instance_id = instance_id
54
+ if max_reduction_num is not None:
55
+ self.max_reduction_num = max_reduction_num
56
+ if nodes is not None:
57
+ self.nodes = nodes
58
+
59
+ @property
60
+ def instance_id(self):
61
+ """Gets the instance_id of this ListCnInfosBeforeReduceResponse.
62
+
63
+ 实例ID。
64
+
65
+ :return: The instance_id of this ListCnInfosBeforeReduceResponse.
66
+ :rtype: str
67
+ """
68
+ return self._instance_id
69
+
70
+ @instance_id.setter
71
+ def instance_id(self, instance_id):
72
+ """Sets the instance_id of this ListCnInfosBeforeReduceResponse.
73
+
74
+ 实例ID。
75
+
76
+ :param instance_id: The instance_id of this ListCnInfosBeforeReduceResponse.
77
+ :type instance_id: str
78
+ """
79
+ self._instance_id = instance_id
80
+
81
+ @property
82
+ def max_reduction_num(self):
83
+ """Gets the max_reduction_num of this ListCnInfosBeforeReduceResponse.
84
+
85
+ 单次缩容允许最大步长。
86
+
87
+ :return: The max_reduction_num of this ListCnInfosBeforeReduceResponse.
88
+ :rtype: int
89
+ """
90
+ return self._max_reduction_num
91
+
92
+ @max_reduction_num.setter
93
+ def max_reduction_num(self, max_reduction_num):
94
+ """Sets the max_reduction_num of this ListCnInfosBeforeReduceResponse.
95
+
96
+ 单次缩容允许最大步长。
97
+
98
+ :param max_reduction_num: The max_reduction_num of this ListCnInfosBeforeReduceResponse.
99
+ :type max_reduction_num: int
100
+ """
101
+ self._max_reduction_num = max_reduction_num
102
+
103
+ @property
104
+ def nodes(self):
105
+ """Gets the nodes of this ListCnInfosBeforeReduceResponse.
106
+
107
+ 节点信息列表。
108
+
109
+ :return: The nodes of this ListCnInfosBeforeReduceResponse.
110
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CnInfoBeforeReduce`]
111
+ """
112
+ return self._nodes
113
+
114
+ @nodes.setter
115
+ def nodes(self, nodes):
116
+ """Sets the nodes of this ListCnInfosBeforeReduceResponse.
117
+
118
+ 节点信息列表。
119
+
120
+ :param nodes: The nodes of this ListCnInfosBeforeReduceResponse.
121
+ :type nodes: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CnInfoBeforeReduce`]
122
+ """
123
+ self._nodes = nodes
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, ListCnInfosBeforeReduceResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other
@@ -0,0 +1,259 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class OpenGaussUpgradeRequest:
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
+ 'upgrade_type': 'str',
21
+ 'upgrde_action': 'str',
22
+ 'target_version': 'str',
23
+ 'upgrade_shard_num': 'int',
24
+ 'upgrade_az': 'str',
25
+ 'is_parallel_upgrade': 'bool'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'upgrade_type': 'upgrade_type',
30
+ 'upgrde_action': 'upgrde_action',
31
+ 'target_version': 'target_version',
32
+ 'upgrade_shard_num': 'upgrade_shard_num',
33
+ 'upgrade_az': 'upgrade_az',
34
+ 'is_parallel_upgrade': 'is_parallel_upgrade'
35
+ }
36
+
37
+ def __init__(self, upgrade_type=None, upgrde_action=None, target_version=None, upgrade_shard_num=None, upgrade_az=None, is_parallel_upgrade=None):
38
+ """OpenGaussUpgradeRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param upgrade_type: 实例升级类型,包括就地升级,灰度升级,热补丁升级三种,三种升级方式的异同,详见接口描述。  inplace 就地升级  grey 灰度升级  hotfix 热补丁升级。
43
+ :type upgrade_type: str
44
+ :param upgrde_action: 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。热补丁升级包括升级自动提交,升级回退两种。详见接口描述。  upgradeAutoCommit 升级自动提交  upgrade 升级待观察  commit 提交升级  rollback 升级回退。
45
+ :type upgrde_action: str
46
+ :param target_version: 实例升级目标版本,非必填。如果未传值则默认升级到当前实例的优选版本。仅热补丁升级方式下支持传入多个值,升级操作为升级自动提交,则实例版本从小到大批量升级,升级操作为升级回退,则实例版本从大到小批量回退。
47
+ :type target_version: str
48
+ :param upgrade_shard_num: 分布式实例灰度升级,滚动升级分片数。分布式实例灰度升级,升级待观察必填。该值不能大于实例未升级分片总数。
49
+ :type upgrade_shard_num: int
50
+ :param upgrade_az: 主备版实例灰度升级,滚动升级az值,可以支持多az一起升级,az之间以’,’分割。集中式实例灰度升级,升级待观察必填。该值不能填入不属于该实例的az值。
51
+ :type upgrade_az: str
52
+ :param is_parallel_upgrade: 支持AZ内并行升级,升级时先升级所有备DN,再并行升级各分片主DN,最后并行升级CN。仅在灰度升级下有效且需要数据库版本大于等于3.200。
53
+ :type is_parallel_upgrade: bool
54
+ """
55
+
56
+
57
+
58
+ self._upgrade_type = None
59
+ self._upgrde_action = None
60
+ self._target_version = None
61
+ self._upgrade_shard_num = None
62
+ self._upgrade_az = None
63
+ self._is_parallel_upgrade = None
64
+ self.discriminator = None
65
+
66
+ self.upgrade_type = upgrade_type
67
+ if upgrde_action is not None:
68
+ self.upgrde_action = upgrde_action
69
+ if target_version is not None:
70
+ self.target_version = target_version
71
+ if upgrade_shard_num is not None:
72
+ self.upgrade_shard_num = upgrade_shard_num
73
+ if upgrade_az is not None:
74
+ self.upgrade_az = upgrade_az
75
+ if is_parallel_upgrade is not None:
76
+ self.is_parallel_upgrade = is_parallel_upgrade
77
+
78
+ @property
79
+ def upgrade_type(self):
80
+ """Gets the upgrade_type of this OpenGaussUpgradeRequest.
81
+
82
+ 实例升级类型,包括就地升级,灰度升级,热补丁升级三种,三种升级方式的异同,详见接口描述。  inplace 就地升级  grey 灰度升级  hotfix 热补丁升级。
83
+
84
+ :return: The upgrade_type of this OpenGaussUpgradeRequest.
85
+ :rtype: str
86
+ """
87
+ return self._upgrade_type
88
+
89
+ @upgrade_type.setter
90
+ def upgrade_type(self, upgrade_type):
91
+ """Sets the upgrade_type of this OpenGaussUpgradeRequest.
92
+
93
+ 实例升级类型,包括就地升级,灰度升级,热补丁升级三种,三种升级方式的异同,详见接口描述。  inplace 就地升级  grey 灰度升级  hotfix 热补丁升级。
94
+
95
+ :param upgrade_type: The upgrade_type of this OpenGaussUpgradeRequest.
96
+ :type upgrade_type: str
97
+ """
98
+ self._upgrade_type = upgrade_type
99
+
100
+ @property
101
+ def upgrde_action(self):
102
+ """Gets the upgrde_action of this OpenGaussUpgradeRequest.
103
+
104
+ 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。热补丁升级包括升级自动提交,升级回退两种。详见接口描述。  upgradeAutoCommit 升级自动提交  upgrade 升级待观察  commit 提交升级  rollback 升级回退。
105
+
106
+ :return: The upgrde_action of this OpenGaussUpgradeRequest.
107
+ :rtype: str
108
+ """
109
+ return self._upgrde_action
110
+
111
+ @upgrde_action.setter
112
+ def upgrde_action(self, upgrde_action):
113
+ """Sets the upgrde_action of this OpenGaussUpgradeRequest.
114
+
115
+ 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。热补丁升级包括升级自动提交,升级回退两种。详见接口描述。  upgradeAutoCommit 升级自动提交  upgrade 升级待观察  commit 提交升级  rollback 升级回退。
116
+
117
+ :param upgrde_action: The upgrde_action of this OpenGaussUpgradeRequest.
118
+ :type upgrde_action: str
119
+ """
120
+ self._upgrde_action = upgrde_action
121
+
122
+ @property
123
+ def target_version(self):
124
+ """Gets the target_version of this OpenGaussUpgradeRequest.
125
+
126
+ 实例升级目标版本,非必填。如果未传值则默认升级到当前实例的优选版本。仅热补丁升级方式下支持传入多个值,升级操作为升级自动提交,则实例版本从小到大批量升级,升级操作为升级回退,则实例版本从大到小批量回退。
127
+
128
+ :return: The target_version of this OpenGaussUpgradeRequest.
129
+ :rtype: str
130
+ """
131
+ return self._target_version
132
+
133
+ @target_version.setter
134
+ def target_version(self, target_version):
135
+ """Sets the target_version of this OpenGaussUpgradeRequest.
136
+
137
+ 实例升级目标版本,非必填。如果未传值则默认升级到当前实例的优选版本。仅热补丁升级方式下支持传入多个值,升级操作为升级自动提交,则实例版本从小到大批量升级,升级操作为升级回退,则实例版本从大到小批量回退。
138
+
139
+ :param target_version: The target_version of this OpenGaussUpgradeRequest.
140
+ :type target_version: str
141
+ """
142
+ self._target_version = target_version
143
+
144
+ @property
145
+ def upgrade_shard_num(self):
146
+ """Gets the upgrade_shard_num of this OpenGaussUpgradeRequest.
147
+
148
+ 分布式实例灰度升级,滚动升级分片数。分布式实例灰度升级,升级待观察必填。该值不能大于实例未升级分片总数。
149
+
150
+ :return: The upgrade_shard_num of this OpenGaussUpgradeRequest.
151
+ :rtype: int
152
+ """
153
+ return self._upgrade_shard_num
154
+
155
+ @upgrade_shard_num.setter
156
+ def upgrade_shard_num(self, upgrade_shard_num):
157
+ """Sets the upgrade_shard_num of this OpenGaussUpgradeRequest.
158
+
159
+ 分布式实例灰度升级,滚动升级分片数。分布式实例灰度升级,升级待观察必填。该值不能大于实例未升级分片总数。
160
+
161
+ :param upgrade_shard_num: The upgrade_shard_num of this OpenGaussUpgradeRequest.
162
+ :type upgrade_shard_num: int
163
+ """
164
+ self._upgrade_shard_num = upgrade_shard_num
165
+
166
+ @property
167
+ def upgrade_az(self):
168
+ """Gets the upgrade_az of this OpenGaussUpgradeRequest.
169
+
170
+ 主备版实例灰度升级,滚动升级az值,可以支持多az一起升级,az之间以’,’分割。集中式实例灰度升级,升级待观察必填。该值不能填入不属于该实例的az值。
171
+
172
+ :return: The upgrade_az of this OpenGaussUpgradeRequest.
173
+ :rtype: str
174
+ """
175
+ return self._upgrade_az
176
+
177
+ @upgrade_az.setter
178
+ def upgrade_az(self, upgrade_az):
179
+ """Sets the upgrade_az of this OpenGaussUpgradeRequest.
180
+
181
+ 主备版实例灰度升级,滚动升级az值,可以支持多az一起升级,az之间以’,’分割。集中式实例灰度升级,升级待观察必填。该值不能填入不属于该实例的az值。
182
+
183
+ :param upgrade_az: The upgrade_az of this OpenGaussUpgradeRequest.
184
+ :type upgrade_az: str
185
+ """
186
+ self._upgrade_az = upgrade_az
187
+
188
+ @property
189
+ def is_parallel_upgrade(self):
190
+ """Gets the is_parallel_upgrade of this OpenGaussUpgradeRequest.
191
+
192
+ 支持AZ内并行升级,升级时先升级所有备DN,再并行升级各分片主DN,最后并行升级CN。仅在灰度升级下有效且需要数据库版本大于等于3.200。
193
+
194
+ :return: The is_parallel_upgrade of this OpenGaussUpgradeRequest.
195
+ :rtype: bool
196
+ """
197
+ return self._is_parallel_upgrade
198
+
199
+ @is_parallel_upgrade.setter
200
+ def is_parallel_upgrade(self, is_parallel_upgrade):
201
+ """Sets the is_parallel_upgrade of this OpenGaussUpgradeRequest.
202
+
203
+ 支持AZ内并行升级,升级时先升级所有备DN,再并行升级各分片主DN,最后并行升级CN。仅在灰度升级下有效且需要数据库版本大于等于3.200。
204
+
205
+ :param is_parallel_upgrade: The is_parallel_upgrade of this OpenGaussUpgradeRequest.
206
+ :type is_parallel_upgrade: bool
207
+ """
208
+ self._is_parallel_upgrade = is_parallel_upgrade
209
+
210
+ def to_dict(self):
211
+ """Returns the model properties as a dict"""
212
+ result = {}
213
+
214
+ for attr, _ in six.iteritems(self.openapi_types):
215
+ value = getattr(self, attr)
216
+ if isinstance(value, list):
217
+ result[attr] = list(map(
218
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
219
+ value
220
+ ))
221
+ elif hasattr(value, "to_dict"):
222
+ result[attr] = value.to_dict()
223
+ elif isinstance(value, dict):
224
+ result[attr] = dict(map(
225
+ lambda item: (item[0], item[1].to_dict())
226
+ if hasattr(item[1], "to_dict") else item,
227
+ value.items()
228
+ ))
229
+ else:
230
+ if attr in self.sensitive_list:
231
+ result[attr] = "****"
232
+ else:
233
+ result[attr] = value
234
+
235
+ return result
236
+
237
+ def to_str(self):
238
+ """Returns the string representation of the model"""
239
+ import simplejson as json
240
+ if six.PY2:
241
+ import sys
242
+ reload(sys)
243
+ sys.setdefaultencoding("utf-8")
244
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
245
+
246
+ def __repr__(self):
247
+ """For `print`"""
248
+ return self.to_str()
249
+
250
+ def __eq__(self, other):
251
+ """Returns true if both objects are equal"""
252
+ if not isinstance(other, OpenGaussUpgradeRequest):
253
+ return False
254
+
255
+ return self.__dict__ == other.__dict__
256
+
257
+ def __ne__(self, other):
258
+ """Returns true if both objects are not equal"""
259
+ return not self == other