Package com.tencentcloudapi.gs.v20191118
Class GsClient
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractClient
-
- com.tencentcloudapi.gs.v20191118.GsClient
-
public class GsClient extends AbstractClient
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
-
-
Constructor Summary
Constructors Constructor Description GsClient(Credential credential, String region)GsClient(Credential credential, String region, ClientProfile profile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSessionResponseCreateSession(CreateSessionRequest req)创建会话DescribeInstancesCountResponseDescribeInstancesCount(DescribeInstancesCountRequest req)获取并发总数和运行数SaveGameArchiveResponseSaveGameArchive(SaveGameArchiveRequest req)保存游戏存档StartPublishStreamResponseStartPublishStream(StartPublishStreamRequest req)开始云端推流StopGameResponseStopGame(StopGameRequest req)强制退出游戏StopPublishStreamResponseStopPublishStream(StopPublishStreamRequest req)停止云端推流SwitchGameArchiveResponseSwitchGameArchive(SwitchGameArchiveRequest req)切换游戏存档TrylockWorkerResponseTrylockWorker(TrylockWorkerRequest req)尝试锁定机器-
Methods inherited from class com.tencentcloudapi.common.AbstractClient
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, retry, setClientProfile, setCredential, setRegion, setRegionBreaker
-
-
-
-
Constructor Detail
-
GsClient
public GsClient(Credential credential, String region)
-
GsClient
public GsClient(Credential credential, String region, ClientProfile profile)
-
-
Method Detail
-
CreateSession
public CreateSessionResponse CreateSession(CreateSessionRequest req) throws TencentCloudSDKException
创建会话- Parameters:
req- CreateSessionRequest- Returns:
- CreateSessionResponse
- Throws:
TencentCloudSDKException
-
DescribeInstancesCount
public DescribeInstancesCountResponse DescribeInstancesCount(DescribeInstancesCountRequest req) throws TencentCloudSDKException
获取并发总数和运行数- Parameters:
req- DescribeInstancesCountRequest- Returns:
- DescribeInstancesCountResponse
- Throws:
TencentCloudSDKException
-
SaveGameArchive
public SaveGameArchiveResponse SaveGameArchive(SaveGameArchiveRequest req) throws TencentCloudSDKException
保存游戏存档- Parameters:
req- SaveGameArchiveRequest- Returns:
- SaveGameArchiveResponse
- Throws:
TencentCloudSDKException
-
StartPublishStream
public StartPublishStreamResponse StartPublishStream(StartPublishStreamRequest req) throws TencentCloudSDKException
开始云端推流- Parameters:
req- StartPublishStreamRequest- Returns:
- StartPublishStreamResponse
- Throws:
TencentCloudSDKException
-
StopGame
public StopGameResponse StopGame(StopGameRequest req) throws TencentCloudSDKException
强制退出游戏- Parameters:
req- StopGameRequest- Returns:
- StopGameResponse
- Throws:
TencentCloudSDKException
-
StopPublishStream
public StopPublishStreamResponse StopPublishStream(StopPublishStreamRequest req) throws TencentCloudSDKException
停止云端推流- Parameters:
req- StopPublishStreamRequest- Returns:
- StopPublishStreamResponse
- Throws:
TencentCloudSDKException
-
SwitchGameArchive
public SwitchGameArchiveResponse SwitchGameArchive(SwitchGameArchiveRequest req) throws TencentCloudSDKException
切换游戏存档- Parameters:
req- SwitchGameArchiveRequest- Returns:
- SwitchGameArchiveResponse
- Throws:
TencentCloudSDKException
-
TrylockWorker
public TrylockWorkerResponse TrylockWorker(TrylockWorkerRequest req) throws TencentCloudSDKException
尝试锁定机器- Parameters:
req- TrylockWorkerRequest- Returns:
- TrylockWorkerResponse
- Throws:
TencentCloudSDKException
-
-