Skip to content

Commit 09595bb

Browse files
committed
Update GetInstance and ListInstances.
1 parent ad7cade commit 09595bb

11 files changed

+494
-1
lines changed

aliyun-python-sdk-paifeaturestore/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-07-17 Version: 1.0.17
2+
- Update GetInstance and ListInstances.
3+
14
2024-12-18 Version: 1.0.16
25
- Add Support Real time mock table.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.16'
1+
__version__ = '1.0.17'
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 RoaRequest
21+
22+
class CheckModelFeatureFGFeatureRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'PaiFeatureStore', '2023-06-21', 'CheckModelFeatureFGFeature')
26+
self.set_uri_pattern('/api/v1/instances/[InstanceId]/modelfeatures/[ModelFeatureId]/action/checkfgfeature')
27+
self.set_method('POST')
28+
29+
def get_ModelFeatureId(self): # String
30+
return self.get_path_params().get('ModelFeatureId')
31+
32+
def set_ModelFeatureId(self, ModelFeatureId): # String
33+
self.add_path_param('ModelFeatureId', ModelFeatureId)
34+
def get_InstanceId(self): # String
35+
return self.get_path_params().get('InstanceId')
36+
37+
def set_InstanceId(self, InstanceId): # String
38+
self.add_path_param('InstanceId', InstanceId)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 RoaRequest
21+
22+
class CreateLLMConfigRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'PaiFeatureStore', '2023-06-21', 'CreateLLMConfig')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/api/v1/instances/[InstanceId]/llmconfigs')
28+
self.set_method('POST')
29+
30+
def get_body(self): # String
31+
return self.get_body_params().get('body')
32+
33+
def set_body(self, body): # String
34+
self.add_body_params('body', body)
35+
def get_InstanceId(self): # String
36+
return self.get_path_params().get('InstanceId')
37+
38+
def set_InstanceId(self, InstanceId): # String
39+
self.add_path_param('InstanceId', InstanceId)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 RoaRequest
21+
22+
class DeleteLLMConfigRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'PaiFeatureStore', '2023-06-21', 'DeleteLLMConfig')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/api/v1/instances/[InstanceId]/llmconfigs/[LLMConfigId]')
28+
self.set_method('DELETE')
29+
30+
def get_LLMConfigId(self): # String
31+
return self.get_path_params().get('LLMConfigId')
32+
33+
def set_LLMConfigId(self, LLMConfigId): # String
34+
self.add_path_param('LLMConfigId', LLMConfigId)
35+
def get_InstanceId(self): # String
36+
return self.get_path_params().get('InstanceId')
37+
38+
def set_InstanceId(self, InstanceId): # String
39+
self.add_path_param('InstanceId', InstanceId)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 RoaRequest
21+
22+
class GetLLMConfigRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'PaiFeatureStore', '2023-06-21', 'GetLLMConfig')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/api/v1/instances/[InstanceId]/llmconfigs/[LLMConfigId]')
28+
self.set_method('GET')
29+
30+
def get_LLMConfigId(self): # String
31+
return self.get_path_params().get('LLMConfigId')
32+
33+
def set_LLMConfigId(self, LLMConfigId): # String
34+
self.add_path_param('LLMConfigId', LLMConfigId)
35+
def get_InstanceId(self): # String
36+
return self.get_path_params().get('InstanceId')
37+
38+
def set_InstanceId(self, InstanceId): # String
39+
self.add_path_param('InstanceId', InstanceId)
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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 RoaRequest
21+
22+
class ListDatasourceFeatureViewsRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'PaiFeatureStore', '2023-06-21', 'ListDatasourceFeatureViews')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/api/v1/instances/[InstanceId]/datasources/[DatasourceId]/featureviews')
28+
self.set_method('GET')
29+
30+
def get_Type(self): # String
31+
return self.get_query_params().get('Type')
32+
33+
def set_Type(self, Type): # String
34+
self.add_query_param('Type', Type)
35+
def get_StartDate(self): # String
36+
return self.get_query_params().get('StartDate')
37+
38+
def set_StartDate(self, StartDate): # String
39+
self.add_query_param('StartDate', StartDate)
40+
def get_PageNumber(self): # Integer
41+
return self.get_query_params().get('PageNumber')
42+
43+
def set_PageNumber(self, PageNumber): # Integer
44+
self.add_query_param('PageNumber', PageNumber)
45+
def get_PageSize(self): # Integer
46+
return self.get_query_params().get('PageSize')
47+
48+
def set_PageSize(self, PageSize): # Integer
49+
self.add_query_param('PageSize', PageSize)
50+
def get_ProjectId(self): # String
51+
return self.get_query_params().get('ProjectId')
52+
53+
def set_ProjectId(self, ProjectId): # String
54+
self.add_query_param('ProjectId', ProjectId)
55+
def get_Order(self): # String
56+
return self.get_query_params().get('Order')
57+
58+
def set_Order(self, Order): # String
59+
self.add_query_param('Order', Order)
60+
def get_All(self): # Boolean
61+
return self.get_query_params().get('All')
62+
63+
def set_All(self, All): # Boolean
64+
self.add_query_param('All', All)
65+
def get_ProjectName(self): # String
66+
return self.get_query_params().get('ProjectName')
67+
68+
def set_ProjectName(self, ProjectName): # String
69+
self.add_query_param('ProjectName', ProjectName)
70+
def get_ShowStorageUsage(self): # Boolean
71+
return self.get_query_params().get('ShowStorageUsage')
72+
73+
def set_ShowStorageUsage(self, ShowStorageUsage): # Boolean
74+
self.add_query_param('ShowStorageUsage', ShowStorageUsage)
75+
def get_Verbose(self): # Boolean
76+
return self.get_query_params().get('Verbose')
77+
78+
def set_Verbose(self, Verbose): # Boolean
79+
self.add_query_param('Verbose', Verbose)
80+
def get_InstanceId(self): # String
81+
return self.get_path_params().get('InstanceId')
82+
83+
def set_InstanceId(self, InstanceId): # String
84+
self.add_path_param('InstanceId', InstanceId)
85+
def get_EndDate(self): # String
86+
return self.get_query_params().get('EndDate')
87+
88+
def set_EndDate(self, EndDate): # String
89+
self.add_query_param('EndDate', EndDate)
90+
def get_DatasourceId(self): # String
91+
return self.get_path_params().get('DatasourceId')
92+
93+
def set_DatasourceId(self, DatasourceId): # String
94+
self.add_path_param('DatasourceId', DatasourceId)
95+
def get_Name(self): # String
96+
return self.get_query_params().get('Name')
97+
98+
def set_Name(self, Name): # String
99+
self.add_query_param('Name', Name)
100+
def get_SortBy(self): # String
101+
return self.get_query_params().get('SortBy')
102+
103+
def set_SortBy(self, SortBy): # String
104+
self.add_query_param('SortBy', SortBy)
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 RoaRequest
21+
22+
class ListLLMConfigsRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'PaiFeatureStore', '2023-06-21', 'ListLLMConfigs')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/api/v1/instances/[InstanceId]/llmconfigs')
28+
self.set_method('GET')
29+
30+
def get_PageNumber(self): # Integer
31+
return self.get_query_params().get('PageNumber')
32+
33+
def set_PageNumber(self, PageNumber): # Integer
34+
self.add_query_param('PageNumber', PageNumber)
35+
def get_NextToken(self): # String
36+
return self.get_query_params().get('NextToken')
37+
38+
def set_NextToken(self, NextToken): # String
39+
self.add_query_param('NextToken', NextToken)
40+
def get_PageSize(self): # Integer
41+
return self.get_query_params().get('PageSize')
42+
43+
def set_PageSize(self, PageSize): # Integer
44+
self.add_query_param('PageSize', PageSize)
45+
def get_Order(self): # String
46+
return self.get_query_params().get('Order')
47+
48+
def set_Order(self, Order): # String
49+
self.add_query_param('Order', Order)
50+
def get_InstanceId(self): # String
51+
return self.get_path_params().get('InstanceId')
52+
53+
def set_InstanceId(self, InstanceId): # String
54+
self.add_path_param('InstanceId', InstanceId)
55+
def get_Name(self): # String
56+
return self.get_query_params().get('Name')
57+
58+
def set_Name(self, Name): # String
59+
self.add_query_param('Name', Name)
60+
def get_MaxResults(self): # Integer
61+
return self.get_query_params().get('MaxResults')
62+
63+
def set_MaxResults(self, MaxResults): # Integer
64+
self.add_query_param('MaxResults', MaxResults)
65+
def get_SortBy(self): # String
66+
return self.get_query_params().get('SortBy')
67+
68+
def set_SortBy(self, SortBy): # String
69+
self.add_query_param('SortBy', SortBy)
70+
def get_WorkspaceId(self): # String
71+
return self.get_query_params().get('WorkspaceId')
72+
73+
def set_WorkspaceId(self, WorkspaceId): # String
74+
self.add_query_param('WorkspaceId', WorkspaceId)

0 commit comments

Comments
 (0)