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.20240306 #29

Open
wants to merge 235 commits into
base: base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
bddd4a6
feat: update
xfslove Mar 5, 2024
fb7da9a
feat: update
xfslove Mar 5, 2024
fcd4e3b
feat: update
xfslove Mar 5, 2024
4bf872c
feat: update
xfslove Mar 5, 2024
59702c1
feat: update
xfslove Mar 5, 2024
87a7ecc
feat: update
xfslove Mar 5, 2024
d17a45b
feat: update
xfslove Mar 5, 2024
12dd763
feat: update
xfslove Mar 5, 2024
ee224ec
feat: update
xfslove Mar 5, 2024
9c65b90
feat: update
xfslove Mar 5, 2024
a0e6eea
feat: update
xfslove Mar 5, 2024
383bb7f
feat: update
xfslove Mar 5, 2024
cfe1596
feat: update
xfslove Mar 5, 2024
bb063ab
feat: update
xfslove Mar 5, 2024
f837aa5
feat: update
xfslove Mar 5, 2024
d6aa5cd
feat: update
xfslove Mar 5, 2024
eabec00
feat: update
xfslove Mar 5, 2024
e0f9724
feat: update
xfslove Mar 5, 2024
1810c85
feat: update
xfslove Mar 5, 2024
5ba88ed
feat: update
xfslove Mar 5, 2024
9962714
feat: update
xfslove Mar 5, 2024
41eb049
feat: update
xfslove Mar 5, 2024
2836ede
feat: update
xfslove Mar 5, 2024
51921ea
feat: update
xfslove Mar 5, 2024
503c6de
feat: update
xfslove Mar 5, 2024
59c12df
feat: update
xfslove Mar 5, 2024
7027bf4
feat: update
xfslove Mar 5, 2024
05179a5
feat: update
xfslove Mar 5, 2024
49345b1
feat: update
xfslove Mar 5, 2024
934ec53
feat: update
xfslove Mar 5, 2024
6b26add
feat: update
xfslove Mar 5, 2024
48ac356
feat: update
xfslove Mar 5, 2024
61ca716
feat: update
xfslove Mar 5, 2024
fb8511b
feat: update
xfslove Mar 5, 2024
bbc608c
feat: update
xfslove Mar 5, 2024
d0e808b
feat: update
xfslove Mar 5, 2024
298ed5d
feat: update
xfslove Mar 5, 2024
f5c5822
feat: update
xfslove Mar 5, 2024
5cf048d
feat: update
xfslove Mar 5, 2024
61701f6
feat: update
xfslove Mar 5, 2024
d87504c
feat: update
xfslove Mar 5, 2024
983a7e8
feat: update
xfslove Mar 5, 2024
cce9117
feat: update
xfslove Mar 5, 2024
02ecd07
feat: update
xfslove Mar 5, 2024
4dcc16e
feat: update
xfslove Mar 5, 2024
c523cd9
feat: update
xfslove Mar 5, 2024
218e23c
feat: update
xfslove Mar 5, 2024
0a9836a
feat: update
xfslove Mar 5, 2024
5947b3d
feat: update
xfslove Mar 5, 2024
6b167a1
feat: update
xfslove Mar 5, 2024
fb82c7a
feat: update
xfslove Mar 5, 2024
7a1908c
feat: update
xfslove Mar 5, 2024
cf51df4
feat: update
xfslove Mar 5, 2024
7f32244
feat: update
xfslove Mar 5, 2024
80e83ab
feat: update
xfslove Mar 5, 2024
1d66022
feat: update
xfslove Mar 5, 2024
95ddff4
feat: update
xfslove Mar 5, 2024
dd0b4cd
feat: update
xfslove Mar 5, 2024
707bc1e
feat: update
xfslove Mar 5, 2024
9a426de
feat: update
xfslove Mar 5, 2024
8887217
feat: update
xfslove Mar 5, 2024
b643752
feat: update
xfslove Mar 5, 2024
21b7a5d
feat: update
xfslove Mar 5, 2024
195b0f5
feat: update
xfslove Mar 5, 2024
fbc0e88
feat: update
xfslove Mar 5, 2024
7396838
feat: update
xfslove Mar 5, 2024
78d851d
feat: update
xfslove Mar 5, 2024
dbe3d3d
feat: update
xfslove Mar 5, 2024
2b664e8
feat: update
xfslove Mar 5, 2024
9a5d926
feat: update
xfslove Mar 5, 2024
085a945
feat: update
xfslove Mar 5, 2024
5a595f5
feat: update
xfslove Mar 5, 2024
1e9abc6
feat: update
xfslove Mar 5, 2024
f281854
feat: update
xfslove Mar 5, 2024
eddbb42
feat: update
xfslove Mar 5, 2024
be96668
feat: update
xfslove Mar 5, 2024
46d9938
feat: update
xfslove Mar 5, 2024
d3fe48f
feat: update
xfslove Mar 5, 2024
a5f0f12
feat: update
xfslove Mar 5, 2024
2162d22
feat: update
xfslove Mar 5, 2024
17231e7
feat: update
xfslove Mar 5, 2024
a519887
feat: update
xfslove Mar 5, 2024
a7b8fe8
feat: update
xfslove Mar 5, 2024
a04a344
feat: update
xfslove Mar 5, 2024
9cc32d5
feat: update
xfslove Mar 5, 2024
561f413
feat: update
xfslove Mar 5, 2024
af541af
feat: update
xfslove Mar 5, 2024
389fa12
feat: update
xfslove Mar 5, 2024
9eb4535
feat: update
xfslove Mar 5, 2024
943af80
feat: update
xfslove Mar 5, 2024
128ac98
feat: update
xfslove Mar 5, 2024
ff45644
feat: update
xfslove Mar 5, 2024
cb75b41
feat: update
xfslove Mar 5, 2024
2a2f27f
feat: update
xfslove Mar 5, 2024
53824d7
feat: update
xfslove Mar 5, 2024
7ce112f
feat: update
xfslove Mar 5, 2024
f464b8d
feat: update
xfslove Mar 5, 2024
92abf0b
feat: update
xfslove Mar 5, 2024
81ed648
feat: update
xfslove Mar 5, 2024
03f08c5
feat: update
xfslove Mar 5, 2024
ef3de56
feat: update
xfslove Mar 5, 2024
de7563e
feat: update
xfslove Mar 5, 2024
ac17439
feat: update
xfslove Mar 5, 2024
e195ad1
feat: update
xfslove Mar 5, 2024
67678f4
feat: update
xfslove Mar 5, 2024
118559e
feat: update
xfslove Mar 5, 2024
7fd5585
feat: update
xfslove Mar 5, 2024
20983d7
feat: update
xfslove Mar 5, 2024
2524a6d
feat: update
xfslove Mar 5, 2024
265c81c
feat: update
xfslove Mar 5, 2024
c8b1922
feat: update
xfslove Mar 5, 2024
3546e51
feat: update
xfslove Mar 5, 2024
1d8cd86
feat: update
xfslove Mar 5, 2024
15012f7
feat: update
xfslove Mar 5, 2024
12db336
feat: update
xfslove Mar 5, 2024
fcbdca2
feat: update
xfslove Mar 5, 2024
83ad492
feat: update
xfslove Mar 5, 2024
2297a78
feat: update
xfslove Mar 5, 2024
3dbeea2
feat: update
xfslove Mar 5, 2024
6aa2303
feat: update
xfslove Mar 5, 2024
ca84c89
feat: update
xfslove Mar 5, 2024
4e06b2b
feat: update
xfslove Mar 5, 2024
f3451b5
feat: update
xfslove Mar 5, 2024
4e1487f
feat: update
xfslove Mar 5, 2024
a25ef29
feat: update
xfslove Mar 5, 2024
1c07e43
feat: update
xfslove Mar 5, 2024
e2eca23
feat: update
xfslove Mar 5, 2024
380c0c8
feat: update
xfslove Mar 5, 2024
689f3a7
feat: update
xfslove Mar 5, 2024
3ecbcb4
feat: update
xfslove Mar 5, 2024
2ae9103
feat: update
xfslove Mar 5, 2024
5653a19
feat: update
xfslove Mar 5, 2024
bf95e2a
feat: update
xfslove Mar 5, 2024
758e118
feat: update
xfslove Mar 5, 2024
86f6cfe
feat: update
xfslove Mar 5, 2024
13a996f
feat: update
xfslove Mar 5, 2024
7dc7e90
feat: update
xfslove Mar 5, 2024
82d3a18
feat: update
xfslove Mar 5, 2024
32e2caf
feat: update
xfslove Mar 5, 2024
1ef1462
feat: update
xfslove Mar 5, 2024
010dd42
feat: update
xfslove Mar 5, 2024
a32e45d
feat: update
xfslove Mar 5, 2024
b416035
feat: update
xfslove Mar 5, 2024
61c323a
feat: update
xfslove Mar 5, 2024
e9aa25a
feat: update
xfslove Mar 5, 2024
20d1fa9
feat: update
xfslove Mar 5, 2024
b4fe7f1
feat: update
xfslove Mar 5, 2024
7f893f1
feat: update
xfslove Mar 5, 2024
3a1d788
feat: update
xfslove Mar 5, 2024
78e29d7
feat: update
xfslove Mar 5, 2024
f57263e
feat: update
xfslove Mar 5, 2024
fb28908
feat: update
xfslove Mar 5, 2024
64233a4
feat: update
xfslove Mar 5, 2024
072b7b2
feat: update
xfslove Mar 5, 2024
745dec0
feat: update
xfslove Mar 5, 2024
b05bebe
feat: update
xfslove Mar 5, 2024
3ebeaa6
feat: update
xfslove Mar 5, 2024
d61f62b
feat: update
xfslove Mar 5, 2024
121b3b3
feat: update
xfslove Mar 5, 2024
0d41329
feat: update
xfslove Mar 5, 2024
8d93835
feat: update
xfslove Mar 5, 2024
ce6c2f1
feat: update
xfslove Mar 5, 2024
935c31c
feat: update
xfslove Mar 5, 2024
516b5b7
feat: update
xfslove Mar 5, 2024
9cefe30
feat: update
xfslove Mar 5, 2024
27e5900
feat: update
xfslove Mar 5, 2024
2fc45cb
feat: update
xfslove Mar 5, 2024
d9d06ad
feat: update
xfslove Mar 5, 2024
a1d25d1
feat: update
xfslove Mar 5, 2024
816e5a1
feat: update
xfslove Mar 5, 2024
444144a
feat: update
xfslove Mar 5, 2024
acae45c
feat: update
xfslove Mar 5, 2024
e1977c3
feat: update
xfslove Mar 5, 2024
82bcd8a
feat: update
xfslove Mar 5, 2024
b9b9e0f
feat: update
xfslove Mar 5, 2024
70e33bf
feat: update
xfslove Mar 5, 2024
4872069
feat: update
xfslove Mar 5, 2024
2a9e280
feat: update
xfslove Mar 5, 2024
120b253
feat: update
xfslove Mar 5, 2024
dbb6b25
feat: update
xfslove Mar 5, 2024
93dbd52
feat: update
xfslove Mar 5, 2024
80b1adf
feat: update
xfslove Mar 5, 2024
7b2c2bf
feat: update
xfslove Mar 5, 2024
ce194af
feat: update
xfslove Mar 5, 2024
c606e60
feat: update
xfslove Mar 5, 2024
e8e05bb
feat: update
xfslove Mar 5, 2024
97fc133
feat: update
xfslove Mar 5, 2024
efe6961
feat: update
xfslove Mar 5, 2024
e3f4f7f
feat: update
xfslove Mar 5, 2024
e0efc71
feat: update
xfslove Mar 5, 2024
6433496
feat: update
xfslove Mar 5, 2024
866568b
feat: update
xfslove Mar 5, 2024
5311547
feat: update
xfslove Mar 5, 2024
6aeaee0
feat: update
xfslove Mar 5, 2024
c46a849
feat: update
xfslove Mar 5, 2024
937329d
feat: update
xfslove Mar 5, 2024
38b37fd
feat: update
xfslove Mar 5, 2024
d181523
feat: update
xfslove Mar 5, 2024
2b1d9d4
feat: update
xfslove Mar 5, 2024
c168174
feat: update
xfslove Mar 5, 2024
6bbf006
feat: update
xfslove Mar 5, 2024
f349ab0
feat: update
xfslove Mar 5, 2024
a6c187b
feat: update
xfslove Mar 5, 2024
4cc201a
feat: update
xfslove Mar 5, 2024
ee2ef3b
feat: update
xfslove Mar 5, 2024
9f329b6
feat: update
xfslove Mar 5, 2024
5a63b60
feat: update
xfslove Mar 5, 2024
94af386
feat: update
xfslove Mar 5, 2024
b771a7e
feat: update
xfslove Mar 5, 2024
d8dd1e2
feat: update
xfslove Mar 5, 2024
d446452
feat: update
xfslove Mar 5, 2024
6a587ce
feat: update
xfslove Mar 5, 2024
eb55bd3
feat: update
xfslove Mar 5, 2024
d37d797
feat: update
xfslove Mar 5, 2024
abfbca9
feat: update
xfslove Mar 5, 2024
2acef2a
feat: update
xfslove Mar 5, 2024
7b75f1b
feat: update
xfslove Mar 5, 2024
ac7f1ba
feat: update
xfslove Mar 5, 2024
903f275
feat: update
xfslove Mar 5, 2024
2fe12ad
feat: update
xfslove Mar 5, 2024
1d3a093
feat: update
xfslove Mar 5, 2024
560f2bd
feat: update
xfslove Mar 5, 2024
2ccd9ed
feat: update
xfslove Mar 5, 2024
e0c1aeb
feat: update
xfslove Mar 5, 2024
dd21fe7
feat: update
xfslove Mar 5, 2024
d5afd9f
feat: update
xfslove Mar 5, 2024
63f7bdd
feat: update
xfslove Mar 5, 2024
37e8fc2
feat: update
xfslove Mar 5, 2024
26d38cf
feat: update
xfslove Mar 5, 2024
4cdc281
feat: update
xfslove Mar 5, 2024
6d86229
feat: update
xfslove Mar 5, 2024
16b623b
feat: update
xfslove Mar 5, 2024
9634491
feat: update
xfslove Mar 5, 2024
918afc9
feat: update
xfslove Mar 5, 2024
406311f
feat: update
xfslove Mar 5, 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/
115 changes: 115 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
![](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.20240306
```

## 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 |
| *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* | **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* | **ListGameDeployDetailsOfProject** | *ListGameDeployDetailsOfProjectForms* | *ConsoleAdminListGameDeployDetailsOfProjectResult* | 获取项目下游戏部署版本信息。 |
| *ConsoleAdminApi* | **ListGameVersions** | *ListGameVersionsForms* | *ConsoleAdminListGameVersionsResult* | |
| *ConsoleAdminApi* | **ListGames** | *ListGamesForms* | *ConsoleAdminListGamesResult* | |
| *ConsoleAdminApi* | **ListInstancesOfProject** | *ListInstancesOfProjectForms* | *ConsoleAdminListInstancesOfProjectResult* | 分页获取项目中的实例 |
| *ConsoleAdminApi* | **ListProjects** | *ListProjectsForms* | *ConsoleAdminListProjectsResult* | |
| *ConsoleAdminApi* | **ListVersionDeployInstances** | *ListVersionDeployInstancesForms* | *ConsoleAdminListVersionDeployInstancesResult* | 获取项目下游戏版本的部署实例信息。 |
| *ConsoleAdminApi* | **QueryAdaptResultByVersionId** | *QueryAdaptResultByVersionIdForms* | *ConsoleAdminQueryAdaptResultByVersionIdResult* | 查询适配结果 |
| *ConsoleAdminApi* | **RecommendSpecification** | *RecommendSpecificationForms* | *ConsoleAdminRecommendSpecificationResult* | |
| *ConsoleAdminApi* | **RemoveGameFromProject** | *RemoveGameFromProjectForms* | *ConsoleAdminRemoveGameFromProjectResult* | |
| *ConsoleAdminApi* | **SubmitDeployment** | *SubmitDeploymentForms* | *ConsoleAdminSubmitDeploymentResult* | |
| *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* | **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