Skip to content

Commit

Permalink
Add api about ABMetric, ABMetricGroup, CalculationJob.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 21, 2023
1 parent c5dbe31 commit bbdf43c
Show file tree
Hide file tree
Showing 80 changed files with 5,450 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-pairecservice/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-12-21 Version: 1.0.3
- Add api about ABMetric, ABMetricGroup, CalculationJob.

2023-09-14 Version: 1.0.2
- Add api about feature consistency checking.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-pairecservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-pairecservice</artifactId>
<packaging>jar</packaging>
<version>1.0.2</version>
<version>1.0.3</version>
<name>aliyun-java-sdk-pairecservice</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.pairecservice.model.v20221213;

import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class CheckInstanceResourcesRequest extends RoaAcsRequest<CheckInstanceResourcesResponse> {


private String instanceId;

private String body;
public CheckInstanceResourcesRequest() {
super("PaiRecService", "2022-12-13", "CheckInstanceResources");
setUriPattern("/api/v1/instances/[InstanceId]/action/checkresources");
setMethod(MethodType.POST);
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putPathParameter("InstanceId", instanceId);
}
}

public String getBody() {
return this.body;
}

public void setBody(String body) {
this.body = body;
if(body != null){
putBodyParameter("body", body);
}
}

@Override
public Class<CheckInstanceResourcesResponse> getResponseClass() {
return CheckInstanceResourcesResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.pairecservice.model.v20221213;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.pairecservice.transform.v20221213.CheckInstanceResourcesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class CheckInstanceResourcesResponse extends AcsResponse {

private String requestId;

private List<ResourcesItem> resources;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public List<ResourcesItem> getResources() {
return this.resources;
}

public void setResources(List<ResourcesItem> resources) {
this.resources = resources;
}

public static class ResourcesItem {

private String type;

private String uri;

private String status;

public String getType() {
return this.type;
}

public void setType(String type) {
this.type = type;
}

public String getUri() {
return this.uri;
}

public void setUri(String uri) {
this.uri = uri;
}

public String getStatus() {
return this.status;
}

public void setStatus(String status) {
this.status = status;
}
}

@Override
public CheckInstanceResourcesResponse getInstance(UnmarshallerContext context) {
return CheckInstanceResourcesResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.pairecservice.model.v20221213;

import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class CreateABMetricGroupRequest extends RoaAcsRequest<CreateABMetricGroupResponse> {


private String body;
public CreateABMetricGroupRequest() {
super("PaiRecService", "2022-12-13", "CreateABMetricGroup");
setUriPattern("/api/v1/abmetricgroups");
setMethod(MethodType.POST);
}

public String getBody() {
return this.body;
}

public void setBody(String body) {
this.body = body;
if(body != null){
putBodyParameter("body", body);
}
}

@Override
public Class<CreateABMetricGroupResponse> getResponseClass() {
return CreateABMetricGroupResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.pairecservice.model.v20221213;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.pairecservice.transform.v20221213.CreateABMetricGroupResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class CreateABMetricGroupResponse extends AcsResponse {

private String requestId;

private String aBMetricGroupId;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getABMetricGroupId() {
return this.aBMetricGroupId;
}

public void setABMetricGroupId(String aBMetricGroupId) {
this.aBMetricGroupId = aBMetricGroupId;
}

@Override
public CreateABMetricGroupResponse getInstance(UnmarshallerContext context) {
return CreateABMetricGroupResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.pairecservice.model.v20221213;

import com.aliyuncs.RoaAcsRequest;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class CreateABMetricRequest extends RoaAcsRequest<CreateABMetricResponse> {


private String body;
public CreateABMetricRequest() {
super("PaiRecService", "2022-12-13", "CreateABMetric");
setUriPattern("/api/v1/abmetrics");
setMethod(MethodType.POST);
}

public String getBody() {
return this.body;
}

public void setBody(String body) {
this.body = body;
if(body != null){
putBodyParameter("body", body);
}
}

@Override
public Class<CreateABMetricResponse> getResponseClass() {
return CreateABMetricResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.pairecservice.model.v20221213;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.pairecservice.transform.v20221213.CreateABMetricResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class CreateABMetricResponse extends AcsResponse {

private String requestId;

private String aBMetricId;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getABMetricId() {
return this.aBMetricId;
}

public void setABMetricId(String aBMetricId) {
this.aBMetricId = aBMetricId;
}

@Override
public CreateABMetricResponse getInstance(UnmarshallerContext context) {
return CreateABMetricResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit bbdf43c

Please sign in to comment.