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.20240202 #25

Open
wants to merge 224 commits into
base: base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
02938b1
feat: update
xfslove Feb 1, 2024
272f860
feat: update
xfslove Feb 1, 2024
59c4f04
feat: update
xfslove Feb 1, 2024
aaea77b
feat: update
xfslove Feb 1, 2024
8790382
feat: update
xfslove Feb 1, 2024
e8b5f08
feat: update
xfslove Feb 1, 2024
63d7d45
feat: update
xfslove Feb 1, 2024
9262111
feat: update
xfslove Feb 1, 2024
3bae265
feat: update
xfslove Feb 1, 2024
532f87a
feat: update
xfslove Feb 1, 2024
dbca7a5
feat: update
xfslove Feb 1, 2024
190fe02
feat: update
xfslove Feb 1, 2024
ea907e7
feat: update
xfslove Feb 1, 2024
01c5696
feat: update
xfslove Feb 1, 2024
a431763
feat: update
xfslove Feb 1, 2024
b928f30
feat: update
xfslove Feb 1, 2024
a92fe13
feat: update
xfslove Feb 1, 2024
b619a6a
feat: update
xfslove Feb 1, 2024
d2d65c3
feat: update
xfslove Feb 1, 2024
3e7e7b6
feat: update
xfslove Feb 1, 2024
cff6952
feat: update
xfslove Feb 1, 2024
e87ef40
feat: update
xfslove Feb 1, 2024
594af18
feat: update
xfslove Feb 1, 2024
4359bbe
feat: update
xfslove Feb 1, 2024
7598671
feat: update
xfslove Feb 1, 2024
a8d2e92
feat: update
xfslove Feb 1, 2024
bdc221e
feat: update
xfslove Feb 1, 2024
ccb2b43
feat: update
xfslove Feb 1, 2024
9895631
feat: update
xfslove Feb 1, 2024
a811c38
feat: update
xfslove Feb 1, 2024
72d2c76
feat: update
xfslove Feb 1, 2024
f39c4dc
feat: update
xfslove Feb 1, 2024
7c4d22e
feat: update
xfslove Feb 1, 2024
6136c18
feat: update
xfslove Feb 1, 2024
a9a913b
feat: update
xfslove Feb 1, 2024
276f5b0
feat: update
xfslove Feb 1, 2024
797b46c
feat: update
xfslove Feb 1, 2024
6c05e14
feat: update
xfslove Feb 1, 2024
f00c9b7
feat: update
xfslove Feb 1, 2024
42d77c6
feat: update
xfslove Feb 1, 2024
de0f915
feat: update
xfslove Feb 1, 2024
e518d4a
feat: update
xfslove Feb 1, 2024
54a257f
feat: update
xfslove Feb 1, 2024
7787e90
feat: update
xfslove Feb 1, 2024
06cc9af
feat: update
xfslove Feb 1, 2024
9404446
feat: update
xfslove Feb 1, 2024
f12fc9c
feat: update
xfslove Feb 1, 2024
df201cb
feat: update
xfslove Feb 1, 2024
da68fa2
feat: update
xfslove Feb 1, 2024
b5dd5f0
feat: update
xfslove Feb 1, 2024
a422fb5
feat: update
xfslove Feb 1, 2024
dd03852
feat: update
xfslove Feb 1, 2024
2351bc3
feat: update
xfslove Feb 1, 2024
eeb3d65
feat: update
xfslove Feb 1, 2024
68de9f6
feat: update
xfslove Feb 1, 2024
8f5ee05
feat: update
xfslove Feb 1, 2024
7faf8f5
feat: update
xfslove Feb 1, 2024
abb81f7
feat: update
xfslove Feb 1, 2024
f06cecf
feat: update
xfslove Feb 1, 2024
be9ef07
feat: update
xfslove Feb 1, 2024
68f0050
feat: update
xfslove Feb 1, 2024
1054fba
feat: update
xfslove Feb 1, 2024
5556660
feat: update
xfslove Feb 1, 2024
868f84d
feat: update
xfslove Feb 1, 2024
6c6ae1b
feat: update
xfslove Feb 1, 2024
2a24e42
feat: update
xfslove Feb 1, 2024
5382170
feat: update
xfslove Feb 1, 2024
62db5b2
feat: update
xfslove Feb 1, 2024
b6c08dd
feat: update
xfslove Feb 1, 2024
59a1932
feat: update
xfslove Feb 1, 2024
4ef2322
feat: update
xfslove Feb 1, 2024
aba69e3
feat: update
xfslove Feb 1, 2024
67bf2c5
feat: update
xfslove Feb 1, 2024
06ea39c
feat: update
xfslove Feb 1, 2024
24d450b
feat: update
xfslove Feb 1, 2024
2e67bfd
feat: update
xfslove Feb 1, 2024
3108d5d
feat: update
xfslove Feb 1, 2024
ba98039
feat: update
xfslove Feb 1, 2024
a5aa579
feat: update
xfslove Feb 1, 2024
67d8cd0
feat: update
xfslove Feb 1, 2024
6b68827
feat: update
xfslove Feb 1, 2024
5accec3
feat: update
xfslove Feb 1, 2024
a2165f5
feat: update
xfslove Feb 1, 2024
0b16a2a
feat: update
xfslove Feb 1, 2024
73a548e
feat: update
xfslove Feb 1, 2024
d11bac8
feat: update
xfslove Feb 1, 2024
4c475f1
feat: update
xfslove Feb 1, 2024
66053e7
feat: update
xfslove Feb 1, 2024
1a44ef3
feat: update
xfslove Feb 1, 2024
716960f
feat: update
xfslove Feb 1, 2024
8036245
feat: update
xfslove Feb 1, 2024
5b4998b
feat: update
xfslove Feb 1, 2024
de709ee
feat: update
xfslove Feb 1, 2024
7014fab
feat: update
xfslove Feb 1, 2024
6e0ab81
feat: update
xfslove Feb 1, 2024
4a026b5
feat: update
xfslove Feb 1, 2024
b9bf3df
feat: update
xfslove Feb 1, 2024
480b590
feat: update
xfslove Feb 1, 2024
78250d3
feat: update
xfslove Feb 1, 2024
936aa50
feat: update
xfslove Feb 1, 2024
c67a619
feat: update
xfslove Feb 1, 2024
0b30374
feat: update
xfslove Feb 1, 2024
a52c1ee
feat: update
xfslove Feb 1, 2024
5b268e6
feat: update
xfslove Feb 1, 2024
5775960
feat: update
xfslove Feb 1, 2024
2fa786c
feat: update
xfslove Feb 1, 2024
15569ed
feat: update
xfslove Feb 1, 2024
6450425
feat: update
xfslove Feb 1, 2024
3438745
feat: update
xfslove Feb 1, 2024
5fd57f2
feat: update
xfslove Feb 1, 2024
1882d37
feat: update
xfslove Feb 1, 2024
f41f3a2
feat: update
xfslove Feb 1, 2024
5a1a715
feat: update
xfslove Feb 1, 2024
e3d24ff
feat: update
xfslove Feb 1, 2024
a140ccd
feat: update
xfslove Feb 1, 2024
0855d00
feat: update
xfslove Feb 1, 2024
ce17d33
feat: update
xfslove Feb 1, 2024
7d0cae2
feat: update
xfslove Feb 1, 2024
c7b57e8
feat: update
xfslove Feb 1, 2024
e2503d4
feat: update
xfslove Feb 1, 2024
f5b0f0e
feat: update
xfslove Feb 1, 2024
469f40e
feat: update
xfslove Feb 1, 2024
7fd3b7c
feat: update
xfslove Feb 1, 2024
0e82dad
feat: update
xfslove Feb 1, 2024
8f2cceb
feat: update
xfslove Feb 1, 2024
4308b33
feat: update
xfslove Feb 1, 2024
9817d13
feat: update
xfslove Feb 1, 2024
934a522
feat: update
xfslove Feb 1, 2024
e3b2035
feat: update
xfslove Feb 1, 2024
f14a590
feat: update
xfslove Feb 1, 2024
d867ee5
feat: update
xfslove Feb 1, 2024
4b1f635
feat: update
xfslove Feb 1, 2024
eac63e2
feat: update
xfslove Feb 1, 2024
8f86c38
feat: update
xfslove Feb 1, 2024
cdf39c6
feat: update
xfslove Feb 1, 2024
cd54059
feat: update
xfslove Feb 1, 2024
96a9af9
feat: update
xfslove Feb 1, 2024
a563168
feat: update
xfslove Feb 1, 2024
0a1da33
feat: update
xfslove Feb 1, 2024
38d25da
feat: update
xfslove Feb 1, 2024
24b55d9
feat: update
xfslove Feb 1, 2024
5212980
feat: update
xfslove Feb 1, 2024
7c7f499
feat: update
xfslove Feb 1, 2024
97f9103
feat: update
xfslove Feb 1, 2024
497d7e6
feat: update
xfslove Feb 1, 2024
718ed2f
feat: update
xfslove Feb 1, 2024
4e4e0c5
feat: update
xfslove Feb 1, 2024
a2c3a73
feat: update
xfslove Feb 1, 2024
527e6ff
feat: update
xfslove Feb 1, 2024
2e46ccb
feat: update
xfslove Feb 1, 2024
391991b
feat: update
xfslove Feb 1, 2024
e051e0f
feat: update
xfslove Feb 1, 2024
518f2df
feat: update
xfslove Feb 1, 2024
c417d41
feat: update
xfslove Feb 1, 2024
814286d
feat: update
xfslove Feb 1, 2024
1aff026
feat: update
xfslove Feb 1, 2024
9a3c6e3
feat: update
xfslove Feb 1, 2024
d2c53ed
feat: update
xfslove Feb 1, 2024
cc19c4c
feat: update
xfslove Feb 1, 2024
4f54416
feat: update
xfslove Feb 1, 2024
261dc8d
feat: update
xfslove Feb 1, 2024
6800d0a
feat: update
xfslove Feb 1, 2024
f4f0901
feat: update
xfslove Feb 1, 2024
cea1973
feat: update
xfslove Feb 1, 2024
b8672ff
feat: update
xfslove Feb 1, 2024
643717a
feat: update
xfslove Feb 1, 2024
8caca26
feat: update
xfslove Feb 1, 2024
fbaa1d8
feat: update
xfslove Feb 1, 2024
787ea66
feat: update
xfslove Feb 1, 2024
3a12844
feat: update
xfslove Feb 1, 2024
69529ce
feat: update
xfslove Feb 1, 2024
6664081
feat: update
xfslove Feb 1, 2024
6c434a1
feat: update
xfslove Feb 1, 2024
0a6912e
feat: update
xfslove Feb 1, 2024
a9349ea
feat: update
xfslove Feb 1, 2024
21402c7
feat: update
xfslove Feb 1, 2024
e7ac9e7
feat: update
xfslove Feb 1, 2024
7b73612
feat: update
xfslove Feb 1, 2024
4a16adc
feat: update
xfslove Feb 1, 2024
320791d
feat: update
xfslove Feb 1, 2024
96195e3
feat: update
xfslove Feb 1, 2024
1f60b94
feat: update
xfslove Feb 1, 2024
d708907
feat: update
xfslove Feb 1, 2024
7cc664f
feat: update
xfslove Feb 1, 2024
c20a689
feat: update
xfslove Feb 1, 2024
c219071
feat: update
xfslove Feb 1, 2024
beb71a8
feat: update
xfslove Feb 1, 2024
47f1280
feat: update
xfslove Feb 1, 2024
73f11b2
feat: update
xfslove Feb 1, 2024
b859f31
feat: update
xfslove Feb 1, 2024
0c6740f
feat: update
xfslove Feb 1, 2024
927d7c7
feat: update
xfslove Feb 1, 2024
b978e32
feat: update
xfslove Feb 1, 2024
d728e03
feat: update
xfslove Feb 1, 2024
679a844
feat: update
xfslove Feb 1, 2024
ad9200f
feat: update
xfslove Feb 1, 2024
5765261
feat: update
xfslove Feb 1, 2024
c2b3502
feat: update
xfslove Feb 1, 2024
8830628
feat: update
xfslove Feb 1, 2024
ad3d817
feat: update
xfslove Feb 1, 2024
c9b003d
feat: update
xfslove Feb 1, 2024
aeda086
feat: update
xfslove Feb 1, 2024
f377d12
feat: update
xfslove Feb 1, 2024
bbf076c
feat: update
xfslove Feb 1, 2024
522d95f
feat: update
xfslove Feb 1, 2024
ce667a6
feat: update
xfslove Feb 1, 2024
805f06e
feat: update
xfslove Feb 1, 2024
8d31cb3
feat: update
xfslove Feb 1, 2024
1c8f46a
feat: update
xfslove Feb 1, 2024
4346b51
feat: update
xfslove Feb 1, 2024
75331b8
feat: update
xfslove Feb 1, 2024
fc18ec4
feat: update
xfslove Feb 1, 2024
3647238
feat: update
xfslove Feb 1, 2024
32279d0
feat: update
xfslove Feb 1, 2024
0c5d841
feat: update
xfslove Feb 1, 2024
b8eed81
feat: update
xfslove Feb 1, 2024
c604491
feat: update
xfslove Feb 1, 2024
2382e1a
feat: update
xfslove Feb 1, 2024
ec19060
feat: update
xfslove Feb 1, 2024
1417f17
feat: update
xfslove Feb 1, 2024
01824a1
feat: update
xfslove Feb 1, 2024
0de70f0
feat: update
xfslove Feb 1, 2024
abd1347
feat: update
xfslove Feb 1, 2024
edd0f27
feat: update
xfslove Feb 1, 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/
114 changes: 114 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
![](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.20240202
```

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