public class GsClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION| Constructor and Description |
|---|
GsClient(Credential credential,
String region) |
GsClient(Credential credential,
String region,
ClientProfile profile) |
| Modifier and Type | Method and Description |
|---|---|
CreateSessionResponse |
CreateSession(CreateSessionRequest req)
创建会话
|
DescribeInstancesCountResponse |
DescribeInstancesCount(DescribeInstancesCountRequest req)
获取实例总数和运行数
|
SaveGameArchiveResponse |
SaveGameArchive(SaveGameArchiveRequest req)
保存游戏存档
|
StopGameResponse |
StopGame(StopGameRequest req)
强制退出游戏
|
SwitchGameArchiveResponse |
SwitchGameArchive(SwitchGameArchiveRequest req)
切换游戏存档
|
TrylockWorkerResponse |
TrylockWorker(TrylockWorkerRequest req)
尝试锁定机器
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegionpublic GsClient(Credential credential, String region)
public GsClient(Credential credential, String region, ClientProfile profile)
public CreateSessionResponse CreateSession(CreateSessionRequest req) throws TencentCloudSDKException
req - CreateSessionRequestTencentCloudSDKExceptionpublic DescribeInstancesCountResponse DescribeInstancesCount(DescribeInstancesCountRequest req) throws TencentCloudSDKException
req - DescribeInstancesCountRequestTencentCloudSDKExceptionpublic SaveGameArchiveResponse SaveGameArchive(SaveGameArchiveRequest req) throws TencentCloudSDKException
req - SaveGameArchiveRequestTencentCloudSDKExceptionpublic StopGameResponse StopGame(StopGameRequest req) throws TencentCloudSDKException
req - StopGameRequestTencentCloudSDKExceptionpublic SwitchGameArchiveResponse SwitchGameArchive(SwitchGameArchiveRequest req) throws TencentCloudSDKException
req - SwitchGameArchiveRequestTencentCloudSDKExceptionpublic TrylockWorkerResponse TrylockWorker(TrylockWorkerRequest req) throws TencentCloudSDKException
req - TrylockWorkerRequestTencentCloudSDKExceptionCopyright © 2021. All rights reserved.