Skip to content

Commit 4da36e4

Browse files
committed
Add ListFeatureViewOnlineFeatures API.
1 parent e02f7d7 commit 4da36e4

File tree

5 files changed

+175
-1
lines changed

5 files changed

+175
-1
lines changed

aliyun-java-sdk-paifeaturestore/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-06-11 Version: 1.0.11
2+
- Add ListFeatureViewOnlineFeatures API.
3+
14
2024-03-25 Version: 1.0.10
25
- Add FeatureDB Datasource.
36

aliyun-java-sdk-paifeaturestore/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-paifeaturestore</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.10</version>
7+
<version>1.0.11</version>
88
<name>aliyun-java-sdk-paifeaturestore</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.paifeaturestore.model.v20230621;
16+
17+
import com.aliyuncs.RoaAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class ListFeatureViewOnlineFeaturesRequest extends RoaAcsRequest<ListFeatureViewOnlineFeaturesResponse> {
25+
26+
27+
private String instanceId;
28+
29+
private String joinIds;
30+
31+
private String featureViewId;
32+
public ListFeatureViewOnlineFeaturesRequest() {
33+
super("PaiFeatureStore", "2023-06-21", "ListFeatureViewOnlineFeatures");
34+
setUriPattern("/api/v1/instances/[InstanceId]/featureviews/[FeatureViewId]/onlinefeatures");
35+
setMethod(MethodType.GET);
36+
}
37+
38+
public String getInstanceId() {
39+
return this.instanceId;
40+
}
41+
42+
public void setInstanceId(String instanceId) {
43+
this.instanceId = instanceId;
44+
if(instanceId != null){
45+
putPathParameter("InstanceId", instanceId);
46+
}
47+
}
48+
49+
public String getJoinIds() {
50+
return this.joinIds;
51+
}
52+
53+
public void setJoinIds(String joinIds) {
54+
this.joinIds = joinIds;
55+
if(joinIds != null){
56+
putQueryParameter("JoinIds", joinIds);
57+
}
58+
}
59+
60+
public String getFeatureViewId() {
61+
return this.featureViewId;
62+
}
63+
64+
public void setFeatureViewId(String featureViewId) {
65+
this.featureViewId = featureViewId;
66+
if(featureViewId != null){
67+
putPathParameter("FeatureViewId", featureViewId);
68+
}
69+
}
70+
71+
@Override
72+
public Class<ListFeatureViewOnlineFeaturesResponse> getResponseClass() {
73+
return ListFeatureViewOnlineFeaturesResponse.class;
74+
}
75+
76+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.paifeaturestore.model.v20230621;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.paifeaturestore.transform.v20230621.ListFeatureViewOnlineFeaturesResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class ListFeatureViewOnlineFeaturesResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private List<String> onlineFeatures;
31+
32+
public String getRequestId() {
33+
return this.requestId;
34+
}
35+
36+
public void setRequestId(String requestId) {
37+
this.requestId = requestId;
38+
}
39+
40+
public List<String> getOnlineFeatures() {
41+
return this.onlineFeatures;
42+
}
43+
44+
public void setOnlineFeatures(List<String> onlineFeatures) {
45+
this.onlineFeatures = onlineFeatures;
46+
}
47+
48+
@Override
49+
public ListFeatureViewOnlineFeaturesResponse getInstance(UnmarshallerContext context) {
50+
return ListFeatureViewOnlineFeaturesResponseUnmarshaller.unmarshall(this, context);
51+
}
52+
53+
@Override
54+
public boolean checkShowJsonItemName() {
55+
return false;
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.paifeaturestore.transform.v20230621;
16+
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
import com.aliyuncs.paifeaturestore.model.v20230621.ListFeatureViewOnlineFeaturesResponse;
21+
import com.aliyuncs.transform.UnmarshallerContext;
22+
23+
24+
public class ListFeatureViewOnlineFeaturesResponseUnmarshaller {
25+
26+
public static ListFeatureViewOnlineFeaturesResponse unmarshall(ListFeatureViewOnlineFeaturesResponse listFeatureViewOnlineFeaturesResponse, UnmarshallerContext _ctx) {
27+
28+
listFeatureViewOnlineFeaturesResponse.setRequestId(_ctx.stringValue("ListFeatureViewOnlineFeaturesResponse.RequestId"));
29+
30+
List<String> onlineFeatures = new ArrayList<String>();
31+
for (int i = 0; i < _ctx.lengthValue("ListFeatureViewOnlineFeaturesResponse.OnlineFeatures.Length"); i++) {
32+
onlineFeatures.add(_ctx.stringValue("ListFeatureViewOnlineFeaturesResponse.OnlineFeatures["+ i +"]"));
33+
}
34+
listFeatureViewOnlineFeaturesResponse.setOnlineFeatures(onlineFeatures);
35+
36+
return listFeatureViewOnlineFeaturesResponse;
37+
}
38+
}

0 commit comments

Comments
 (0)