Skip to content

Commit

Permalink
Add status operation api.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 18, 2024
1 parent f6d1d02 commit 16c1bb4
Show file tree
Hide file tree
Showing 13 changed files with 480 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-computenest/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-06-18 Version: 1.1.7
- Add status operation api.

2024-04-23 Version: 1.1.6
- Generated 2021-06-01 for `ComputeNest`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-computenest/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-computenest</artifactId>
<packaging>jar</packaging>
<version>1.1.6</version>
<version>1.1.7</version>
<name>aliyun-java-sdk-computenest</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
Expand Up @@ -121,6 +121,8 @@ public static class ServiceInstance {

private String bizStatus;

private String orderId;

private List<Tag> tags;

private Service service;
Expand Down Expand Up @@ -301,6 +303,14 @@ public void setBizStatus(String bizStatus) {
this.bizStatus = bizStatus;
}

public String getOrderId() {
return this.orderId;
}

public void setOrderId(String orderId) {
this.orderId = orderId;
}

public List<Tag> getTags() {
return this.tags;
}
Expand Down Expand Up @@ -362,6 +372,8 @@ public static class Service {

private List<ServiceInfo> serviceInfos;

private Commodity commodity;

public String getStatus() {
return this.status;
}
Expand Down Expand Up @@ -442,6 +454,14 @@ public void setServiceInfos(List<ServiceInfo> serviceInfos) {
this.serviceInfos = serviceInfos;
}

public Commodity getCommodity() {
return this.commodity;
}

public void setCommodity(Commodity commodity) {
this.commodity = commodity;
}

public static class ServiceInfo {

private String locale;
Expand Down Expand Up @@ -484,6 +504,29 @@ public void setShortDescription(String shortDescription) {
this.shortDescription = shortDescription;
}
}

public static class Commodity {

private String saasBoostMetadata;

private String type;

public String getSaasBoostMetadata() {
return this.saasBoostMetadata;
}

public void setSaasBoostMetadata(String saasBoostMetadata) {
this.saasBoostMetadata = saasBoostMetadata;
}

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

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

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* 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.computenest.model.v20210601;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.computenest.Endpoint;

/**
* @author auto create
* @version
*/
public class RestartServiceInstanceRequest extends RpcAcsRequest<RestartServiceInstanceResponse> {


private String clientToken;

private String serviceInstanceId;
public RestartServiceInstanceRequest() {
super("ComputeNest", "2021-06-01", "RestartServiceInstance", "computenest");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getClientToken() {
return this.clientToken;
}

public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}

public String getServiceInstanceId() {
return this.serviceInstanceId;
}

public void setServiceInstanceId(String serviceInstanceId) {
this.serviceInstanceId = serviceInstanceId;
if(serviceInstanceId != null){
putQueryParameter("ServiceInstanceId", serviceInstanceId);
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* 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.computenest.model.v20210601;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.computenest.transform.v20210601.RestartServiceInstanceResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

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

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

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* 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.computenest.model.v20210601;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.computenest.Endpoint;

/**
* @author auto create
* @version
*/
public class StartServiceInstanceRequest extends RpcAcsRequest<StartServiceInstanceResponse> {


private String clientToken;

private String serviceInstanceId;
public StartServiceInstanceRequest() {
super("ComputeNest", "2021-06-01", "StartServiceInstance", "computenest");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getClientToken() {
return this.clientToken;
}

public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}

public String getServiceInstanceId() {
return this.serviceInstanceId;
}

public void setServiceInstanceId(String serviceInstanceId) {
this.serviceInstanceId = serviceInstanceId;
if(serviceInstanceId != null){
putQueryParameter("ServiceInstanceId", serviceInstanceId);
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* 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.computenest.model.v20210601;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.computenest.transform.v20210601.StartServiceInstanceResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

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

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

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* 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.computenest.model.v20210601;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.computenest.Endpoint;

/**
* @author auto create
* @version
*/
public class StopServiceInstanceRequest extends RpcAcsRequest<StopServiceInstanceResponse> {


private String clientToken;

private String serviceInstanceId;
public StopServiceInstanceRequest() {
super("ComputeNest", "2021-06-01", "StopServiceInstance", "computenest");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getClientToken() {
return this.clientToken;
}

public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}

public String getServiceInstanceId() {
return this.serviceInstanceId;
}

public void setServiceInstanceId(String serviceInstanceId) {
this.serviceInstanceId = serviceInstanceId;
if(serviceInstanceId != null){
putQueryParameter("ServiceInstanceId", serviceInstanceId);
}
}

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

}
Loading

0 comments on commit 16c1bb4

Please sign in to comment.