huaweicloudsdkgaussdbforopengauss 3.1.109__py2.py3-none-any.whl → 3.1.111__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.
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/data_stroe_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_backup_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/download_backup_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/flavor_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py +7 -8
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py +12 -12
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha.py +32 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_option.py +32 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/resource_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +15 -15
- huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py +44 -15
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +15 -15
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +6 -6
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py +12 -12
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +9 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.109.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.109.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info}/RECORD +28 -28
- {huaweicloudsdkgaussdbforopengauss-3.1.109.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.109.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.109.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.111.dist-info}/top_level.txt +0 -0
@@ -5209,9 +5209,9 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
5209
5209
|
return http_info
|
5210
5210
|
|
5211
5211
|
def show_batch_upgrade_candidate_versions_async(self, request):
|
5212
|
-
"""
|
5212
|
+
"""查询批量实例可升级的版本和升级类型。
|
5213
5213
|
|
5214
|
-
|
5214
|
+
查询批量实例可升级的版本和升级类型。
|
5215
5215
|
|
5216
5216
|
Please refer to HUAWEI cloud API Explorer for details.
|
5217
5217
|
|
@@ -6083,7 +6083,7 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
6083
6083
|
def show_upgrade_candidate_versions_async(self, request):
|
6084
6084
|
"""查询实例可升级版本
|
6085
6085
|
|
6086
|
-
|
6086
|
+
查询实例可升级版本。
|
6087
6087
|
|
6088
6088
|
Please refer to HUAWEI cloud API Explorer for details.
|
6089
6089
|
|
@@ -5209,9 +5209,9 @@ class GaussDBforopenGaussClient(Client):
|
|
5209
5209
|
return http_info
|
5210
5210
|
|
5211
5211
|
def show_batch_upgrade_candidate_versions(self, request):
|
5212
|
-
"""
|
5212
|
+
"""查询批量实例可升级的版本和升级类型。
|
5213
5213
|
|
5214
|
-
|
5214
|
+
查询批量实例可升级的版本和升级类型。
|
5215
5215
|
|
5216
5216
|
Please refer to HUAWEI cloud API Explorer for details.
|
5217
5217
|
|
@@ -6083,7 +6083,7 @@ class GaussDBforopenGaussClient(Client):
|
|
6083
6083
|
def show_upgrade_candidate_versions(self, request):
|
6084
6084
|
"""查询实例可升级版本
|
6085
6085
|
|
6086
|
-
|
6086
|
+
查询实例可升级版本。
|
6087
6087
|
|
6088
6088
|
Please refer to HUAWEI cloud API Explorer for details.
|
6089
6089
|
|
@@ -31,7 +31,7 @@ class DataStroeErrorResponse:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param error_code:
|
34
|
+
:param error_code: 错误码。
|
35
35
|
:type error_code: str
|
36
36
|
:param error_msg: 错误消息。
|
37
37
|
:type error_msg: str
|
@@ -50,7 +50,7 @@ class DataStroeErrorResponse:
|
|
50
50
|
def error_code(self):
|
51
51
|
"""Gets the error_code of this DataStroeErrorResponse.
|
52
52
|
|
53
|
-
|
53
|
+
错误码。
|
54
54
|
|
55
55
|
:return: The error_code of this DataStroeErrorResponse.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class DataStroeErrorResponse:
|
|
61
61
|
def error_code(self, error_code):
|
62
62
|
"""Sets the error_code of this DataStroeErrorResponse.
|
63
63
|
|
64
|
-
|
64
|
+
错误码。
|
65
65
|
|
66
66
|
:param error_code: The error_code of this DataStroeErrorResponse.
|
67
67
|
:type error_code: str
|
@@ -31,7 +31,7 @@ class DeleteBackupErrorResponse:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param error_code:
|
34
|
+
:param error_code: 错误码。
|
35
35
|
:type error_code: str
|
36
36
|
:param error_msg: 错误消息。
|
37
37
|
:type error_msg: str
|
@@ -50,7 +50,7 @@ class DeleteBackupErrorResponse:
|
|
50
50
|
def error_code(self):
|
51
51
|
"""Gets the error_code of this DeleteBackupErrorResponse.
|
52
52
|
|
53
|
-
|
53
|
+
错误码。
|
54
54
|
|
55
55
|
:return: The error_code of this DeleteBackupErrorResponse.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class DeleteBackupErrorResponse:
|
|
61
61
|
def error_code(self, error_code):
|
62
62
|
"""Sets the error_code of this DeleteBackupErrorResponse.
|
63
63
|
|
64
|
-
|
64
|
+
错误码。
|
65
65
|
|
66
66
|
:param error_code: The error_code of this DeleteBackupErrorResponse.
|
67
67
|
:type error_code: str
|
@@ -31,7 +31,7 @@ class DownloadBackupErrorResponse:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param error_code:
|
34
|
+
:param error_code: 错误码。
|
35
35
|
:type error_code: str
|
36
36
|
:param error_msg: 错误消息。
|
37
37
|
:type error_msg: str
|
@@ -50,7 +50,7 @@ class DownloadBackupErrorResponse:
|
|
50
50
|
def error_code(self):
|
51
51
|
"""Gets the error_code of this DownloadBackupErrorResponse.
|
52
52
|
|
53
|
-
|
53
|
+
错误码。
|
54
54
|
|
55
55
|
:return: The error_code of this DownloadBackupErrorResponse.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class DownloadBackupErrorResponse:
|
|
61
61
|
def error_code(self, error_code):
|
62
62
|
"""Sets the error_code of this DownloadBackupErrorResponse.
|
63
63
|
|
64
|
-
|
64
|
+
错误码。
|
65
65
|
|
66
66
|
:param error_code: The error_code of this DownloadBackupErrorResponse.
|
67
67
|
:type error_code: str
|
@@ -31,7 +31,7 @@ class FlavorErrorResponse:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param error_code:
|
34
|
+
:param error_code: 错误码。
|
35
35
|
:type error_code: str
|
36
36
|
:param error_msg: 错误消息。
|
37
37
|
:type error_msg: str
|
@@ -50,7 +50,7 @@ class FlavorErrorResponse:
|
|
50
50
|
def error_code(self):
|
51
51
|
"""Gets the error_code of this FlavorErrorResponse.
|
52
52
|
|
53
|
-
|
53
|
+
错误码。
|
54
54
|
|
55
55
|
:return: The error_code of this FlavorErrorResponse.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class FlavorErrorResponse:
|
|
61
61
|
def error_code(self, error_code):
|
62
62
|
"""Sets the error_code of this FlavorErrorResponse.
|
63
63
|
|
64
|
-
|
64
|
+
错误码。
|
65
65
|
|
66
66
|
:param error_code: The error_code of this FlavorErrorResponse.
|
67
67
|
:type error_code: str
|
@@ -35,9 +35,9 @@ class GaussDBUpgradeInstancesVersionRequest:
|
|
35
35
|
|
36
36
|
The model defined in huaweicloud sdk
|
37
37
|
|
38
|
-
:param instance_ids: 批量实例ID
|
38
|
+
:param instance_ids: 批量实例ID。
|
39
39
|
:type instance_ids: list[str]
|
40
|
-
:param upgrade_type:
|
40
|
+
:param upgrade_type: 实例升级类型,包括就地升级,灰度升级、热补丁升级三种。
|
41
41
|
:type upgrade_type: str
|
42
42
|
:param upgrade_action: 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。
|
43
43
|
:type upgrade_action: str
|
@@ -53,8 +53,7 @@ class GaussDBUpgradeInstancesVersionRequest:
|
|
53
53
|
self._target_version = None
|
54
54
|
self.discriminator = None
|
55
55
|
|
56
|
-
|
57
|
-
self.instance_ids = instance_ids
|
56
|
+
self.instance_ids = instance_ids
|
58
57
|
self.upgrade_type = upgrade_type
|
59
58
|
if upgrade_action is not None:
|
60
59
|
self.upgrade_action = upgrade_action
|
@@ -65,7 +64,7 @@ class GaussDBUpgradeInstancesVersionRequest:
|
|
65
64
|
def instance_ids(self):
|
66
65
|
"""Gets the instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
67
66
|
|
68
|
-
批量实例ID
|
67
|
+
批量实例ID。
|
69
68
|
|
70
69
|
:return: The instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
71
70
|
:rtype: list[str]
|
@@ -76,7 +75,7 @@ class GaussDBUpgradeInstancesVersionRequest:
|
|
76
75
|
def instance_ids(self, instance_ids):
|
77
76
|
"""Sets the instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
78
77
|
|
79
|
-
批量实例ID
|
78
|
+
批量实例ID。
|
80
79
|
|
81
80
|
:param instance_ids: The instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
82
81
|
:type instance_ids: list[str]
|
@@ -87,7 +86,7 @@ class GaussDBUpgradeInstancesVersionRequest:
|
|
87
86
|
def upgrade_type(self):
|
88
87
|
"""Gets the upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
89
88
|
|
90
|
-
|
89
|
+
实例升级类型,包括就地升级,灰度升级、热补丁升级三种。
|
91
90
|
|
92
91
|
:return: The upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
93
92
|
:rtype: str
|
@@ -98,7 +97,7 @@ class GaussDBUpgradeInstancesVersionRequest:
|
|
98
97
|
def upgrade_type(self, upgrade_type):
|
99
98
|
"""Sets the upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
100
99
|
|
101
|
-
|
100
|
+
实例升级类型,包括就地升级,灰度升级、热补丁升级三种。
|
102
101
|
|
103
102
|
:param upgrade_type: The upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
104
103
|
:type upgrade_type: str
|
@@ -35,13 +35,13 @@ class HotfixInfo:
|
|
35
35
|
|
36
36
|
The model defined in huaweicloud sdk
|
37
37
|
|
38
|
-
:param version:
|
38
|
+
:param version: 热补丁版本。
|
39
39
|
:type version: str
|
40
|
-
:param common_patch: 通用非通用信息,common=通用补丁,certain=
|
40
|
+
:param common_patch: 通用非通用信息,common=通用补丁,certain=定制补丁。
|
41
41
|
:type common_patch: str
|
42
|
-
:param backup_sensitive:
|
42
|
+
:param backup_sensitive: 是否和备份相关。
|
43
43
|
:type backup_sensitive: bool
|
44
|
-
:param descripition:
|
44
|
+
:param descripition: 补丁的描述信息。
|
45
45
|
:type descripition: str
|
46
46
|
"""
|
47
47
|
|
@@ -66,7 +66,7 @@ class HotfixInfo:
|
|
66
66
|
def version(self):
|
67
67
|
"""Gets the version of this HotfixInfo.
|
68
68
|
|
69
|
-
|
69
|
+
热补丁版本。
|
70
70
|
|
71
71
|
:return: The version of this HotfixInfo.
|
72
72
|
:rtype: str
|
@@ -77,7 +77,7 @@ class HotfixInfo:
|
|
77
77
|
def version(self, version):
|
78
78
|
"""Sets the version of this HotfixInfo.
|
79
79
|
|
80
|
-
|
80
|
+
热补丁版本。
|
81
81
|
|
82
82
|
:param version: The version of this HotfixInfo.
|
83
83
|
:type version: str
|
@@ -88,7 +88,7 @@ class HotfixInfo:
|
|
88
88
|
def common_patch(self):
|
89
89
|
"""Gets the common_patch of this HotfixInfo.
|
90
90
|
|
91
|
-
通用非通用信息,common=通用补丁,certain
|
91
|
+
通用非通用信息,common=通用补丁,certain=定制补丁。
|
92
92
|
|
93
93
|
:return: The common_patch of this HotfixInfo.
|
94
94
|
:rtype: str
|
@@ -99,7 +99,7 @@ class HotfixInfo:
|
|
99
99
|
def common_patch(self, common_patch):
|
100
100
|
"""Sets the common_patch of this HotfixInfo.
|
101
101
|
|
102
|
-
通用非通用信息,common=通用补丁,certain
|
102
|
+
通用非通用信息,common=通用补丁,certain=定制补丁。
|
103
103
|
|
104
104
|
:param common_patch: The common_patch of this HotfixInfo.
|
105
105
|
:type common_patch: str
|
@@ -110,7 +110,7 @@ class HotfixInfo:
|
|
110
110
|
def backup_sensitive(self):
|
111
111
|
"""Gets the backup_sensitive of this HotfixInfo.
|
112
112
|
|
113
|
-
|
113
|
+
是否和备份相关。
|
114
114
|
|
115
115
|
:return: The backup_sensitive of this HotfixInfo.
|
116
116
|
:rtype: bool
|
@@ -121,7 +121,7 @@ class HotfixInfo:
|
|
121
121
|
def backup_sensitive(self, backup_sensitive):
|
122
122
|
"""Sets the backup_sensitive of this HotfixInfo.
|
123
123
|
|
124
|
-
|
124
|
+
是否和备份相关。
|
125
125
|
|
126
126
|
:param backup_sensitive: The backup_sensitive of this HotfixInfo.
|
127
127
|
:type backup_sensitive: bool
|
@@ -132,7 +132,7 @@ class HotfixInfo:
|
|
132
132
|
def descripition(self):
|
133
133
|
"""Gets the descripition of this HotfixInfo.
|
134
134
|
|
135
|
-
|
135
|
+
补丁的描述信息。
|
136
136
|
|
137
137
|
:return: The descripition of this HotfixInfo.
|
138
138
|
:rtype: str
|
@@ -143,7 +143,7 @@ class HotfixInfo:
|
|
143
143
|
def descripition(self, descripition):
|
144
144
|
"""Sets the descripition of this HotfixInfo.
|
145
145
|
|
146
|
-
|
146
|
+
补丁的描述信息。
|
147
147
|
|
148
148
|
:param descripition: The descripition of this HotfixInfo.
|
149
149
|
:type descripition: str
|
@@ -31,7 +31,7 @@ class OpenGaussErrorResponse:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param error_code:
|
34
|
+
:param error_code: 错误码。
|
35
35
|
:type error_code: str
|
36
36
|
:param error_msg: 错误消息。
|
37
37
|
:type error_msg: str
|
@@ -50,7 +50,7 @@ class OpenGaussErrorResponse:
|
|
50
50
|
def error_code(self):
|
51
51
|
"""Gets the error_code of this OpenGaussErrorResponse.
|
52
52
|
|
53
|
-
|
53
|
+
错误码。
|
54
54
|
|
55
55
|
:return: The error_code of this OpenGaussErrorResponse.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class OpenGaussErrorResponse:
|
|
61
61
|
def error_code(self, error_code):
|
62
62
|
"""Sets the error_code of this OpenGaussErrorResponse.
|
63
63
|
|
64
|
-
|
64
|
+
错误码。
|
65
65
|
|
66
66
|
:param error_code: The error_code of this OpenGaussErrorResponse.
|
67
67
|
:type error_code: str
|
@@ -19,16 +19,18 @@ class OpenGaussHa:
|
|
19
19
|
openapi_types = {
|
20
20
|
'mode': 'str',
|
21
21
|
'consistency': 'str',
|
22
|
-
'replication_mode': 'str'
|
22
|
+
'replication_mode': 'str',
|
23
|
+
'instance_mode': 'str'
|
23
24
|
}
|
24
25
|
|
25
26
|
attribute_map = {
|
26
27
|
'mode': 'mode',
|
27
28
|
'consistency': 'consistency',
|
28
|
-
'replication_mode': 'replication_mode'
|
29
|
+
'replication_mode': 'replication_mode',
|
30
|
+
'instance_mode': 'instance_mode'
|
29
31
|
}
|
30
32
|
|
31
|
-
def __init__(self, mode=None, consistency=None, replication_mode=None):
|
33
|
+
def __init__(self, mode=None, consistency=None, replication_mode=None, instance_mode=None):
|
32
34
|
"""OpenGaussHa
|
33
35
|
|
34
36
|
The model defined in huaweicloud sdk
|
@@ -39,6 +41,8 @@ class OpenGaussHa:
|
|
39
41
|
:type consistency: str
|
40
42
|
:param replication_mode: 备机同步参数。 取值: GaussDB为“sync\" 说明: - “sync”为同步模式。
|
41
43
|
:type replication_mode: str
|
44
|
+
:param instance_mode: 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
|
45
|
+
:type instance_mode: str
|
42
46
|
"""
|
43
47
|
|
44
48
|
|
@@ -46,11 +50,14 @@ class OpenGaussHa:
|
|
46
50
|
self._mode = None
|
47
51
|
self._consistency = None
|
48
52
|
self._replication_mode = None
|
53
|
+
self._instance_mode = None
|
49
54
|
self.discriminator = None
|
50
55
|
|
51
56
|
self.mode = mode
|
52
57
|
self.consistency = consistency
|
53
58
|
self.replication_mode = replication_mode
|
59
|
+
if instance_mode is not None:
|
60
|
+
self.instance_mode = instance_mode
|
54
61
|
|
55
62
|
@property
|
56
63
|
def mode(self):
|
@@ -118,6 +125,28 @@ class OpenGaussHa:
|
|
118
125
|
"""
|
119
126
|
self._replication_mode = replication_mode
|
120
127
|
|
128
|
+
@property
|
129
|
+
def instance_mode(self):
|
130
|
+
"""Gets the instance_mode of this OpenGaussHa.
|
131
|
+
|
132
|
+
指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
|
133
|
+
|
134
|
+
:return: The instance_mode of this OpenGaussHa.
|
135
|
+
:rtype: str
|
136
|
+
"""
|
137
|
+
return self._instance_mode
|
138
|
+
|
139
|
+
@instance_mode.setter
|
140
|
+
def instance_mode(self, instance_mode):
|
141
|
+
"""Sets the instance_mode of this OpenGaussHa.
|
142
|
+
|
143
|
+
指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
|
144
|
+
|
145
|
+
:param instance_mode: The instance_mode of this OpenGaussHa.
|
146
|
+
:type instance_mode: str
|
147
|
+
"""
|
148
|
+
self._instance_mode = instance_mode
|
149
|
+
|
121
150
|
def to_dict(self):
|
122
151
|
"""Returns the model properties as a dict"""
|
123
152
|
result = {}
|
@@ -19,16 +19,18 @@ class OpenGaussHaOption:
|
|
19
19
|
openapi_types = {
|
20
20
|
'mode': 'str',
|
21
21
|
'consistency': 'str',
|
22
|
-
'replication_mode': 'str'
|
22
|
+
'replication_mode': 'str',
|
23
|
+
'instance_mode': 'str'
|
23
24
|
}
|
24
25
|
|
25
26
|
attribute_map = {
|
26
27
|
'mode': 'mode',
|
27
28
|
'consistency': 'consistency',
|
28
|
-
'replication_mode': 'replication_mode'
|
29
|
+
'replication_mode': 'replication_mode',
|
30
|
+
'instance_mode': 'instance_mode'
|
29
31
|
}
|
30
32
|
|
31
|
-
def __init__(self, mode=None, consistency=None, replication_mode=None):
|
33
|
+
def __init__(self, mode=None, consistency=None, replication_mode=None, instance_mode=None):
|
32
34
|
"""OpenGaussHaOption
|
33
35
|
|
34
36
|
The model defined in huaweicloud sdk
|
@@ -39,6 +41,8 @@ class OpenGaussHaOption:
|
|
39
41
|
:type consistency: str
|
40
42
|
:param replication_mode: 备机同步参数。 取值: GaussDB为“sync\" 说明: - “sync”为同步模式。
|
41
43
|
:type replication_mode: str
|
44
|
+
:param instance_mode: 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
|
45
|
+
:type instance_mode: str
|
42
46
|
"""
|
43
47
|
|
44
48
|
|
@@ -46,11 +50,14 @@ class OpenGaussHaOption:
|
|
46
50
|
self._mode = None
|
47
51
|
self._consistency = None
|
48
52
|
self._replication_mode = None
|
53
|
+
self._instance_mode = None
|
49
54
|
self.discriminator = None
|
50
55
|
|
51
56
|
self.mode = mode
|
52
57
|
self.consistency = consistency
|
53
58
|
self.replication_mode = replication_mode
|
59
|
+
if instance_mode is not None:
|
60
|
+
self.instance_mode = instance_mode
|
54
61
|
|
55
62
|
@property
|
56
63
|
def mode(self):
|
@@ -118,6 +125,28 @@ class OpenGaussHaOption:
|
|
118
125
|
"""
|
119
126
|
self._replication_mode = replication_mode
|
120
127
|
|
128
|
+
@property
|
129
|
+
def instance_mode(self):
|
130
|
+
"""Gets the instance_mode of this OpenGaussHaOption.
|
131
|
+
|
132
|
+
指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
|
133
|
+
|
134
|
+
:return: The instance_mode of this OpenGaussHaOption.
|
135
|
+
:rtype: str
|
136
|
+
"""
|
137
|
+
return self._instance_mode
|
138
|
+
|
139
|
+
@instance_mode.setter
|
140
|
+
def instance_mode(self, instance_mode):
|
141
|
+
"""Sets the instance_mode of this OpenGaussHaOption.
|
142
|
+
|
143
|
+
指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
|
144
|
+
|
145
|
+
:param instance_mode: The instance_mode of this OpenGaussHaOption.
|
146
|
+
:type instance_mode: str
|
147
|
+
"""
|
148
|
+
self._instance_mode = instance_mode
|
149
|
+
|
121
150
|
def to_dict(self):
|
122
151
|
"""Returns the model properties as a dict"""
|
123
152
|
result = {}
|
@@ -31,7 +31,7 @@ class ResourceErrorResponse:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param error_code:
|
34
|
+
:param error_code: 错误码。
|
35
35
|
:type error_code: str
|
36
36
|
:param error_msg: 错误消息。
|
37
37
|
:type error_msg: str
|
@@ -50,7 +50,7 @@ class ResourceErrorResponse:
|
|
50
50
|
def error_code(self):
|
51
51
|
"""Gets the error_code of this ResourceErrorResponse.
|
52
52
|
|
53
|
-
|
53
|
+
错误码。
|
54
54
|
|
55
55
|
:return: The error_code of this ResourceErrorResponse.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class ResourceErrorResponse:
|
|
61
61
|
def error_code(self, error_code):
|
62
62
|
"""Sets the error_code of this ResourceErrorResponse.
|
63
63
|
|
64
|
-
|
64
|
+
错误码。
|
65
65
|
|
66
66
|
:param error_code: The error_code of this ResourceErrorResponse.
|
67
67
|
:type error_code: str
|
@@ -37,15 +37,15 @@ class RollUpgradeProgress:
|
|
37
37
|
|
38
38
|
The model defined in huaweicloud sdk
|
39
39
|
|
40
|
-
:param upgraded_dn_group_numbers: 已升级分片数,非独立部署返回null
|
40
|
+
:param upgraded_dn_group_numbers: 已升级分片数,非独立部署返回null。
|
41
41
|
:type upgraded_dn_group_numbers: str
|
42
|
-
:param total_dn_group_numbers: 总分片数,非独立部署返回null
|
42
|
+
:param total_dn_group_numbers: 总分片数,非独立部署返回null。
|
43
43
|
:type total_dn_group_numbers: str
|
44
|
-
:param not_fully_upgraded_az: 未完成升级的az,以“,”隔开,独立部署返回null
|
44
|
+
:param not_fully_upgraded_az: 未完成升级的az,以“,”隔开,独立部署返回null。
|
45
45
|
:type not_fully_upgraded_az: str
|
46
|
-
:param already_upgraded_az: 已升级az,以“,”隔开,独立部署返回null
|
46
|
+
:param already_upgraded_az: 已升级az,以“,”隔开,独立部署返回null。
|
47
47
|
:type already_upgraded_az: str
|
48
|
-
:param az_description_map: az描述键值对Map<String,String>
|
48
|
+
:param az_description_map: az描述键值对Map<String,String>。
|
49
49
|
:type az_description_map: dict(str, str)
|
50
50
|
"""
|
51
51
|
|
@@ -73,7 +73,7 @@ class RollUpgradeProgress:
|
|
73
73
|
def upgraded_dn_group_numbers(self):
|
74
74
|
"""Gets the upgraded_dn_group_numbers of this RollUpgradeProgress.
|
75
75
|
|
76
|
-
已升级分片数,非独立部署返回null
|
76
|
+
已升级分片数,非独立部署返回null。
|
77
77
|
|
78
78
|
:return: The upgraded_dn_group_numbers of this RollUpgradeProgress.
|
79
79
|
:rtype: str
|
@@ -84,7 +84,7 @@ class RollUpgradeProgress:
|
|
84
84
|
def upgraded_dn_group_numbers(self, upgraded_dn_group_numbers):
|
85
85
|
"""Sets the upgraded_dn_group_numbers of this RollUpgradeProgress.
|
86
86
|
|
87
|
-
已升级分片数,非独立部署返回null
|
87
|
+
已升级分片数,非独立部署返回null。
|
88
88
|
|
89
89
|
:param upgraded_dn_group_numbers: The upgraded_dn_group_numbers of this RollUpgradeProgress.
|
90
90
|
:type upgraded_dn_group_numbers: str
|
@@ -95,7 +95,7 @@ class RollUpgradeProgress:
|
|
95
95
|
def total_dn_group_numbers(self):
|
96
96
|
"""Gets the total_dn_group_numbers of this RollUpgradeProgress.
|
97
97
|
|
98
|
-
总分片数,非独立部署返回null
|
98
|
+
总分片数,非独立部署返回null。
|
99
99
|
|
100
100
|
:return: The total_dn_group_numbers of this RollUpgradeProgress.
|
101
101
|
:rtype: str
|
@@ -106,7 +106,7 @@ class RollUpgradeProgress:
|
|
106
106
|
def total_dn_group_numbers(self, total_dn_group_numbers):
|
107
107
|
"""Sets the total_dn_group_numbers of this RollUpgradeProgress.
|
108
108
|
|
109
|
-
总分片数,非独立部署返回null
|
109
|
+
总分片数,非独立部署返回null。
|
110
110
|
|
111
111
|
:param total_dn_group_numbers: The total_dn_group_numbers of this RollUpgradeProgress.
|
112
112
|
:type total_dn_group_numbers: str
|
@@ -117,7 +117,7 @@ class RollUpgradeProgress:
|
|
117
117
|
def not_fully_upgraded_az(self):
|
118
118
|
"""Gets the not_fully_upgraded_az of this RollUpgradeProgress.
|
119
119
|
|
120
|
-
未完成升级的az,以“,”隔开,独立部署返回null
|
120
|
+
未完成升级的az,以“,”隔开,独立部署返回null。
|
121
121
|
|
122
122
|
:return: The not_fully_upgraded_az of this RollUpgradeProgress.
|
123
123
|
:rtype: str
|
@@ -128,7 +128,7 @@ class RollUpgradeProgress:
|
|
128
128
|
def not_fully_upgraded_az(self, not_fully_upgraded_az):
|
129
129
|
"""Sets the not_fully_upgraded_az of this RollUpgradeProgress.
|
130
130
|
|
131
|
-
未完成升级的az,以“,”隔开,独立部署返回null
|
131
|
+
未完成升级的az,以“,”隔开,独立部署返回null。
|
132
132
|
|
133
133
|
:param not_fully_upgraded_az: The not_fully_upgraded_az of this RollUpgradeProgress.
|
134
134
|
:type not_fully_upgraded_az: str
|
@@ -139,7 +139,7 @@ class RollUpgradeProgress:
|
|
139
139
|
def already_upgraded_az(self):
|
140
140
|
"""Gets the already_upgraded_az of this RollUpgradeProgress.
|
141
141
|
|
142
|
-
已升级az,以“,”隔开,独立部署返回null
|
142
|
+
已升级az,以“,”隔开,独立部署返回null。
|
143
143
|
|
144
144
|
:return: The already_upgraded_az of this RollUpgradeProgress.
|
145
145
|
:rtype: str
|
@@ -150,7 +150,7 @@ class RollUpgradeProgress:
|
|
150
150
|
def already_upgraded_az(self, already_upgraded_az):
|
151
151
|
"""Sets the already_upgraded_az of this RollUpgradeProgress.
|
152
152
|
|
153
|
-
已升级az,以“,”隔开,独立部署返回null
|
153
|
+
已升级az,以“,”隔开,独立部署返回null。
|
154
154
|
|
155
155
|
:param already_upgraded_az: The already_upgraded_az of this RollUpgradeProgress.
|
156
156
|
:type already_upgraded_az: str
|
@@ -161,7 +161,7 @@ class RollUpgradeProgress:
|
|
161
161
|
def az_description_map(self):
|
162
162
|
"""Gets the az_description_map of this RollUpgradeProgress.
|
163
163
|
|
164
|
-
az描述键值对Map<String,String
|
164
|
+
az描述键值对Map<String,String>。
|
165
165
|
|
166
166
|
:return: The az_description_map of this RollUpgradeProgress.
|
167
167
|
:rtype: dict(str, str)
|
@@ -172,7 +172,7 @@ class RollUpgradeProgress:
|
|
172
172
|
def az_description_map(self, az_description_map):
|
173
173
|
"""Sets the az_description_map of this RollUpgradeProgress.
|
174
174
|
|
175
|
-
az描述键值对Map<String,String
|
175
|
+
az描述键值对Map<String,String>。
|
176
176
|
|
177
177
|
:param az_description_map: The az_description_map of this RollUpgradeProgress.
|
178
178
|
:type az_description_map: dict(str, str)
|
@@ -31,7 +31,7 @@ class ShowBatchUpgradeCandidateVersionsRequest:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param x_language: 语言[zh-cn, en-us]
|
34
|
+
:param x_language: 语言[zh-cn, en-us]。
|
35
35
|
:type x_language: str
|
36
36
|
:param body: Body of the ShowBatchUpgradeCandidateVersionsRequest
|
37
37
|
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstancesRequestBody`
|
@@ -52,7 +52,7 @@ class ShowBatchUpgradeCandidateVersionsRequest:
|
|
52
52
|
def x_language(self):
|
53
53
|
"""Gets the x_language of this ShowBatchUpgradeCandidateVersionsRequest.
|
54
54
|
|
55
|
-
语言[zh-cn, en-us]
|
55
|
+
语言[zh-cn, en-us]。
|
56
56
|
|
57
57
|
:return: The x_language of this ShowBatchUpgradeCandidateVersionsRequest.
|
58
58
|
:rtype: str
|
@@ -63,7 +63,7 @@ class ShowBatchUpgradeCandidateVersionsRequest:
|
|
63
63
|
def x_language(self, x_language):
|
64
64
|
"""Sets the x_language of this ShowBatchUpgradeCandidateVersionsRequest.
|
65
65
|
|
66
|
-
语言[zh-cn, en-us]
|
66
|
+
语言[zh-cn, en-us]。
|
67
67
|
|
68
68
|
:param x_language: The x_language of this ShowBatchUpgradeCandidateVersionsRequest.
|
69
69
|
:type x_language: str
|