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.20240525 #32

Open
wants to merge 255 commits into
base: base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
255 commits
Select commit Hold shift + click to select a range
0834fe7
feat: update
xfslove May 24, 2024
7231475
feat: update
xfslove May 24, 2024
f6165e6
feat: update
xfslove May 24, 2024
a44f840
feat: update
xfslove May 24, 2024
69ee4a4
feat: update
xfslove May 24, 2024
bf60494
feat: update
xfslove May 24, 2024
096c373
feat: update
xfslove May 24, 2024
3b45970
feat: update
xfslove May 24, 2024
8e2e4ef
feat: update
xfslove May 24, 2024
63e4a52
feat: update
xfslove May 24, 2024
2976dab
feat: update
xfslove May 24, 2024
4616716
feat: update
xfslove May 24, 2024
b79807d
feat: update
xfslove May 24, 2024
9612a3e
feat: update
xfslove May 24, 2024
add6005
feat: update
xfslove May 24, 2024
cee50e9
feat: update
xfslove May 24, 2024
481491c
feat: update
xfslove May 24, 2024
f17282c
feat: update
xfslove May 24, 2024
4b544b0
feat: update
xfslove May 24, 2024
638bb09
feat: update
xfslove May 24, 2024
51a5664
feat: update
xfslove May 24, 2024
87910e3
feat: update
xfslove May 24, 2024
b1077eb
feat: update
xfslove May 24, 2024
cbc2e32
feat: update
xfslove May 24, 2024
c652133
feat: update
xfslove May 24, 2024
3fa7bcd
feat: update
xfslove May 24, 2024
190885e
feat: update
xfslove May 24, 2024
2a83b84
feat: update
xfslove May 24, 2024
6ca18d0
feat: update
xfslove May 24, 2024
d48f51e
feat: update
xfslove May 24, 2024
9fa2e4e
feat: update
xfslove May 24, 2024
2063622
feat: update
xfslove May 24, 2024
65be357
feat: update
xfslove May 24, 2024
d1b917b
feat: update
xfslove May 24, 2024
c2ff7dd
feat: update
xfslove May 24, 2024
6ffc1e4
feat: update
xfslove May 24, 2024
af2c75d
feat: update
xfslove May 24, 2024
10252a4
feat: update
xfslove May 24, 2024
e22c2e2
feat: update
xfslove May 24, 2024
5b63c25
feat: update
xfslove May 24, 2024
6fa7511
feat: update
xfslove May 24, 2024
63619c3
feat: update
xfslove May 24, 2024
a1f1954
feat: update
xfslove May 24, 2024
74ae9a1
feat: update
xfslove May 24, 2024
51d80ed
feat: update
xfslove May 24, 2024
0a1d98f
feat: update
xfslove May 24, 2024
f25aaf4
feat: update
xfslove May 24, 2024
37a7727
feat: update
xfslove May 24, 2024
0b0ba56
feat: update
xfslove May 24, 2024
45d27a2
feat: update
xfslove May 24, 2024
0f6a099
feat: update
xfslove May 24, 2024
3da0644
feat: update
xfslove May 24, 2024
e87e0bf
feat: update
xfslove May 24, 2024
7113364
feat: update
xfslove May 24, 2024
e9a8f87
feat: update
xfslove May 24, 2024
10f39f6
feat: update
xfslove May 24, 2024
a17ad87
feat: update
xfslove May 24, 2024
04cdad7
feat: update
xfslove May 24, 2024
3f3e90c
feat: update
xfslove May 24, 2024
f4feb50
feat: update
xfslove May 24, 2024
d150943
feat: update
xfslove May 24, 2024
064f7ef
feat: update
xfslove May 24, 2024
6dfe3e8
feat: update
xfslove May 24, 2024
babfdcc
feat: update
xfslove May 24, 2024
69eb8d2
feat: update
xfslove May 24, 2024
dfbcb18
feat: update
xfslove May 24, 2024
604178a
feat: update
xfslove May 24, 2024
ce778c7
feat: update
xfslove May 24, 2024
3b3b308
feat: update
xfslove May 24, 2024
e399dd1
feat: update
xfslove May 24, 2024
f43f552
feat: update
xfslove May 24, 2024
219c03d
feat: update
xfslove May 24, 2024
d15547d
feat: update
xfslove May 24, 2024
cde24be
feat: update
xfslove May 24, 2024
91cfd45
feat: update
xfslove May 24, 2024
ec33994
feat: update
xfslove May 24, 2024
55c9ffa
feat: update
xfslove May 24, 2024
717e98f
feat: update
xfslove May 24, 2024
5dcdb02
feat: update
xfslove May 24, 2024
8b1822c
feat: update
xfslove May 24, 2024
5c9b1c7
feat: update
xfslove May 24, 2024
cc4c2dc
feat: update
xfslove May 24, 2024
36caa08
feat: update
xfslove May 24, 2024
421601b
feat: update
xfslove May 24, 2024
1f49ee1
feat: update
xfslove May 24, 2024
d25f1f9
feat: update
xfslove May 24, 2024
10c18ff
feat: update
xfslove May 24, 2024
f692b61
feat: update
xfslove May 24, 2024
c54ad6f
feat: update
xfslove May 24, 2024
f66b7fa
feat: update
xfslove May 24, 2024
aa15c95
feat: update
xfslove May 24, 2024
646289d
feat: update
xfslove May 24, 2024
f584b79
feat: update
xfslove May 24, 2024
c343501
feat: update
xfslove May 24, 2024
b2f8f79
feat: update
xfslove May 24, 2024
ae18f69
feat: update
xfslove May 24, 2024
c514dd4
feat: update
xfslove May 24, 2024
b9996a9
feat: update
xfslove May 24, 2024
f698cdf
feat: update
xfslove May 24, 2024
c62548c
feat: update
xfslove May 24, 2024
29ef23e
feat: update
xfslove May 24, 2024
dd83eca
feat: update
xfslove May 24, 2024
9f3ca25
feat: update
xfslove May 24, 2024
ddff65e
feat: update
xfslove May 24, 2024
50c484c
feat: update
xfslove May 24, 2024
f1f63cc
feat: update
xfslove May 24, 2024
7b85046
feat: update
xfslove May 24, 2024
eb0dbf7
feat: update
xfslove May 24, 2024
9087ac9
feat: update
xfslove May 24, 2024
f6d2913
feat: update
xfslove May 24, 2024
4a65b77
feat: update
xfslove May 24, 2024
ca2c21d
feat: update
xfslove May 24, 2024
c93f5a3
feat: update
xfslove May 24, 2024
e9af9e7
feat: update
xfslove May 24, 2024
3d82adf
feat: update
xfslove May 24, 2024
1b15d2b
feat: update
xfslove May 24, 2024
eab62c9
feat: update
xfslove May 24, 2024
c6b7d25
feat: update
xfslove May 24, 2024
b6ef315
feat: update
xfslove May 24, 2024
c7499a4
feat: update
xfslove May 24, 2024
09b718d
feat: update
xfslove May 24, 2024
2697357
feat: update
xfslove May 24, 2024
def4e00
feat: update
xfslove May 24, 2024
ab3105f
feat: update
xfslove May 24, 2024
7ce9879
feat: update
xfslove May 24, 2024
b5126e0
feat: update
xfslove May 24, 2024
717694d
feat: update
xfslove May 24, 2024
a031583
feat: update
xfslove May 24, 2024
0e5ab98
feat: update
xfslove May 24, 2024
8ceff56
feat: update
xfslove May 24, 2024
d8825ad
feat: update
xfslove May 24, 2024
b0a486a
feat: update
xfslove May 24, 2024
04197ca
feat: update
xfslove May 24, 2024
ff5a27a
feat: update
xfslove May 24, 2024
39b65ca
feat: update
xfslove May 24, 2024
a9ef71b
feat: update
xfslove May 24, 2024
22bd617
feat: update
xfslove May 24, 2024
280c7cb
feat: update
xfslove May 24, 2024
9680532
feat: update
xfslove May 24, 2024
b6c0abb
feat: update
xfslove May 24, 2024
5de6b14
feat: update
xfslove May 24, 2024
468f0ec
feat: update
xfslove May 24, 2024
090198b
feat: update
xfslove May 24, 2024
2fe0fa8
feat: update
xfslove May 24, 2024
aff57ae
feat: update
xfslove May 24, 2024
7e4b202
feat: update
xfslove May 24, 2024
2a52654
feat: update
xfslove May 24, 2024
17ff24a
feat: update
xfslove May 24, 2024
88c3599
feat: update
xfslove May 24, 2024
63e4a02
feat: update
xfslove May 24, 2024
9d03adb
feat: update
xfslove May 24, 2024
ca62086
feat: update
xfslove May 24, 2024
28f77e4
feat: update
xfslove May 24, 2024
43a766a
feat: update
xfslove May 24, 2024
e2843ed
feat: update
xfslove May 24, 2024
c3ffec9
feat: update
xfslove May 24, 2024
507302e
feat: update
xfslove May 24, 2024
c754aef
feat: update
xfslove May 24, 2024
6556052
feat: update
xfslove May 24, 2024
73f9c94
feat: update
xfslove May 24, 2024
42566b5
feat: update
xfslove May 24, 2024
7298923
feat: update
xfslove May 24, 2024
4001e18
feat: update
xfslove May 24, 2024
77a4d52
feat: update
xfslove May 24, 2024
af642ce
feat: update
xfslove May 24, 2024
51f84dd
feat: update
xfslove May 24, 2024
17d37c5
feat: update
xfslove May 24, 2024
f5b4620
feat: update
xfslove May 24, 2024
358156b
feat: update
xfslove May 24, 2024
435eda7
feat: update
xfslove May 24, 2024
6fe0313
feat: update
xfslove May 24, 2024
a77ce55
feat: update
xfslove May 24, 2024
095db79
feat: update
xfslove May 24, 2024
b520940
feat: update
xfslove May 24, 2024
27abb62
feat: update
xfslove May 24, 2024
af473bc
feat: update
xfslove May 24, 2024
e00f6d0
feat: update
xfslove May 24, 2024
7dba6cc
feat: update
xfslove May 24, 2024
2a88381
feat: update
xfslove May 24, 2024
f8db2d8
feat: update
xfslove May 24, 2024
7bbbcbe
feat: update
xfslove May 24, 2024
9ecf12b
feat: update
xfslove May 24, 2024
1181c92
feat: update
xfslove May 24, 2024
6d8e9bd
feat: update
xfslove May 24, 2024
e76ab1e
feat: update
xfslove May 24, 2024
3aa17f7
feat: update
xfslove May 24, 2024
820ff16
feat: update
xfslove May 24, 2024
4f81771
feat: update
xfslove May 24, 2024
31edba9
feat: update
xfslove May 24, 2024
85c3b53
feat: update
xfslove May 24, 2024
6da6d79
feat: update
xfslove May 24, 2024
96aabb6
feat: update
xfslove May 24, 2024
198c27f
feat: update
xfslove May 24, 2024
fc4c1c5
feat: update
xfslove May 24, 2024
91544d4
feat: update
xfslove May 24, 2024
c69279b
feat: update
xfslove May 24, 2024
9a5227d
feat: update
xfslove May 24, 2024
7685a36
feat: update
xfslove May 24, 2024
8138c6c
feat: update
xfslove May 24, 2024
58d96e9
feat: update
xfslove May 24, 2024
fa343ae
feat: update
xfslove May 24, 2024
7ba0ad0
feat: update
xfslove May 24, 2024
a21dd6d
feat: update
xfslove May 24, 2024
f1b9ae9
feat: update
xfslove May 24, 2024
505bd58
feat: update
xfslove May 24, 2024
b901ccf
feat: update
xfslove May 24, 2024
c7a6e23
feat: update
xfslove May 24, 2024
04d0dee
feat: update
xfslove May 24, 2024
8f6eb28
feat: update
xfslove May 24, 2024
3398051
feat: update
xfslove May 24, 2024
0f51649
feat: update
xfslove May 24, 2024
959bfc7
feat: update
xfslove May 24, 2024
e820f1e
feat: update
xfslove May 24, 2024
ae2634f
feat: update
xfslove May 24, 2024
5acc047
feat: update
xfslove May 24, 2024
f10c17d
feat: update
xfslove May 24, 2024
af277e6
feat: update
xfslove May 24, 2024
b7d55de
feat: update
xfslove May 24, 2024
0019c47
feat: update
xfslove May 24, 2024
f375322
feat: update
xfslove May 24, 2024
1c0eaa1
feat: update
xfslove May 24, 2024
2a2a53a
feat: update
xfslove May 24, 2024
3524d57
feat: update
xfslove May 24, 2024
7cf7044
feat: update
xfslove May 24, 2024
6ef4540
feat: update
xfslove May 24, 2024
7d5526c
feat: update
xfslove May 24, 2024
48f1613
feat: update
xfslove May 24, 2024
c720af2
feat: update
xfslove May 24, 2024
c9e71a7
feat: update
xfslove May 24, 2024
aef4b81
feat: update
xfslove May 24, 2024
76e96ab
feat: update
xfslove May 24, 2024
e40d808
feat: update
xfslove May 24, 2024
673c89d
feat: update
xfslove May 24, 2024
1ef3697
feat: update
xfslove May 24, 2024
cdf5913
feat: update
xfslove May 24, 2024
57bcdb3
feat: update
xfslove May 24, 2024
31b4d03
feat: update
xfslove May 24, 2024
222def9
feat: update
xfslove May 24, 2024
38cffdb
feat: update
xfslove May 24, 2024
3668456
feat: update
xfslove May 24, 2024
abf9205
feat: update
xfslove May 24, 2024
2ba0ff7
feat: update
xfslove May 24, 2024
e137f8e
feat: update
xfslove May 24, 2024
b65141d
feat: update
xfslove May 24, 2024
d6acb8c
feat: update
xfslove May 24, 2024
475b807
feat: update
xfslove May 24, 2024
1179485
feat: update
xfslove May 24, 2024
d35d691
feat: update
xfslove May 24, 2024
e3ea508
feat: update
xfslove May 24, 2024
9a16e25
feat: update
xfslove May 24, 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/
119 changes: 119 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
![](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.20240525
```

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