All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksyun.api.sdk.kec.KSCKEC Maven / Gradle / Ivy

There is a newer version: 2.1.8
Show newest version
package com.ksyun.api.sdk.kec;

import com.ksc.regions.Region;
import com.ksyun.api.sdk.kec.model.CreateImageRequest;
import com.ksyun.api.sdk.kec.model.CreateImageResult;
import com.ksyun.api.sdk.kec.model.DescribeImagesRequest;
import com.ksyun.api.sdk.kec.model.DescribeImagesResult;
import com.ksyun.api.sdk.kec.model.DescribeInstanceVncRequest;
import com.ksyun.api.sdk.kec.model.DescribeInstanceVncResult;
import com.ksyun.api.sdk.kec.model.DescribeInstancesRequest;
import com.ksyun.api.sdk.kec.model.DescribeInstancesResult;
import com.ksyun.api.sdk.kec.model.ModifyImageAttributeRequest;
import com.ksyun.api.sdk.kec.model.ModifyImageAttributeResult;
import com.ksyun.api.sdk.kec.model.ModifyInstanceAttributeRequest;
import com.ksyun.api.sdk.kec.model.ModifyInstanceAttributeResult;
import com.ksyun.api.sdk.kec.model.ModifyInstanceImageRequest;
import com.ksyun.api.sdk.kec.model.ModifyInstanceImageResult;
import com.ksyun.api.sdk.kec.model.RebootInstancesRequest;
import com.ksyun.api.sdk.kec.model.RebootInstancesResult;
import com.ksyun.api.sdk.kec.model.RemoveImagesRequest;
import com.ksyun.api.sdk.kec.model.RemoveImagesResult;
import com.ksyun.api.sdk.kec.model.RunInstancesRequest;
import com.ksyun.api.sdk.kec.model.RunInstancesResult;
import com.ksyun.api.sdk.kec.model.StartInstancesRequest;
import com.ksyun.api.sdk.kec.model.StartInstancesResult;
import com.ksyun.api.sdk.kec.model.StopInstancesRequest;
import com.ksyun.api.sdk.kec.model.StopInstancesResult;
import com.ksyun.api.sdk.kec.model.TerminateInstancesRequest;
import com.ksyun.api.sdk.kec.model.TerminateInstancesResult;

/**
 * Interface for accessing ksyun kec.
 * 

* KingSoft Elastic Compute Cloud *

*/ public interface KSCKEC { void setEndpoint(String endpoint); void setRegion(Region region); /** * Simplified method form for invoking the DescribeInstances operation. * * @see #describeInstances(DescribeInstancesRequest) */ DescribeInstancesResult describeInstances(); /** *

* Describes one or more of your instances. *

*

* Recently terminated instances might appear in the returned results. This * interval is usually less than one hour. *

* * @param describeInstancesRequest * Contains the parameters for DescribeInstances. * @return Result of the DescribeInstances operation returned by the * service. * @sample KSC.KEC.DescribeInstances */ DescribeInstancesResult describeInstances(DescribeInstancesRequest describeInstancesRequest); /** *

* Starts an kec instance that you've previously stopped. *

* @param * * @param startInstancesRequest * Contains the parameters for StartInstances. * @return Result of the StartInstances operation returned by the service. * @sample KSC.KEC.StartInstances */ StartInstancesResult startInstances(StartInstancesRequest startInstancesRequest); /** *

* Stop an kec instance that you've previously stopped. *

* * @param stopInstancesRequest * Contains the parameters for StopInstances. * @return Result of the StopInstances operation returned by the service. * @sample KSC.KEC.StopInstances */ StopInstancesResult stopInstances(StopInstancesRequest stopInstancesRequest); /** *

* Reboot an kec instance that you've previously stopped. *

* * @param rebootInstancesRequest * Contains the parameters for StopInstances. * @return Result of the RebootInstances operation returned by the service. * @sample KSC.KEC.RebootInstances */ RebootInstancesResult rebootInstances(RebootInstancesRequest rebootInstancesRequest); /** *

* Describes one or more of your Images. *

*

* Recently terminated instances might appear in the returned results. This * interval is usually less than one hour. *

* * @param describeImagesRequest * Contains the parameters for DescribeImages. * @return Result of the DescribeInstances operation returned by the * service. * @sample KSC.KEC.DescribeImages */ DescribeImagesResult describeImages(DescribeImagesRequest describeImagesRequest); /** *

* Run an kec instance that you've previously stopped. *

* * @param runInstancesRequest * @return Result of the RunInstances operation returned by the service. * @sample KSC.KEC.RunInstances */ RunInstancesResult runInstances(RunInstancesRequest runInstancesRequest); /** *

* Terminate an kec instance. *

* * @param terminateInstancesRequest * @return Result of the TerminateInstances operation returned by the service. * @sample KSC.KEC.TerminateInstances */ TerminateInstancesResult terminateInstances(TerminateInstancesRequest terminateInstancesRequest); /** *

* ModifyInstanceAttribute an kec instance. *

* * @param modifyInstanceAttributeRequest * @return Result of the ModifyInstanceAttribute operation returned by the service. * @sample KSC.KEC.ModifyInstanceAttribute */ ModifyInstanceAttributeResult modifyInstanceAttribute(ModifyInstanceAttributeRequest modifyInstanceAttributeRequest); /** * 创建镜像 * @param createImageRequest * @return */ CreateImageResult createImage(CreateImageRequest createImageRequest); /** * 修改镜像 * @param modifyImageAttributeRequest * @return */ ModifyImageAttributeResult modifyImageAttribute(ModifyImageAttributeRequest modifyImageAttributeRequest); /** * 刪除鏡像 * @param removeImagesRequest * @return */ RemoveImagesResult removeImages(RemoveImagesRequest removeImagesRequest); /** * 更换或者重新安装实例操作系统 * @param modifyInstanceImageRequest * @return */ ModifyInstanceImageResult modifyInstanceImage(ModifyInstanceImageRequest modifyInstanceImageRequest); /** * 获取VNC信息 * @param describeInstanceVncRequest * @return */ DescribeInstanceVncResult describeInstanceVnc(DescribeInstanceVncRequest describeInstanceVncRequest); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy