Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.1.20240904 #38

Open
wants to merge 279 commits into
base: base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
279 commits
Select commit Hold shift + click to select a range
78bc311
feat: update
xfslove Sep 3, 2024
332632e
feat: update
xfslove Sep 3, 2024
7aa0d69
feat: update
xfslove Sep 3, 2024
c3e9503
feat: update
xfslove Sep 3, 2024
75382ed
feat: update
xfslove Sep 3, 2024
5817d2c
feat: update
xfslove Sep 3, 2024
df9e8ff
feat: update
xfslove Sep 3, 2024
b71bd76
feat: update
xfslove Sep 3, 2024
3312a4d
feat: update
xfslove Sep 3, 2024
eb0fe7a
feat: update
xfslove Sep 3, 2024
d3b41cb
feat: update
xfslove Sep 3, 2024
a354ea3
feat: update
xfslove Sep 3, 2024
cbbc5f8
feat: update
xfslove Sep 3, 2024
e2005a7
feat: update
xfslove Sep 3, 2024
ca12e56
feat: update
xfslove Sep 3, 2024
82f543e
feat: update
xfslove Sep 3, 2024
16b9c26
feat: update
xfslove Sep 3, 2024
b7caf52
feat: update
xfslove Sep 3, 2024
fa77578
feat: update
xfslove Sep 3, 2024
8f5c348
feat: update
xfslove Sep 3, 2024
4950745
feat: update
xfslove Sep 3, 2024
fcb42d6
feat: update
xfslove Sep 3, 2024
ea44380
feat: update
xfslove Sep 3, 2024
446f809
feat: update
xfslove Sep 3, 2024
f041019
feat: update
xfslove Sep 3, 2024
f09d56d
feat: update
xfslove Sep 3, 2024
48ecfc9
feat: update
xfslove Sep 3, 2024
91e7a54
feat: update
xfslove Sep 3, 2024
7220ac1
feat: update
xfslove Sep 3, 2024
812aef6
feat: update
xfslove Sep 3, 2024
1258f8e
feat: update
xfslove Sep 3, 2024
75a5200
feat: update
xfslove Sep 3, 2024
efa6258
feat: update
xfslove Sep 3, 2024
b141d45
feat: update
xfslove Sep 3, 2024
0b39daa
feat: update
xfslove Sep 3, 2024
64b0616
feat: update
xfslove Sep 3, 2024
4746119
feat: update
xfslove Sep 3, 2024
3c2e68a
feat: update
xfslove Sep 3, 2024
5e4dfab
feat: update
xfslove Sep 3, 2024
4102c39
feat: update
xfslove Sep 3, 2024
16b454b
feat: update
xfslove Sep 3, 2024
942f636
feat: update
xfslove Sep 3, 2024
39957da
feat: update
xfslove Sep 3, 2024
8f0b12c
feat: update
xfslove Sep 3, 2024
d1d1936
feat: update
xfslove Sep 3, 2024
970bde6
feat: update
xfslove Sep 3, 2024
da1db31
feat: update
xfslove Sep 3, 2024
155f628
feat: update
xfslove Sep 3, 2024
490cda3
feat: update
xfslove Sep 3, 2024
ed4e89e
feat: update
xfslove Sep 3, 2024
2f71bd7
feat: update
xfslove Sep 3, 2024
88091f5
feat: update
xfslove Sep 3, 2024
f86d64c
feat: update
xfslove Sep 3, 2024
1153fb2
feat: update
xfslove Sep 3, 2024
3a3aedb
feat: update
xfslove Sep 3, 2024
0850dc2
feat: update
xfslove Sep 3, 2024
665b354
feat: update
xfslove Sep 3, 2024
a7c152d
feat: update
xfslove Sep 3, 2024
32d1e10
feat: update
xfslove Sep 3, 2024
3d7050e
feat: update
xfslove Sep 3, 2024
b85b648
feat: update
xfslove Sep 3, 2024
c6e4a2b
feat: update
xfslove Sep 3, 2024
a49bebc
feat: update
xfslove Sep 3, 2024
b009bd2
feat: update
xfslove Sep 3, 2024
2deb480
feat: update
xfslove Sep 3, 2024
02f952d
feat: update
xfslove Sep 3, 2024
745f1d6
feat: update
xfslove Sep 3, 2024
80d81c6
feat: update
xfslove Sep 3, 2024
f7d4622
feat: update
xfslove Sep 3, 2024
8a2f139
feat: update
xfslove Sep 3, 2024
46a80b0
feat: update
xfslove Sep 3, 2024
6d40bb1
feat: update
xfslove Sep 3, 2024
47a035b
feat: update
xfslove Sep 3, 2024
b071c7f
feat: update
xfslove Sep 3, 2024
1218f9d
feat: update
xfslove Sep 3, 2024
8e4027a
feat: update
xfslove Sep 3, 2024
51ad6f2
feat: update
xfslove Sep 3, 2024
9b87dc4
feat: update
xfslove Sep 3, 2024
5d770a9
feat: update
xfslove Sep 3, 2024
8477c12
feat: update
xfslove Sep 3, 2024
3c84256
feat: update
xfslove Sep 3, 2024
328acac
feat: update
xfslove Sep 3, 2024
2e00a82
feat: update
xfslove Sep 3, 2024
7f2f7e4
feat: update
xfslove Sep 3, 2024
07ca581
feat: update
xfslove Sep 3, 2024
51469f9
feat: update
xfslove Sep 3, 2024
f80288c
feat: update
xfslove Sep 3, 2024
9fffb7e
feat: update
xfslove Sep 3, 2024
bdcb71f
feat: update
xfslove Sep 3, 2024
5b2fcec
feat: update
xfslove Sep 3, 2024
00f033a
feat: update
xfslove Sep 3, 2024
018851d
feat: update
xfslove Sep 3, 2024
48a8a94
feat: update
xfslove Sep 3, 2024
c42d8d5
feat: update
xfslove Sep 3, 2024
86bf688
feat: update
xfslove Sep 3, 2024
1e760bd
feat: update
xfslove Sep 3, 2024
a181ec8
feat: update
xfslove Sep 3, 2024
704c62c
feat: update
xfslove Sep 3, 2024
f33138a
feat: update
xfslove Sep 3, 2024
93af9f9
feat: update
xfslove Sep 3, 2024
f78775e
feat: update
xfslove Sep 3, 2024
07c49fd
feat: update
xfslove Sep 3, 2024
5812a09
feat: update
xfslove Sep 3, 2024
1fdda54
feat: update
xfslove Sep 3, 2024
e2c0b65
feat: update
xfslove Sep 3, 2024
9e294d0
feat: update
xfslove Sep 3, 2024
d4e9ee6
feat: update
xfslove Sep 3, 2024
031bf03
feat: update
xfslove Sep 3, 2024
09df96a
feat: update
xfslove Sep 3, 2024
5fee7a9
feat: update
xfslove Sep 3, 2024
f148cf6
feat: update
xfslove Sep 3, 2024
510ae8c
feat: update
xfslove Sep 3, 2024
10e5a91
feat: update
xfslove Sep 3, 2024
fa83d5c
feat: update
xfslove Sep 3, 2024
2dc2649
feat: update
xfslove Sep 3, 2024
e1958e5
feat: update
xfslove Sep 3, 2024
78058fc
feat: update
xfslove Sep 3, 2024
1d93626
feat: update
xfslove Sep 3, 2024
daee7ac
feat: update
xfslove Sep 3, 2024
0c701c7
feat: update
xfslove Sep 3, 2024
a414202
feat: update
xfslove Sep 3, 2024
ca21467
feat: update
xfslove Sep 3, 2024
25ff363
feat: update
xfslove Sep 3, 2024
16406ac
feat: update
xfslove Sep 3, 2024
9d56752
feat: update
xfslove Sep 3, 2024
839c18d
feat: update
xfslove Sep 3, 2024
c6cf805
feat: update
xfslove Sep 3, 2024
bb8d87c
feat: update
xfslove Sep 3, 2024
28445e8
feat: update
xfslove Sep 3, 2024
d4416c3
feat: update
xfslove Sep 3, 2024
935b29d
feat: update
xfslove Sep 3, 2024
f30be49
feat: update
xfslove Sep 3, 2024
de81ab8
feat: update
xfslove Sep 3, 2024
d104b04
feat: update
xfslove Sep 3, 2024
a7d21e1
feat: update
xfslove Sep 3, 2024
1ee69b2
feat: update
xfslove Sep 3, 2024
964afbc
feat: update
xfslove Sep 3, 2024
a216533
feat: update
xfslove Sep 3, 2024
09ee28b
feat: update
xfslove Sep 3, 2024
2c01489
feat: update
xfslove Sep 3, 2024
612c352
feat: update
xfslove Sep 3, 2024
aa83fcb
feat: update
xfslove Sep 3, 2024
b1b97c5
feat: update
xfslove Sep 3, 2024
836199b
feat: update
xfslove Sep 3, 2024
610d0f2
feat: update
xfslove Sep 3, 2024
c82fb94
feat: update
xfslove Sep 3, 2024
14cd520
feat: update
xfslove Sep 3, 2024
6b5b0ea
feat: update
xfslove Sep 3, 2024
2789b06
feat: update
xfslove Sep 3, 2024
e6c23bd
feat: update
xfslove Sep 3, 2024
536db74
feat: update
xfslove Sep 3, 2024
30a9dd4
feat: update
xfslove Sep 3, 2024
9b8006e
feat: update
xfslove Sep 3, 2024
f4b707f
feat: update
xfslove Sep 3, 2024
70035b9
feat: update
xfslove Sep 3, 2024
8e67a3d
feat: update
xfslove Sep 3, 2024
34f0051
feat: update
xfslove Sep 3, 2024
e755644
feat: update
xfslove Sep 3, 2024
add567d
feat: update
xfslove Sep 3, 2024
f8993e1
feat: update
xfslove Sep 3, 2024
fdbd1da
feat: update
xfslove Sep 3, 2024
773a5fa
feat: update
xfslove Sep 3, 2024
1990183
feat: update
xfslove Sep 3, 2024
e6db389
feat: update
xfslove Sep 3, 2024
529257a
feat: update
xfslove Sep 3, 2024
d84300a
feat: update
xfslove Sep 3, 2024
6a2f427
feat: update
xfslove Sep 3, 2024
ea9d826
feat: update
xfslove Sep 3, 2024
d16b7fc
feat: update
xfslove Sep 3, 2024
aa2faa4
feat: update
xfslove Sep 3, 2024
5c4f11c
feat: update
xfslove Sep 3, 2024
9f1d912
feat: update
xfslove Sep 3, 2024
c40d84e
feat: update
xfslove Sep 3, 2024
a5f07d9
feat: update
xfslove Sep 3, 2024
89b18c1
feat: update
xfslove Sep 3, 2024
226e1a6
feat: update
xfslove Sep 3, 2024
244bed5
feat: update
xfslove Sep 3, 2024
7363fee
feat: update
xfslove Sep 3, 2024
f5e3b20
feat: update
xfslove Sep 3, 2024
228a2ce
feat: update
xfslove Sep 3, 2024
224245b
feat: update
xfslove Sep 3, 2024
17dc42a
feat: update
xfslove Sep 3, 2024
2997c42
feat: update
xfslove Sep 3, 2024
80db38a
feat: update
xfslove Sep 3, 2024
fc2d46e
feat: update
xfslove Sep 3, 2024
85167fc
feat: update
xfslove Sep 3, 2024
54b187c
feat: update
xfslove Sep 3, 2024
bc6803b
feat: update
xfslove Sep 3, 2024
a016295
feat: update
xfslove Sep 3, 2024
2cd3575
feat: update
xfslove Sep 3, 2024
dd291a5
feat: update
xfslove Sep 3, 2024
df2f52a
feat: update
xfslove Sep 3, 2024
14f611a
feat: update
xfslove Sep 3, 2024
0f5a463
feat: update
xfslove Sep 3, 2024
1a80060
feat: update
xfslove Sep 3, 2024
a6a0498
feat: update
xfslove Sep 3, 2024
a2d7294
feat: update
xfslove Sep 3, 2024
5a97a98
feat: update
xfslove Sep 3, 2024
9aade1c
feat: update
xfslove Sep 3, 2024
27419bf
feat: update
xfslove Sep 3, 2024
45dc8f2
feat: update
xfslove Sep 3, 2024
00846de
feat: update
xfslove Sep 3, 2024
387c85d
feat: update
xfslove Sep 3, 2024
d5b3091
feat: update
xfslove Sep 3, 2024
f0e91de
feat: update
xfslove Sep 3, 2024
8f9bcf8
feat: update
xfslove Sep 3, 2024
f6d2403
feat: update
xfslove Sep 3, 2024
2a5705c
feat: update
xfslove Sep 3, 2024
f135e90
feat: update
xfslove Sep 3, 2024
d5e531e
feat: update
xfslove Sep 3, 2024
1e324f9
feat: update
xfslove Sep 3, 2024
7d4f3df
feat: update
xfslove Sep 3, 2024
655c567
feat: update
xfslove Sep 3, 2024
3c9bd36
feat: update
xfslove Sep 3, 2024
8aa4172
feat: update
xfslove Sep 3, 2024
b6915fe
feat: update
xfslove Sep 3, 2024
c8b028a
feat: update
xfslove Sep 3, 2024
12bb644
feat: update
xfslove Sep 3, 2024
fd781f8
feat: update
xfslove Sep 3, 2024
c498e30
feat: update
xfslove Sep 3, 2024
8e4cd83
feat: update
xfslove Sep 3, 2024
dc5dbee
feat: update
xfslove Sep 3, 2024
424fc2f
feat: update
xfslove Sep 3, 2024
02a8405
feat: update
xfslove Sep 3, 2024
15ad3d2
feat: update
xfslove Sep 3, 2024
dac389e
feat: update
xfslove Sep 3, 2024
db68bf8
feat: update
xfslove Sep 3, 2024
7dc0ead
feat: update
xfslove Sep 3, 2024
f2d5c64
feat: update
xfslove Sep 3, 2024
6d2d08b
feat: update
xfslove Sep 3, 2024
566be23
feat: update
xfslove Sep 3, 2024
3d1d2d2
feat: update
xfslove Sep 3, 2024
84c5750
feat: update
xfslove Sep 3, 2024
ccaf4c6
feat: update
xfslove Sep 3, 2024
dd33055
feat: update
xfslove Sep 3, 2024
1aa6e61
feat: update
xfslove Sep 3, 2024
12f78f7
feat: update
xfslove Sep 3, 2024
4be85d6
feat: update
xfslove Sep 3, 2024
0f8d954
feat: update
xfslove Sep 3, 2024
8bc3788
feat: update
xfslove Sep 3, 2024
ac67089
feat: update
xfslove Sep 3, 2024
d774fa6
feat: update
xfslove Sep 3, 2024
abbae13
feat: update
xfslove Sep 3, 2024
efbc7bc
feat: update
xfslove Sep 3, 2024
4773e0d
feat: update
xfslove Sep 3, 2024
2a8790c
feat: update
xfslove Sep 3, 2024
598f19d
feat: update
xfslove Sep 3, 2024
cefa1da
feat: update
xfslove Sep 3, 2024
e1eed33
feat: update
xfslove Sep 3, 2024
911a201
feat: update
xfslove Sep 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
workspace.xml
.DS_Store
.tmp
.settings
*~
.pyc
*.py[co]
# IDEA IDE
.idea*
build/
dist/
out/
.gitignore
coverage.*
.history/
vendor/
126 changes: 126 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)

# YuanJing OpenAPI SDK for Go

## Requirements
- It's necessary for you to make sure your system have installed Go environment which version greater than 1.15.0.

## Installation
If you use `go mod` to manage your dependence, you can use the following command:
```
go get github.com/aliyun/alibabacloud-yjopenapi-go-client 1.1.20240904
```

## Usage
```
import (
"github.com/aliyun/alibabacloud-yjopenapi-go-client/client/api"
"github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model"
)

configuration := api.DefaultConfiguration
configuration.Host = "host"
configuration.AccessKey = "Your Access Key"
configuration.SecretKey = "Your Secret Key"

client := api.NewAPIClient(configuration)

// {{Api}},{{Method}},{{Param}} is placeholder, take a look at Explain Of Usage Placeholder
result, response, error := client.{{Api}}.{{Method}}(&model.{{Params}}{})

// OpenAPI TraceId
traceId := response.Header.Get(client.Trace_Id)
// OpenAPI Status Code
statusCode := response.Header.Get(client.Result_Status)

// OpenAPI result
_ := result
```

## Explain Of Usage Placeholder

| Api | Method | Params | Result | Description |
| ------------ | ------------- | ------------- | ------------- | ------------- |
| *AdaptApi* | **CreateAndSubmitAll** | *CreateAndSubmitAllForms* | *AdaptCreateAndSubmitAllResult* | createAndSubmitAll |
| *AdaptApi* | **QueryRequestById** | *QueryRequestByIdForms* | *AdaptQueryRequestByIdResult* | queryRequestById |
| *AiApi* | **BatchUpdateKbVersion** | *BatchUpdateKbVersionForms* | *AiBatchUpdateKbVersionResult* | |
| *AiApi* | **CreateNpcRole** | *CreateNpcRoleForms* | *AiCreateNpcRoleResult* | |
| *AiApi* | **UpdateNpcRole** | *UpdateNpcRoleForms* | *AiUpdateNpcRoleResult* | |
| *ConsoleAdminApi* | **ActivateDeployment** | *ActivateDeploymentForms* | *ConsoleAdminActivateDeploymentResult* | |
| *ConsoleAdminApi* | **AdaptGameVersion** | *AdaptGameVersionForms* | *ConsoleAdminAdaptGameVersionResult* | |
| *ConsoleAdminApi* | **AddGameToProject** | *AddGameToProjectForms* | *ConsoleAdminAddGameToProjectResult* | |
| *ConsoleAdminApi* | **BatchUpdateDispatchConfig** | *BatchUpdateDispatchConfigForms* | *ConsoleAdminBatchUpdateDispatchConfigResult* | 批量更新游戏各自调度配置 |
| *ConsoleAdminApi* | **CreateGame** | *CreateGameForms* | *ConsoleAdminCreateGameResult* | |
| *ConsoleAdminApi* | **CreateOrder** | *CreateOrderForms* | *ConsoleAdminCreateOrderResult* | 订单下单 |
| *ConsoleAdminApi* | **CreateProject** | *CreateProjectForms* | *ConsoleAdminCreateProjectResult* | |
| *ConsoleAdminApi* | **DeleteGame** | *DeleteGameForms* | *ConsoleAdminDeleteGameResult* | |
| *ConsoleAdminApi* | **DeleteGameVersion** | *DeleteGameVersionForms* | *ConsoleAdminDeleteGameVersionResult* | |
| *ConsoleAdminApi* | **DeleteProject** | *DeleteProjectForms* | *ConsoleAdminDeleteProjectResult* | |
| *ConsoleAdminApi* | **GetBillFlowInfo** | *GetBillFlowInfoForms* | *ConsoleAdminGetBillFlowInfoResult* | |
| *ConsoleAdminApi* | **GetGameInstanceContainerRatio** | *GetGameInstanceContainerRatioForms* | *ConsoleAdminGetGameInstanceContainerRatioResult* | |
| *ConsoleAdminApi* | **GetGameRecommendedInstance** | *GetGameRecommendedInstanceForms* | *ConsoleAdminGetGameRecommendedInstanceResult* | |
| *ConsoleAdminApi* | **GetGameVersion** | *GetGameVersionForms* | *ConsoleAdminGetGameVersionResult* | |
| *ConsoleAdminApi* | **GetGameVersionProgress** | *GetGameVersionProgressForms* | *ConsoleAdminGetGameVersionProgressResult* | |
| *ConsoleAdminApi* | **GetOrder** | *GetOrderForms* | *ConsoleAdminGetOrderResult* | 查询订单 |
| *ConsoleAdminApi* | **ListActivateableInstances** | *ListActivateableInstancesForms* | *ConsoleAdminListActivateableInstancesResult* | |
| *ConsoleAdminApi* | **ListActivatedInstances** | *ListActivatedInstancesForms* | *ConsoleAdminListActivatedInstancesResult* | |
| *ConsoleAdminApi* | **ListControllersOfGame** | *ListControllersOfGameForms* | *ConsoleAdminListControllersOfGameResult* | |
| *ConsoleAdminApi* | **ListDeployableInstances** | *ListDeployableInstancesForms* | *ConsoleAdminListDeployableInstancesResult* | |
| *ConsoleAdminApi* | **ListGameCcu** | *ListGameCcuForms* | *ConsoleAdminListGameCcuResult* | 分游戏实时并发 |
| *ConsoleAdminApi* | **ListGameDeployDetailsOfProject** | *ListGameDeployDetailsOfProjectForms* | *ConsoleAdminListGameDeployDetailsOfProjectResult* | 获取项目下游戏部署版本信息。 |
| *ConsoleAdminApi* | **ListGameVersions** | *ListGameVersionsForms* | *ConsoleAdminListGameVersionsResult* | |
| *ConsoleAdminApi* | **ListGames** | *ListGamesForms* | *ConsoleAdminListGamesResult* | |
| *ConsoleAdminApi* | **ListInstancesOfProject** | *ListInstancesOfProjectForms* | *ConsoleAdminListInstancesOfProjectResult* | 分页获取项目中的实例 |
| *ConsoleAdminApi* | **ListMonthBill** | *ListMonthBillForms* | *ConsoleAdminListMonthBillResult* | 月度账单列表 |
| *ConsoleAdminApi* | **ListProjects** | *ListProjectsForms* | *ConsoleAdminListProjectsResult* | |
| *ConsoleAdminApi* | **ListVersionDeployInstances** | *ListVersionDeployInstancesForms* | *ConsoleAdminListVersionDeployInstancesResult* | 获取项目下游戏版本的部署实例信息。 |
| *ConsoleAdminApi* | **QueryAdaptResultByVersionId** | *QueryAdaptResultByVersionIdForms* | *ConsoleAdminQueryAdaptResultByVersionIdResult* | 查询适配结果 |
| *ConsoleAdminApi* | **RecommendSpecification** | *RecommendSpecificationForms* | *ConsoleAdminRecommendSpecificationResult* | |
| *ConsoleAdminApi* | **RemoveGameFromProject** | *RemoveGameFromProjectForms* | *ConsoleAdminRemoveGameFromProjectResult* | |
| *ConsoleAdminApi* | **RtOverView** | *RtOverViewForms* | *ConsoleAdminRtOverViewResult* | 实时并发数 |
| *ConsoleAdminApi* | **RtTrend** | *RtTrendForms* | *ConsoleAdminRtTrendResult* | 实时并发趋势图 |
| *ConsoleAdminApi* | **SubmitDeployment** | *SubmitDeploymentForms* | *ConsoleAdminSubmitDeploymentResult* | |
| *ConsoleAdminApi* | **SubmitRefund** | *SubmitRefundForms* | *ConsoleAdminSubmitRefundResult* | 订单退订 |
| *ConsoleAdminApi* | **UploadGameVersionByDownload** | *UploadGameVersionByDownloadForms* | *ConsoleAdminUploadGameVersionByDownloadResult* | |
| *DispatchApi* | **BatchStopGame** | *BatchStopGameForms* | *BatchStopGameResult* | |
| *DispatchApi* | **CancelGameHang** | *CancelGameHangForms* | *CancelGameHangResult* | 取消游戏挂机 |
| *DispatchApi* | **ClientNotify** | *ClientNotifyForms* | *ClientNotifyResult* | clientNotify |
| *DispatchApi* | **GameNotify** | *GameNotifyForms* | *GameNotifyResult* | 游戏通知接口 |
| *DispatchApi* | **GetGameConcurrency** | *GetGameConcurrencyForms* | *GetGameConcurrencyResult* | 调用GetGameConcurrency获取游戏当前并发数 |
| *DispatchApi* | **GetStock** | *GetStockForms* | *GetStockResult* | 调用GetStock获取游戏当前库存 |
| *DispatchApi* | **GetStopGameToken** | *GetStopGameTokenForms* | *GetStopGameTokenResult* | 全量踢下线获取token |
| *DispatchApi* | **ListGameServerIp** | *ListGameServerIpForms* | *ListGameServerIpResult* | |
| *DispatchApi* | **QueryGameHang** | *QueryGameHangForms* | *QueryGameHangResult* | 查询游戏挂机状态 |
| *DispatchApi* | **QuerySessionStatus** | *QuerySessionStatusForms* | *QuerySessionStatusResult* | 查询会话当前状态 |
| *DispatchApi* | **ReplaceSlot** | *ReplaceSlotForms* | *ReplaceSlotResult* | replaceSlot |
| *DispatchApi* | **SetGameAlive** | *SetGameAliveForms* | *SetGameAliveResult* | 设置游戏可运行时长 |
| *DispatchApi* | **SetGameHang** | *SetGameHangForms* | *SetGameHangResult* | 设置游戏挂机 |
| *DispatchApi* | **StopGame** | *StopGameForms* | *StopGameResult* | 服务端发起,停止某个用户的某个游戏的某个会话 |
| *DispatchApi* | **StopPreopenContainer** | *StopPreopenContainerForms* | *StopPreopenContainerResult* | 停止预开容器 |
| *DispatchApi* | **TryToGetSlot** | *TryToGetSlotForms* | *TryToGetSlotResult* | 为用户调度分配游戏容器,容器一旦分配成功会被锁住,一段时间内不再分配给其他用户,过期释放。 |
| *DispatchApi* | **TryToGetSlots** | *TryToGetSlotsForms* | *TryToGetSlotsResult* | tryToGetSlots |
| *DispatchApi* | **UpdatePreopenStrategy** | *UpdatePreopenStrategyForms* | *UpdatePreopenStrategyResult* | 更新预开预起策略 |
| *LiveApi* | **QueryStatus** | *QueryStatusForms* | *LiveQueryStatusResult* | |
| *LiveApi* | **StartGameLive** | *StartGameLiveForms* | *LiveStartGameLiveResult* | |
| *LiveApi* | **StopGameLive** | *StopGameLiveForms* | *LiveStopGameLiveResult* | |
| *MultiplayApi* | **Close** | *CloseForms* | *MultiplayCloseResult* | |
| *MultiplayApi* | **Init** | *InitForms* | *MultiplayInitResult* | |
| *MultiplayApi* | **Join** | *JoinForms* | *MultiplayJoinResult* | |
| *MultiplayApi* | **Leave** | *LeaveForms* | *MultiplayLeaveResult* | |
| *MultiplayApi* | **Modify** | *ModifyForms* | *MultiplayModifyResult* | |
| *MultiplayApi* | **Query** | *QueryForms* | *MultiplayQueryResult* | |
| *TokenApi* | **GetPair** | | *GetPairResult* | 获取临时安全令牌(二元组) |
| *TokenApi* | **GetTriple** | | *GetTripleResult* | 获取临时安全令牌 |
| *UsercontrollerApi* | **DeleteGameArchive** | *DeleteGameArchiveForms* | *UsercontrollerDeleteGameArchiveResult* | |
| *UsercontrollerApi* | **GetGameTrialSurplusDuration** | *GetGameTrialSurplusDurationForms* | *UsercontrollerGetGameTrialSurplusDurationResult* | |
| *UsercontrollerApi* | **GetUserGameArchive** | *GetUserGameArchiveForms* | *UsercontrollerGetUserGameArchiveResult* | |
| *UsercontrollerApi* | **ListLatestGameArchive** | *ListLatestGameArchiveForms* | *UsercontrollerListLatestGameArchiveResult* | |
| *UsercontrollerApi* | **RestoreGameArchive** | *RestoreGameArchiveForms* | *UsercontrollerRestoreGameArchiveResult* | |
| *UsercontrollerApi* | **UpdateGameArchiveTagStatus** | *UpdateGameArchiveTagStatusForms* | *UsercontrollerUpdateGameArchiveTagStatusResult* | |

## License
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Copyright (c) 2009-present, Alibaba Cloud All rights reserved.


188 changes: 188 additions & 0 deletions client/api/adapt_api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
// Package client
/*
* YuanJing OpenAPI SDK for Go
*
*
*/
package api

import (
"github.com/aliyun/alibabacloud-yjopenapi-go-client/client/model"
"io/ioutil"
"net/http"
"net/url"
"strings"
)

type AdaptApiService service


// CreateAndSubmitAll
/*
* createAndSubmitAll
* @param varForms model.AdaptCreateAndSubmitAllForms
*/
func (s *AdaptApiService) CreateAndSubmitAll(
varForms *model.AdaptCreateAndSubmitAllForms,
) (model.AdaptCreateAndSubmitAllResult, *http.Response, error) {
var (
varHttpMethod = strings.ToUpper("Post")
varReturnValue model.AdaptCreateAndSubmitAllResult
)

// create path and map variables
varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/adapt/createAndSubmitAll"

varHeaderParams := make(map[string]string)
varQueryParams := url.Values{}
varFormParams := url.Values{}

// to determine the Content-Type header
varHttpContentTypes := []string{"application/x-www-form-urlencoded"}

// set Content-Type header
varHttpContentType := selectHeaderContentType(varHttpContentTypes)
if varHttpContentType != "" {
varHeaderParams["Content-Type"] = varHttpContentType
}

// to determine the Accept header
varHttpHeaderAccepts := []string{"application/json"}

// set Accept header
varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts)
if varHttpHeaderAccept != "" {
varHeaderParams["Accept"] = varHttpHeaderAccept
}
if varForms != nil && varForms.GameId != nil {
varFormParams.Add("gameId", parameterToString(*varForms.GameId, ""))
}
if varForms != nil && varForms.GameName != nil {
varFormParams.Add("gameName", parameterToString(*varForms.GameName, ""))
}
if varForms != nil && varForms.GameVersionId != nil {
varFormParams.Add("gameVersionId", parameterToString(*varForms.GameVersionId, ""))
}
if varForms != nil && varForms.GameVersion != nil {
varFormParams.Add("gameVersion", parameterToString(*varForms.GameVersion, ""))
}
if varForms != nil && varForms.ResolutionList != nil {
varFormParams.Add("resolutionList", parameterToString(*varForms.ResolutionList, ""))
}
if varForms != nil && varForms.FrameRateList != nil {
varFormParams.Add("frameRateList", parameterToString(*varForms.FrameRateList, ""))
}
varFormParams.Add("platformType", parameterToString(varForms.PlatformType, ""))
varFormParams.Add("sourcePlatform", parameterToString(varForms.SourcePlatform, ""))
varFormParams.Add("records", parameterToString(varForms.Records, ""))
varFormParams.Add("mixGameVersionId", parameterToString(varForms.MixGameVersionId, ""))
varFormParams.Add("mixGameId", parameterToString(varForms.MixGameId, ""))

r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams)
if err != nil {
return varReturnValue, nil, err
}

varHttpResponse, err := s.client.callAPI(r)
if err != nil || varHttpResponse == nil {
return varReturnValue, varHttpResponse, err
}

defer varHttpResponse.Body.Close()
varBody, err := ioutil.ReadAll(varHttpResponse.Body)
if err != nil {
return varReturnValue, varHttpResponse, err
}

if varHttpResponse.StatusCode < 300 {
// If we succeed, return the data, otherwise pass on to decode error.
err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type"))
if err == nil {
return varReturnValue, varHttpResponse, err
}
}

if varHttpResponse.StatusCode >= 300 {
newErr := GenericError{
body: varBody,
error: varHttpResponse.Status,
}
return varReturnValue, varHttpResponse, newErr
}

return varReturnValue, varHttpResponse, nil
}

// QueryRequestById
/*
* queryRequestById
* @param varForms model.AdaptQueryRequestByIdForms
*/
func (s *AdaptApiService) QueryRequestById(
varForms *model.AdaptQueryRequestByIdForms,
) (model.AdaptQueryRequestByIdResult, *http.Response, error) {
var (
varHttpMethod = strings.ToUpper("Post")
varReturnValue model.AdaptQueryRequestByIdResult
)

// create path and map variables
varPath := s.client.cfg.Scheme + "://" + s.client.cfg.Host + "/adapt/queryRequestById"

varHeaderParams := make(map[string]string)
varQueryParams := url.Values{}
varFormParams := url.Values{}

// to determine the Content-Type header
varHttpContentTypes := []string{"application/x-www-form-urlencoded"}

// set Content-Type header
varHttpContentType := selectHeaderContentType(varHttpContentTypes)
if varHttpContentType != "" {
varHeaderParams["Content-Type"] = varHttpContentType
}

// to determine the Accept header
varHttpHeaderAccepts := []string{"application/json"}

// set Accept header
varHttpHeaderAccept := selectHeaderAccept(varHttpHeaderAccepts)
if varHttpHeaderAccept != "" {
varHeaderParams["Accept"] = varHttpHeaderAccept
}
varFormParams.Add("id", parameterToString(varForms.Id, ""))

r, err := s.client.prepareRequest(varPath, varHttpMethod, varHeaderParams, varQueryParams, varFormParams)
if err != nil {
return varReturnValue, nil, err
}

varHttpResponse, err := s.client.callAPI(r)
if err != nil || varHttpResponse == nil {
return varReturnValue, varHttpResponse, err
}

defer varHttpResponse.Body.Close()
varBody, err := ioutil.ReadAll(varHttpResponse.Body)
if err != nil {
return varReturnValue, varHttpResponse, err
}

if varHttpResponse.StatusCode < 300 {
// If we succeed, return the data, otherwise pass on to decode error.
err = s.client.decode(&varReturnValue, varBody, varHttpResponse.Header.Get("Content-Type"))
if err == nil {
return varReturnValue, varHttpResponse, err
}
}

if varHttpResponse.StatusCode >= 300 {
newErr := GenericError{
body: varBody,
error: varHttpResponse.Status,
}
return varReturnValue, varHttpResponse, newErr
}

return varReturnValue, varHttpResponse, nil
}
Loading