Skip to content

Commit 038c4dd

Browse files
committed
ADB for PG SDK.
1 parent 74440fb commit 038c4dd

11 files changed

+182
-177
lines changed

aliyun-python-sdk-gpdb/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-09-09 Version: 1.0.8
2+
- ADB for PG SDK.
3+
14
2021-08-10 Version: 1.0.7
25
- ADB for PG sdk.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.7'
1+
__version__ = '1.0.8'
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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 aliyunsdkgpdb.endpoint import endpoint_data
22+
23+
class DescribeDBInstanceSQLPatternsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'gpdb', '2016-05-03', 'DescribeDBInstanceSQLPatterns','gpdb')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_StartTime(self):
35+
return self.get_query_params().get('StartTime')
36+
37+
def set_StartTime(self,StartTime):
38+
self.add_query_param('StartTime',StartTime)
39+
40+
def get_QueryKeywords(self):
41+
return self.get_query_params().get('QueryKeywords')
42+
43+
def set_QueryKeywords(self,QueryKeywords):
44+
self.add_query_param('QueryKeywords',QueryKeywords)
45+
46+
def get_Database(self):
47+
return self.get_query_params().get('Database')
48+
49+
def set_Database(self,Database):
50+
self.add_query_param('Database',Database)
51+
52+
def get_SourceIP(self):
53+
return self.get_query_params().get('SourceIP')
54+
55+
def set_SourceIP(self,SourceIP):
56+
self.add_query_param('SourceIP',SourceIP)
57+
58+
def get_DBInstanceId(self):
59+
return self.get_query_params().get('DBInstanceId')
60+
61+
def set_DBInstanceId(self,DBInstanceId):
62+
self.add_query_param('DBInstanceId',DBInstanceId)
63+
64+
def get_EndTime(self):
65+
return self.get_query_params().get('EndTime')
66+
67+
def set_EndTime(self,EndTime):
68+
self.add_query_param('EndTime',EndTime)
69+
70+
def get_User(self):
71+
return self.get_query_params().get('User')
72+
73+
def set_User(self,User):
74+
self.add_query_param('User',User)

aliyun-python-sdk-gpdb/aliyunsdkgpdb/request/v20160503/DescribeSQLLogCountRequest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,24 @@ def get_SourceIP(self):
5555
def set_SourceIP(self,SourceIP):
5656
self.add_query_param('SourceIP',SourceIP)
5757

58+
def get_MinExecuteCost(self):
59+
return self.get_query_params().get('MinExecuteCost')
60+
61+
def set_MinExecuteCost(self,MinExecuteCost):
62+
self.add_query_param('MinExecuteCost',MinExecuteCost)
63+
5864
def get_DBInstanceId(self):
5965
return self.get_query_params().get('DBInstanceId')
6066

6167
def set_DBInstanceId(self,DBInstanceId):
6268
self.add_query_param('DBInstanceId',DBInstanceId)
6369

70+
def get_MaxExecuteCost(self):
71+
return self.get_query_params().get('MaxExecuteCost')
72+
73+
def set_MaxExecuteCost(self,MaxExecuteCost):
74+
self.add_query_param('MaxExecuteCost',MaxExecuteCost)
75+
6476
def get_ExecuteCost(self):
6577
return self.get_query_params().get('ExecuteCost')
6678

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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 aliyunsdkgpdb.endpoint import endpoint_data
22+
23+
class DescribeSQLLogsOnSliceRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'gpdb', '2016-05-03', 'DescribeSQLLogsOnSlice','gpdb')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_SliceId(self):
35+
return self.get_query_params().get('SliceId')
36+
37+
def set_SliceId(self,SliceId):
38+
self.add_query_param('SliceId',SliceId)
39+
40+
def get_PageNumber(self):
41+
return self.get_query_params().get('PageNumber')
42+
43+
def set_PageNumber(self,PageNumber):
44+
self.add_query_param('PageNumber',PageNumber)
45+
46+
def get_MinExecuteCost(self):
47+
return self.get_query_params().get('MinExecuteCost')
48+
49+
def set_MinExecuteCost(self,MinExecuteCost):
50+
self.add_query_param('MinExecuteCost',MinExecuteCost)
51+
52+
def get_PageSize(self):
53+
return self.get_query_params().get('PageSize')
54+
55+
def set_PageSize(self,PageSize):
56+
self.add_query_param('PageSize',PageSize)
57+
58+
def get_DBInstanceId(self):
59+
return self.get_query_params().get('DBInstanceId')
60+
61+
def set_DBInstanceId(self,DBInstanceId):
62+
self.add_query_param('DBInstanceId',DBInstanceId)
63+
64+
def get_MaxExecuteCost(self):
65+
return self.get_query_params().get('MaxExecuteCost')
66+
67+
def set_MaxExecuteCost(self,MaxExecuteCost):
68+
self.add_query_param('MaxExecuteCost',MaxExecuteCost)
69+
70+
def get_ExecuteState(self):
71+
return self.get_query_params().get('ExecuteState')
72+
73+
def set_ExecuteState(self,ExecuteState):
74+
self.add_query_param('ExecuteState',ExecuteState)
75+
76+
def get_QueryId(self):
77+
return self.get_query_params().get('QueryId')
78+
79+
def set_QueryId(self,QueryId):
80+
self.add_query_param('QueryId',QueryId)

aliyun-python-sdk-gpdb/aliyunsdkgpdb/request/v20160503/DescribeSQLLogsRequest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ def get_SourceIP(self):
6161
def set_SourceIP(self,SourceIP):
6262
self.add_query_param('SourceIP',SourceIP)
6363

64+
def get_MinExecuteCost(self):
65+
return self.get_query_params().get('MinExecuteCost')
66+
67+
def set_MinExecuteCost(self,MinExecuteCost):
68+
self.add_query_param('MinExecuteCost',MinExecuteCost)
69+
6470
def get_PageSize(self):
6571
return self.get_query_params().get('PageSize')
6672

@@ -73,6 +79,12 @@ def get_DBInstanceId(self):
7379
def set_DBInstanceId(self,DBInstanceId):
7480
self.add_query_param('DBInstanceId',DBInstanceId)
7581

82+
def get_MaxExecuteCost(self):
83+
return self.get_query_params().get('MaxExecuteCost')
84+
85+
def set_MaxExecuteCost(self,MaxExecuteCost):
86+
self.add_query_param('MaxExecuteCost',MaxExecuteCost)
87+
7688
def get_ExecuteCost(self):
7789
return self.get_query_params().get('ExecuteCost')
7890

aliyun-python-sdk-gpdb/aliyunsdkgpdb/request/v20190620/DescribeDBInstanceForDmsRequest.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

aliyun-python-sdk-gpdb/aliyunsdkgpdb/request/v20190620/DescribeDBInstanceSecurityIpsRequest.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

aliyun-python-sdk-gpdb/aliyunsdkgpdb/request/v20190620/DescribeDBInstancesForDmsRequest.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)