Skip to content

Commit a411aa3

Browse files
committed
Update SDK.
1 parent e2ac59a commit a411aa3

39 files changed

+1334
-60
lines changed

aliyun-python-sdk-oceanbasepro/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-08-25 Version: 1.0.10
2+
- Update SDK.
3+
14
2023-06-08 Version: 1.0.9
25
- Update SDK.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.9'
1+
__version__ = '1.0.10'
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkoceanbasepro.endpoint import endpoint_data
22+
23+
class CreateLabelRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'OceanBasePro', '2019-09-01', 'CreateLabel','oceanbase')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_Name(self): # String
35+
return self.get_body_params().get('Name')
36+
37+
def set_Name(self, Name): # String
38+
self.add_body_params('Name', Name)
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkoceanbasepro.endpoint import endpoint_data
22+
23+
class CreateMySqlDataSourceRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'OceanBasePro', '2019-09-01', 'CreateMySqlDataSource','oceanbase')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_Schema(self): # String
35+
return self.get_body_params().get('Schema')
36+
37+
def set_Schema(self, Schema): # String
38+
self.add_body_params('Schema', Schema)
39+
def get_Description(self): # String
40+
return self.get_body_params().get('Description')
41+
42+
def set_Description(self, Description): # String
43+
self.add_body_params('Description', Description)
44+
def get_Type(self): # String
45+
return self.get_body_params().get('Type')
46+
47+
def set_Type(self, Type): # String
48+
self.add_body_params('Type', Type)
49+
def get_Password(self): # String
50+
return self.get_body_params().get('Password')
51+
52+
def set_Password(self, Password): # String
53+
self.add_body_params('Password', Password)
54+
def get_DgInstanceId(self): # String
55+
return self.get_body_params().get('DgInstanceId')
56+
57+
def set_DgInstanceId(self, DgInstanceId): # String
58+
self.add_body_params('DgInstanceId', DgInstanceId)
59+
def get_Ip(self): # String
60+
return self.get_body_params().get('Ip')
61+
62+
def set_Ip(self, Ip): # String
63+
self.add_body_params('Ip', Ip)
64+
def get_InstanceId(self): # String
65+
return self.get_body_params().get('InstanceId')
66+
67+
def set_InstanceId(self, InstanceId): # String
68+
self.add_body_params('InstanceId', InstanceId)
69+
def get_Port(self): # Integer
70+
return self.get_body_params().get('Port')
71+
72+
def set_Port(self, Port): # Integer
73+
self.add_body_params('Port', Port)
74+
def get_VpcId(self): # String
75+
return self.get_body_params().get('VpcId')
76+
77+
def set_VpcId(self, VpcId): # String
78+
self.add_body_params('VpcId', VpcId)
79+
def get_Name(self): # String
80+
return self.get_body_params().get('Name')
81+
82+
def set_Name(self, Name): # String
83+
self.add_body_params('Name', Name)
84+
def get_UserName(self): # String
85+
return self.get_body_params().get('UserName')
86+
87+
def set_UserName(self, UserName): # String
88+
self.add_body_params('UserName', UserName)
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkoceanbasepro.endpoint import endpoint_data
22+
23+
class CreateOceanBaseDataSourceRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'OceanBasePro', '2019-09-01', 'CreateOceanBaseDataSource','oceanbase')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_Cluster(self): # String
35+
return self.get_body_params().get('Cluster')
36+
37+
def set_Cluster(self, Cluster): # String
38+
self.add_body_params('Cluster', Cluster)
39+
def get_DrcUserName(self): # String
40+
return self.get_body_params().get('DrcUserName')
41+
42+
def set_DrcUserName(self, DrcUserName): # String
43+
self.add_body_params('DrcUserName', DrcUserName)
44+
def get_LogProxyIp(self): # String
45+
return self.get_body_params().get('LogProxyIp')
46+
47+
def set_LogProxyIp(self, LogProxyIp): # String
48+
self.add_body_params('LogProxyIp', LogProxyIp)
49+
def get_Description(self): # String
50+
return self.get_body_params().get('Description')
51+
52+
def set_Description(self, Description): # String
53+
self.add_body_params('Description', Description)
54+
def get_Type(self): # String
55+
return self.get_body_params().get('Type')
56+
57+
def set_Type(self, Type): # String
58+
self.add_body_params('Type', Type)
59+
def get_Password(self): # String
60+
return self.get_body_params().get('Password')
61+
62+
def set_Password(self, Password): # String
63+
self.add_body_params('Password', Password)
64+
def get_InnerDrcPassword(self): # String
65+
return self.get_body_params().get('InnerDrcPassword')
66+
67+
def set_InnerDrcPassword(self, InnerDrcPassword): # String
68+
self.add_body_params('InnerDrcPassword', InnerDrcPassword)
69+
def get_Tenant(self): # String
70+
return self.get_body_params().get('Tenant')
71+
72+
def set_Tenant(self, Tenant): # String
73+
self.add_body_params('Tenant', Tenant)
74+
def get_ConfigUrl(self): # String
75+
return self.get_body_params().get('ConfigUrl')
76+
77+
def set_ConfigUrl(self, ConfigUrl): # String
78+
self.add_body_params('ConfigUrl', ConfigUrl)
79+
def get_Ip(self): # String
80+
return self.get_body_params().get('Ip')
81+
82+
def set_Ip(self, Ip): # String
83+
self.add_body_params('Ip', Ip)
84+
def get_Port(self): # Integer
85+
return self.get_body_params().get('Port')
86+
87+
def set_Port(self, Port): # Integer
88+
self.add_body_params('Port', Port)
89+
def get_VpcId(self): # String
90+
return self.get_body_params().get('VpcId')
91+
92+
def set_VpcId(self, VpcId): # String
93+
self.add_body_params('VpcId', VpcId)
94+
def get_Name(self): # String
95+
return self.get_body_params().get('Name')
96+
97+
def set_Name(self, Name): # String
98+
self.add_body_params('Name', Name)
99+
def get_DrcPassword(self): # String
100+
return self.get_body_params().get('DrcPassword')
101+
102+
def set_DrcPassword(self, DrcPassword): # String
103+
self.add_body_params('DrcPassword', DrcPassword)
104+
def get_LogProxyPort(self): # String
105+
return self.get_body_params().get('LogProxyPort')
106+
107+
def set_LogProxyPort(self, LogProxyPort): # String
108+
self.add_body_params('LogProxyPort', LogProxyPort)
109+
def get_UserName(self): # String
110+
return self.get_body_params().get('UserName')
111+
112+
def set_UserName(self, UserName): # String
113+
self.add_body_params('UserName', UserName)
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkoceanbasepro.endpoint import endpoint_data
22+
import json
23+
24+
class CreateProjectRequest(RpcRequest):
25+
26+
def __init__(self):
27+
RpcRequest.__init__(self, 'OceanBasePro', '2019-09-01', 'CreateProject','oceanbase')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_SinkEndpointId(self): # String
36+
return self.get_body_params().get('SinkEndpointId')
37+
38+
def set_SinkEndpointId(self, SinkEndpointId): # String
39+
self.add_body_params('SinkEndpointId', SinkEndpointId)
40+
def get_UseOss(self): # Boolean
41+
return self.get_body_params().get('UseOss')
42+
43+
def set_UseOss(self, UseOss): # Boolean
44+
self.add_body_params('UseOss', UseOss)
45+
def get_OssKey(self): # String
46+
return self.get_body_params().get('OssKey')
47+
48+
def set_OssKey(self, OssKey): # String
49+
self.add_body_params('OssKey', OssKey)
50+
def get_SourceEndpointId(self): # String
51+
return self.get_body_params().get('SourceEndpointId')
52+
53+
def set_SourceEndpointId(self, SourceEndpointId): # String
54+
self.add_body_params('SourceEndpointId', SourceEndpointId)
55+
def get_Type(self): # String
56+
return self.get_body_params().get('Type')
57+
58+
def set_Type(self, Type): # String
59+
self.add_body_params('Type', Type)
60+
def get_FullTransferConfig(self): # Struct
61+
return self.get_body_params().get('FullTransferConfig')
62+
63+
def set_FullTransferConfig(self, FullTransferConfig): # Struct
64+
self.add_body_params("FullTransferConfig", json.dumps(FullTransferConfig))
65+
def get_EnableStructTransfer(self): # Boolean
66+
return self.get_body_params().get('EnableStructTransfer')
67+
68+
def set_EnableStructTransfer(self, EnableStructTransfer): # Boolean
69+
self.add_body_params('EnableStructTransfer', EnableStructTransfer)
70+
def get_TransferMapping(self): # Struct
71+
return self.get_body_params().get('TransferMapping')
72+
73+
def set_TransferMapping(self, TransferMapping): # Struct
74+
self.add_body_params("TransferMapping", json.dumps(TransferMapping))
75+
def get_WorkerGradeId(self): # String
76+
return self.get_body_params().get('WorkerGradeId')
77+
78+
def set_WorkerGradeId(self, WorkerGradeId): # String
79+
self.add_body_params('WorkerGradeId', WorkerGradeId)
80+
def get_CommonTransferConfig(self): # Struct
81+
return self.get_body_params().get('CommonTransferConfig')
82+
83+
def set_CommonTransferConfig(self, CommonTransferConfig): # Struct
84+
self.add_body_params("CommonTransferConfig", json.dumps(CommonTransferConfig))
85+
def get_StructTransferConfig(self): # Struct
86+
return self.get_body_params().get('StructTransferConfig')
87+
88+
def set_StructTransferConfig(self, StructTransferConfig): # Struct
89+
self.add_body_params("StructTransferConfig", json.dumps(StructTransferConfig))
90+
def get_EnableIncrTransfer(self): # Boolean
91+
return self.get_body_params().get('EnableIncrTransfer')
92+
93+
def set_EnableIncrTransfer(self, EnableIncrTransfer): # Boolean
94+
self.add_body_params('EnableIncrTransfer', EnableIncrTransfer)
95+
def get_EnableFullTransfer(self): # Boolean
96+
return self.get_body_params().get('EnableFullTransfer')
97+
98+
def set_EnableFullTransfer(self, EnableFullTransfer): # Boolean
99+
self.add_body_params('EnableFullTransfer', EnableFullTransfer)
100+
def get_EnableFullVerify(self): # Boolean
101+
return self.get_body_params().get('EnableFullVerify')
102+
103+
def set_EnableFullVerify(self, EnableFullVerify): # Boolean
104+
self.add_body_params('EnableFullVerify', EnableFullVerify)
105+
def get_Name(self): # String
106+
return self.get_body_params().get('Name')
107+
108+
def set_Name(self, Name): # String
109+
self.add_body_params('Name', Name)
110+
def get_LabelIds(self): # Array
111+
return self.get_body_params().get('LabelIds')
112+
113+
def set_LabelIds(self, LabelIds): # Array
114+
self.add_body_params("LabelIds", json.dumps(LabelIds))
115+
def get_IncrTransferConfig(self): # Struct
116+
return self.get_body_params().get('IncrTransferConfig')
117+
118+
def set_IncrTransferConfig(self, IncrTransferConfig): # Struct
119+
self.add_body_params("IncrTransferConfig", json.dumps(IncrTransferConfig))
120+
def get_EnableReverseIncrTransfer(self): # Boolean
121+
return self.get_body_params().get('EnableReverseIncrTransfer')
122+
123+
def set_EnableReverseIncrTransfer(self, EnableReverseIncrTransfer): # Boolean
124+
self.add_body_params('EnableReverseIncrTransfer', EnableReverseIncrTransfer)

0 commit comments

Comments
 (0)