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)
保存游戏存档
|
StartPublishStreamResponse |
StartPublishStream(StartPublishStreamRequest req)
开始云端推流
|
StartPublishStreamToCSSResponse |
StartPublishStreamToCSS(StartPublishStreamToCSSRequest req)
开始云端推流
|
StopGameResponse |
StopGame(StopGameRequest req)
强制退出游戏
|
StopPublishStreamResponse |
StopPublishStream(StopPublishStreamRequest req)
停止云端推流
|
SwitchGameArchiveResponse |
SwitchGameArchive(SwitchGameArchiveRequest req)
切换游戏存档
|
TrylockWorkerResponse |
TrylockWorker(TrylockWorkerRequest req)
尝试锁定机器
|
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, internalRequest, internalRequestRaw, processResponseJson, processResponseSSE, retry, setClientProfile, setCredential, setRegion, setRegionBreaker
public GsClient(Credential credential, String region)
public GsClient(Credential credential, String region, ClientProfile profile)
public CreateSessionResponse CreateSession(CreateSessionRequest req) throws TencentCloudSDKException
req
- CreateSessionRequestTencentCloudSDKException
public DescribeInstancesCountResponse DescribeInstancesCount(DescribeInstancesCountRequest req) throws TencentCloudSDKException
req
- DescribeInstancesCountRequestTencentCloudSDKException
public SaveGameArchiveResponse SaveGameArchive(SaveGameArchiveRequest req) throws TencentCloudSDKException
req
- SaveGameArchiveRequestTencentCloudSDKException
public StartPublishStreamResponse StartPublishStream(StartPublishStreamRequest req) throws TencentCloudSDKException
req
- StartPublishStreamRequestTencentCloudSDKException
public StartPublishStreamToCSSResponse StartPublishStreamToCSS(StartPublishStreamToCSSRequest req) throws TencentCloudSDKException
req
- StartPublishStreamToCSSRequestTencentCloudSDKException
public StopGameResponse StopGame(StopGameRequest req) throws TencentCloudSDKException
req
- StopGameRequestTencentCloudSDKException
public StopPublishStreamResponse StopPublishStream(StopPublishStreamRequest req) throws TencentCloudSDKException
req
- StopPublishStreamRequestTencentCloudSDKException
public SwitchGameArchiveResponse SwitchGameArchive(SwitchGameArchiveRequest req) throws TencentCloudSDKException
req
- SwitchGameArchiveRequestTencentCloudSDKException
public TrylockWorkerResponse TrylockWorker(TrylockWorkerRequest req) throws TencentCloudSDKException
req
- TrylockWorkerRequestTencentCloudSDKException
Copyright © 2024. All rights reserved.