-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add api about ABMetric, ABMetricGroup, CalculationJob.
- Loading branch information
Showing
80 changed files
with
5,450 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...c/main/java/com/aliyuncs/pairecservice/model/v20221213/CheckInstanceResourcesRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
90 changes: 90 additions & 0 deletions
90
.../main/java/com/aliyuncs/pairecservice/model/v20221213/CheckInstanceResourcesResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
.../src/main/java/com/aliyuncs/pairecservice/model/v20221213/CreateABMetricGroupRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
...src/main/java/com/aliyuncs/pairecservice/model/v20221213/CreateABMetricGroupResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...rvice/src/main/java/com/aliyuncs/pairecservice/model/v20221213/CreateABMetricRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
...vice/src/main/java/com/aliyuncs/pairecservice/model/v20221213/CreateABMetricResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.