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.20240223 #26

Open
wants to merge 231 commits into
base: base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
e578f6b
feat: update
xfslove Feb 22, 2024
4574ecb
feat: update
xfslove Feb 22, 2024
2356879
feat: update
xfslove Feb 22, 2024
4a193e8
feat: update
xfslove Feb 22, 2024
8881789
feat: update
xfslove Feb 22, 2024
cb8c6a6
feat: update
xfslove Feb 22, 2024
baf2f1e
feat: update
xfslove Feb 22, 2024
c310066
feat: update
xfslove Feb 22, 2024
22097f1
feat: update
xfslove Feb 22, 2024
10d4cb5
feat: update
xfslove Feb 22, 2024
e67a5c8
feat: update
xfslove Feb 22, 2024
99c27cd
feat: update
xfslove Feb 22, 2024
8d45296
feat: update
xfslove Feb 22, 2024
eac1885
feat: update
xfslove Feb 22, 2024
ab3230d
feat: update
xfslove Feb 22, 2024
2b5c2d6
feat: update
xfslove Feb 22, 2024
e96349d
feat: update
xfslove Feb 22, 2024
1bb1373
feat: update
xfslove Feb 22, 2024
685b713
feat: update
xfslove Feb 22, 2024
538c77f
feat: update
xfslove Feb 22, 2024
dae5e25
feat: update
xfslove Feb 22, 2024
9b6f316
feat: update
xfslove Feb 22, 2024
de9e19a
feat: update
xfslove Feb 22, 2024
c722257
feat: update
xfslove Feb 22, 2024
1868680
feat: update
xfslove Feb 22, 2024
10b84c5
feat: update
xfslove Feb 22, 2024
9c750ef
feat: update
xfslove Feb 22, 2024
25d7d81
feat: update
xfslove Feb 22, 2024
c3ab608
feat: update
xfslove Feb 22, 2024
9b830d4
feat: update
xfslove Feb 22, 2024
110c021
feat: update
xfslove Feb 22, 2024
edd0daf
feat: update
xfslove Feb 22, 2024
60365df
feat: update
xfslove Feb 22, 2024
ad16e78
feat: update
xfslove Feb 22, 2024
c81797d
feat: update
xfslove Feb 22, 2024
6c72062
feat: update
xfslove Feb 22, 2024
1add5ff
feat: update
xfslove Feb 22, 2024
49c4aab
feat: update
xfslove Feb 22, 2024
f846469
feat: update
xfslove Feb 22, 2024
437ea92
feat: update
xfslove Feb 22, 2024
d10e26a
feat: update
xfslove Feb 22, 2024
dae8caf
feat: update
xfslove Feb 22, 2024
4786b45
feat: update
xfslove Feb 22, 2024
1b75912
feat: update
xfslove Feb 22, 2024
a252ead
feat: update
xfslove Feb 22, 2024
c7d6d2d
feat: update
xfslove Feb 22, 2024
79a9fe1
feat: update
xfslove Feb 22, 2024
ad70cdf
feat: update
xfslove Feb 22, 2024
0cb8e63
feat: update
xfslove Feb 22, 2024
985eaad
feat: update
xfslove Feb 22, 2024
159116a
feat: update
xfslove Feb 22, 2024
8ee1d50
feat: update
xfslove Feb 22, 2024
3ac74c2
feat: update
xfslove Feb 22, 2024
dc11d5d
feat: update
xfslove Feb 22, 2024
3632e26
feat: update
xfslove Feb 22, 2024
219fca7
feat: update
xfslove Feb 22, 2024
8172346
feat: update
xfslove Feb 22, 2024
181d501
feat: update
xfslove Feb 22, 2024
5ad38fe
feat: update
xfslove Feb 22, 2024
f62e0c3
feat: update
xfslove Feb 22, 2024
ec8f177
feat: update
xfslove Feb 22, 2024
fda8ce1
feat: update
xfslove Feb 22, 2024
901f095
feat: update
xfslove Feb 22, 2024
189ef47
feat: update
xfslove Feb 22, 2024
9b0d816
feat: update
xfslove Feb 22, 2024
6b47000
feat: update
xfslove Feb 22, 2024
1eb9ecb
feat: update
xfslove Feb 22, 2024
d5f5fb1
feat: update
xfslove Feb 22, 2024
4e2a57b
feat: update
xfslove Feb 22, 2024
919bcc3
feat: update
xfslove Feb 22, 2024
4f16a64
feat: update
xfslove Feb 22, 2024
cc85cda
feat: update
xfslove Feb 22, 2024
09270fd
feat: update
xfslove Feb 22, 2024
b084b14
feat: update
xfslove Feb 22, 2024
bdc04b8
feat: update
xfslove Feb 22, 2024
baf029c
feat: update
xfslove Feb 22, 2024
56053cc
feat: update
xfslove Feb 22, 2024
54751bc
feat: update
xfslove Feb 22, 2024
99ce644
feat: update
xfslove Feb 22, 2024
c52664b
feat: update
xfslove Feb 22, 2024
aa76125
feat: update
xfslove Feb 22, 2024
43fadc3
feat: update
xfslove Feb 22, 2024
1ace6e1
feat: update
xfslove Feb 22, 2024
0420901
feat: update
xfslove Feb 22, 2024
690c870
feat: update
xfslove Feb 22, 2024
8bc2e30
feat: update
xfslove Feb 22, 2024
0ecd2af
feat: update
xfslove Feb 22, 2024
54d9c66
feat: update
xfslove Feb 22, 2024
9f8f3f7
feat: update
xfslove Feb 22, 2024
abfa338
feat: update
xfslove Feb 22, 2024
a1c4f14
feat: update
xfslove Feb 22, 2024
c37498b
feat: update
xfslove Feb 22, 2024
d4bd5e0
feat: update
xfslove Feb 22, 2024
508c9eb
feat: update
xfslove Feb 22, 2024
9eef2a5
feat: update
xfslove Feb 22, 2024
9be01ab
feat: update
xfslove Feb 22, 2024
1d2b1d8
feat: update
xfslove Feb 22, 2024
c5654f5
feat: update
xfslove Feb 22, 2024
df84363
feat: update
xfslove Feb 22, 2024
a1f4f93
feat: update
xfslove Feb 22, 2024
bf63c0c
feat: update
xfslove Feb 22, 2024
ed2210e
feat: update
xfslove Feb 22, 2024
7bd27ab
feat: update
xfslove Feb 22, 2024
333c2cc
feat: update
xfslove Feb 22, 2024
08d1f5c
feat: update
xfslove Feb 22, 2024
5be0478
feat: update
xfslove Feb 22, 2024
bcc3df3
feat: update
xfslove Feb 22, 2024
d903c4a
feat: update
xfslove Feb 22, 2024
125552e
feat: update
xfslove Feb 22, 2024
bae608e
feat: update
xfslove Feb 22, 2024
30398d8
feat: update
xfslove Feb 22, 2024
91c0425
feat: update
xfslove Feb 22, 2024
158ab82
feat: update
xfslove Feb 22, 2024
f8067bc
feat: update
xfslove Feb 22, 2024
7e5497a
feat: update
xfslove Feb 22, 2024
f99d994
feat: update
xfslove Feb 22, 2024
00fe24c
feat: update
xfslove Feb 22, 2024
8bf97a5
feat: update
xfslove Feb 22, 2024
912ada5
feat: update
xfslove Feb 22, 2024
ab9a4c5
feat: update
xfslove Feb 22, 2024
87db976
feat: update
xfslove Feb 22, 2024
bf13bcc
feat: update
xfslove Feb 22, 2024
b75152a
feat: update
xfslove Feb 22, 2024
64a413d
feat: update
xfslove Feb 22, 2024
1346b62
feat: update
xfslove Feb 22, 2024
2055971
feat: update
xfslove Feb 22, 2024
e73ff0e
feat: update
xfslove Feb 22, 2024
91ce646
feat: update
xfslove Feb 22, 2024
4a4ee38
feat: update
xfslove Feb 22, 2024
53b2988
feat: update
xfslove Feb 22, 2024
936fa2d
feat: update
xfslove Feb 22, 2024
8344a8b
feat: update
xfslove Feb 22, 2024
15de9d1
feat: update
xfslove Feb 22, 2024
7139473
feat: update
xfslove Feb 22, 2024
d8afbee
feat: update
xfslove Feb 22, 2024
7d25c33
feat: update
xfslove Feb 22, 2024
ec56b28
feat: update
xfslove Feb 22, 2024
87927c8
feat: update
xfslove Feb 22, 2024
dbe3e98
feat: update
xfslove Feb 22, 2024
14c1740
feat: update
xfslove Feb 22, 2024
28b2bca
feat: update
xfslove Feb 22, 2024
3992b4b
feat: update
xfslove Feb 22, 2024
23b0cec
feat: update
xfslove Feb 22, 2024
998e1d2
feat: update
xfslove Feb 22, 2024
e012482
feat: update
xfslove Feb 22, 2024
e376d21
feat: update
xfslove Feb 22, 2024
0bff5ec
feat: update
xfslove Feb 22, 2024
199fd21
feat: update
xfslove Feb 22, 2024
639f813
feat: update
xfslove Feb 22, 2024
6f98138
feat: update
xfslove Feb 22, 2024
3d8c182
feat: update
xfslove Feb 22, 2024
8987fff
feat: update
xfslove Feb 22, 2024
62468cc
feat: update
xfslove Feb 22, 2024
a2dd402
feat: update
xfslove Feb 22, 2024
3decc1c
feat: update
xfslove Feb 22, 2024
28d24a5
feat: update
xfslove Feb 22, 2024
d480dc9
feat: update
xfslove Feb 22, 2024
046a78c
feat: update
xfslove Feb 22, 2024
bb1d28c
feat: update
xfslove Feb 22, 2024
910551c
feat: update
xfslove Feb 22, 2024
3297b8d
feat: update
xfslove Feb 22, 2024
1022c76
feat: update
xfslove Feb 22, 2024
a49874e
feat: update
xfslove Feb 22, 2024
a5bcea7
feat: update
xfslove Feb 22, 2024
e12cb25
feat: update
xfslove Feb 22, 2024
b7b9379
feat: update
xfslove Feb 22, 2024
0c38593
feat: update
xfslove Feb 22, 2024
e8f82a2
feat: update
xfslove Feb 22, 2024
a0f3d66
feat: update
xfslove Feb 22, 2024
f86e7f3
feat: update
xfslove Feb 22, 2024
eb7b036
feat: update
xfslove Feb 22, 2024
68a3573
feat: update
xfslove Feb 22, 2024
813bd00
feat: update
xfslove Feb 22, 2024
deb58d8
feat: update
xfslove Feb 22, 2024
a099a91
feat: update
xfslove Feb 22, 2024
34f6c68
feat: update
xfslove Feb 22, 2024
7159e77
feat: update
xfslove Feb 22, 2024
831da83
feat: update
xfslove Feb 22, 2024
0476133
feat: update
xfslove Feb 22, 2024
35308ec
feat: update
xfslove Feb 22, 2024
5f29176
feat: update
xfslove Feb 22, 2024
d1a19ec
feat: update
xfslove Feb 22, 2024
0a63e48
feat: update
xfslove Feb 22, 2024
0a80317
feat: update
xfslove Feb 22, 2024
018d989
feat: update
xfslove Feb 22, 2024
7d90a43
feat: update
xfslove Feb 22, 2024
12c89f0
feat: update
xfslove Feb 22, 2024
1639d54
feat: update
xfslove Feb 22, 2024
fece6bb
feat: update
xfslove Feb 22, 2024
2287f52
feat: update
xfslove Feb 22, 2024
16ef25c
feat: update
xfslove Feb 22, 2024
0470458
feat: update
xfslove Feb 22, 2024
fc46835
feat: update
xfslove Feb 22, 2024
9c31214
feat: update
xfslove Feb 22, 2024
63f716d
feat: update
xfslove Feb 22, 2024
ab8537a
feat: update
xfslove Feb 22, 2024
6897e33
feat: update
xfslove Feb 22, 2024
e63bd93
feat: update
xfslove Feb 22, 2024
e03fa2a
feat: update
xfslove Feb 22, 2024
38074a7
feat: update
xfslove Feb 22, 2024
0170cff
feat: update
xfslove Feb 22, 2024
00be14c
feat: update
xfslove Feb 22, 2024
831fab7
feat: update
xfslove Feb 22, 2024
55bb184
feat: update
xfslove Feb 22, 2024
c330ffa
feat: update
xfslove Feb 22, 2024
4a74c43
feat: update
xfslove Feb 22, 2024
6e9cc58
feat: update
xfslove Feb 22, 2024
5dac4a1
feat: update
xfslove Feb 22, 2024
cb09ea5
feat: update
xfslove Feb 22, 2024
9b28204
feat: update
xfslove Feb 22, 2024
376e94f
feat: update
xfslove Feb 22, 2024
f55e3cf
feat: update
xfslove Feb 22, 2024
4986399
feat: update
xfslove Feb 22, 2024
9b42ffb
feat: update
xfslove Feb 22, 2024
a4e3730
feat: update
xfslove Feb 22, 2024
a65dddb
feat: update
xfslove Feb 22, 2024
9ac9307
feat: update
xfslove Feb 22, 2024
a5d5f35
feat: update
xfslove Feb 22, 2024
87b7255
feat: update
xfslove Feb 22, 2024
c6b14a4
feat: update
xfslove Feb 22, 2024
0fb13b9
feat: update
xfslove Feb 22, 2024
66af994
feat: update
xfslove Feb 22, 2024
59ad527
feat: update
xfslove Feb 22, 2024
999d341
feat: update
xfslove Feb 22, 2024
e242273
feat: update
xfslove Feb 22, 2024
1f318be
feat: update
xfslove Feb 22, 2024
dd7b704
feat: update
xfslove Feb 22, 2024
290a75f
feat: update
xfslove Feb 22, 2024
71f8019
feat: update
xfslove Feb 22, 2024
3798644
feat: update
xfslove Feb 22, 2024
247a74a
feat: update
xfslove Feb 22, 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.20240223
```

## 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