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.20240703 #35

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
a0eb7e0
feat: update
xfslove Jul 2, 2024
1b2360c
feat: update
xfslove Jul 2, 2024
7b1a03c
feat: update
xfslove Jul 2, 2024
a1d96f0
feat: update
xfslove Jul 2, 2024
925aac6
feat: update
xfslove Jul 2, 2024
1a4deb3
feat: update
xfslove Jul 2, 2024
b79c106
feat: update
xfslove Jul 2, 2024
3367e7e
feat: update
xfslove Jul 2, 2024
806fbe0
feat: update
xfslove Jul 2, 2024
ab21c5b
feat: update
xfslove Jul 2, 2024
bac6bc6
feat: update
xfslove Jul 2, 2024
e212721
feat: update
xfslove Jul 2, 2024
081f805
feat: update
xfslove Jul 2, 2024
ba656c0
feat: update
xfslove Jul 2, 2024
517e047
feat: update
xfslove Jul 2, 2024
9c68400
feat: update
xfslove Jul 2, 2024
b2cc470
feat: update
xfslove Jul 2, 2024
c007417
feat: update
xfslove Jul 2, 2024
9fe95d8
feat: update
xfslove Jul 2, 2024
d9c05ae
feat: update
xfslove Jul 2, 2024
fc7bb16
feat: update
xfslove Jul 2, 2024
0d1c3f7
feat: update
xfslove Jul 2, 2024
40b8237
feat: update
xfslove Jul 2, 2024
af0c3c3
feat: update
xfslove Jul 2, 2024
6b46b81
feat: update
xfslove Jul 2, 2024
c0b383a
feat: update
xfslove Jul 2, 2024
2d6ff09
feat: update
xfslove Jul 2, 2024
3ed4497
feat: update
xfslove Jul 2, 2024
b6f8b0a
feat: update
xfslove Jul 2, 2024
120c3b5
feat: update
xfslove Jul 2, 2024
359ddea
feat: update
xfslove Jul 2, 2024
1c505ba
feat: update
xfslove Jul 2, 2024
966aca8
feat: update
xfslove Jul 2, 2024
727ca2d
feat: update
xfslove Jul 2, 2024
8ebbaa0
feat: update
xfslove Jul 2, 2024
9375f50
feat: update
xfslove Jul 2, 2024
a4b748c
feat: update
xfslove Jul 2, 2024
8d97b6c
feat: update
xfslove Jul 2, 2024
a34666c
feat: update
xfslove Jul 2, 2024
edac9b0
feat: update
xfslove Jul 2, 2024
113b935
feat: update
xfslove Jul 2, 2024
a28af80
feat: update
xfslove Jul 2, 2024
f4abda0
feat: update
xfslove Jul 2, 2024
4f26c49
feat: update
xfslove Jul 2, 2024
85c84df
feat: update
xfslove Jul 2, 2024
02a7808
feat: update
xfslove Jul 2, 2024
9c9211a
feat: update
xfslove Jul 2, 2024
4e43a6d
feat: update
xfslove Jul 2, 2024
94b8809
feat: update
xfslove Jul 2, 2024
1536f8e
feat: update
xfslove Jul 2, 2024
78800a1
feat: update
xfslove Jul 2, 2024
ca584af
feat: update
xfslove Jul 2, 2024
008fce8
feat: update
xfslove Jul 2, 2024
5bbbed4
feat: update
xfslove Jul 2, 2024
6ed2911
feat: update
xfslove Jul 2, 2024
3ef577c
feat: update
xfslove Jul 2, 2024
76c7ee4
feat: update
xfslove Jul 2, 2024
38674ca
feat: update
xfslove Jul 2, 2024
f85343d
feat: update
xfslove Jul 2, 2024
9377b14
feat: update
xfslove Jul 2, 2024
9b59af4
feat: update
xfslove Jul 2, 2024
076bfef
feat: update
xfslove Jul 2, 2024
1ac63c5
feat: update
xfslove Jul 2, 2024
18238c3
feat: update
xfslove Jul 2, 2024
c6dbfc1
feat: update
xfslove Jul 2, 2024
7f20d73
feat: update
xfslove Jul 2, 2024
d422bb1
feat: update
xfslove Jul 2, 2024
05e1b97
feat: update
xfslove Jul 2, 2024
c24be49
feat: update
xfslove Jul 2, 2024
6c3643f
feat: update
xfslove Jul 2, 2024
f7d97e6
feat: update
xfslove Jul 2, 2024
adcc697
feat: update
xfslove Jul 2, 2024
ab9b67b
feat: update
xfslove Jul 2, 2024
fde022e
feat: update
xfslove Jul 2, 2024
26bef79
feat: update
xfslove Jul 2, 2024
09d14f8
feat: update
xfslove Jul 2, 2024
bc711ef
feat: update
xfslove Jul 2, 2024
d6d825a
feat: update
xfslove Jul 2, 2024
dc614de
feat: update
xfslove Jul 2, 2024
f10f528
feat: update
xfslove Jul 2, 2024
e4cbe4a
feat: update
xfslove Jul 2, 2024
07604ee
feat: update
xfslove Jul 2, 2024
765e381
feat: update
xfslove Jul 2, 2024
82d2c14
feat: update
xfslove Jul 2, 2024
a9f67e0
feat: update
xfslove Jul 2, 2024
744b42a
feat: update
xfslove Jul 2, 2024
fe9d875
feat: update
xfslove Jul 2, 2024
7b85ec0
feat: update
xfslove Jul 2, 2024
b960c12
feat: update
xfslove Jul 2, 2024
3fede83
feat: update
xfslove Jul 2, 2024
9d5e708
feat: update
xfslove Jul 2, 2024
e876131
feat: update
xfslove Jul 2, 2024
33b4d2b
feat: update
xfslove Jul 2, 2024
bfbb9d3
feat: update
xfslove Jul 2, 2024
88a2aff
feat: update
xfslove Jul 2, 2024
9529fdc
feat: update
xfslove Jul 2, 2024
b40b7a9
feat: update
xfslove Jul 2, 2024
e3c6403
feat: update
xfslove Jul 2, 2024
b43ab8e
feat: update
xfslove Jul 2, 2024
87b7052
feat: update
xfslove Jul 2, 2024
7706356
feat: update
xfslove Jul 2, 2024
0757790
feat: update
xfslove Jul 2, 2024
d09755d
feat: update
xfslove Jul 2, 2024
b73d48d
feat: update
xfslove Jul 2, 2024
88e25da
feat: update
xfslove Jul 2, 2024
77949ee
feat: update
xfslove Jul 2, 2024
1d22418
feat: update
xfslove Jul 2, 2024
a9f8558
feat: update
xfslove Jul 2, 2024
ebf253c
feat: update
xfslove Jul 2, 2024
097a761
feat: update
xfslove Jul 2, 2024
c98e9ae
feat: update
xfslove Jul 2, 2024
cc514b6
feat: update
xfslove Jul 2, 2024
dd8296d
feat: update
xfslove Jul 2, 2024
716e11e
feat: update
xfslove Jul 2, 2024
8b84f4a
feat: update
xfslove Jul 2, 2024
616df4b
feat: update
xfslove Jul 2, 2024
a16d007
feat: update
xfslove Jul 2, 2024
8e650f8
feat: update
xfslove Jul 2, 2024
fbccd5b
feat: update
xfslove Jul 2, 2024
c815c04
feat: update
xfslove Jul 2, 2024
1373a9b
feat: update
xfslove Jul 2, 2024
242451d
feat: update
xfslove Jul 2, 2024
fd95ea5
feat: update
xfslove Jul 2, 2024
c402157
feat: update
xfslove Jul 2, 2024
b8df496
feat: update
xfslove Jul 2, 2024
7987153
feat: update
xfslove Jul 2, 2024
378ab65
feat: update
xfslove Jul 2, 2024
977819e
feat: update
xfslove Jul 2, 2024
77526c3
feat: update
xfslove Jul 2, 2024
00dcf7f
feat: update
xfslove Jul 2, 2024
670d22c
feat: update
xfslove Jul 2, 2024
73dd606
feat: update
xfslove Jul 2, 2024
07de332
feat: update
xfslove Jul 2, 2024
3108196
feat: update
xfslove Jul 2, 2024
ceca435
feat: update
xfslove Jul 2, 2024
b0cb963
feat: update
xfslove Jul 2, 2024
91828ed
feat: update
xfslove Jul 2, 2024
4e416c0
feat: update
xfslove Jul 2, 2024
4f740ce
feat: update
xfslove Jul 2, 2024
56a8c1b
feat: update
xfslove Jul 2, 2024
d9d24d1
feat: update
xfslove Jul 2, 2024
2784953
feat: update
xfslove Jul 2, 2024
2957b94
feat: update
xfslove Jul 2, 2024
151320f
feat: update
xfslove Jul 2, 2024
a14fbf1
feat: update
xfslove Jul 2, 2024
c0573bb
feat: update
xfslove Jul 2, 2024
0e270e8
feat: update
xfslove Jul 2, 2024
a482ea4
feat: update
xfslove Jul 2, 2024
57cccf2
feat: update
xfslove Jul 2, 2024
f394abe
feat: update
xfslove Jul 2, 2024
bb4ec48
feat: update
xfslove Jul 2, 2024
312d479
feat: update
xfslove Jul 2, 2024
29ba7ef
feat: update
xfslove Jul 2, 2024
a4a9aab
feat: update
xfslove Jul 2, 2024
78611b2
feat: update
xfslove Jul 2, 2024
cd17857
feat: update
xfslove Jul 2, 2024
61a8c5a
feat: update
xfslove Jul 2, 2024
9875f86
feat: update
xfslove Jul 2, 2024
d925813
feat: update
xfslove Jul 2, 2024
81440df
feat: update
xfslove Jul 2, 2024
f9935f6
feat: update
xfslove Jul 2, 2024
2bbbecf
feat: update
xfslove Jul 2, 2024
8cbd911
feat: update
xfslove Jul 2, 2024
9c76e51
feat: update
xfslove Jul 2, 2024
c84b9c5
feat: update
xfslove Jul 2, 2024
7cae769
feat: update
xfslove Jul 2, 2024
9fbf872
feat: update
xfslove Jul 2, 2024
1007689
feat: update
xfslove Jul 2, 2024
90ca231
feat: update
xfslove Jul 2, 2024
da4c083
feat: update
xfslove Jul 2, 2024
06936c9
feat: update
xfslove Jul 2, 2024
cc9e80d
feat: update
xfslove Jul 2, 2024
df0ce0b
feat: update
xfslove Jul 2, 2024
e00ce10
feat: update
xfslove Jul 2, 2024
b6e82d1
feat: update
xfslove Jul 2, 2024
3bb0cfa
feat: update
xfslove Jul 2, 2024
52499f5
feat: update
xfslove Jul 2, 2024
fc6c439
feat: update
xfslove Jul 2, 2024
9e7c065
feat: update
xfslove Jul 2, 2024
ecf7ddf
feat: update
xfslove Jul 2, 2024
21a1db3
feat: update
xfslove Jul 2, 2024
c6bb19e
feat: update
xfslove Jul 2, 2024
9df94aa
feat: update
xfslove Jul 2, 2024
6edcaf5
feat: update
xfslove Jul 2, 2024
259c03b
feat: update
xfslove Jul 2, 2024
e6fd232
feat: update
xfslove Jul 2, 2024
d07d9dd
feat: update
xfslove Jul 2, 2024
905a086
feat: update
xfslove Jul 2, 2024
916a184
feat: update
xfslove Jul 2, 2024
c4e662d
feat: update
xfslove Jul 2, 2024
2ee931a
feat: update
xfslove Jul 2, 2024
fbc7bac
feat: update
xfslove Jul 2, 2024
8c4e105
feat: update
xfslove Jul 2, 2024
18a3926
feat: update
xfslove Jul 2, 2024
30529ff
feat: update
xfslove Jul 2, 2024
84c6ce3
feat: update
xfslove Jul 2, 2024
5773c20
feat: update
xfslove Jul 2, 2024
a211732
feat: update
xfslove Jul 2, 2024
886b923
feat: update
xfslove Jul 2, 2024
ba22823
feat: update
xfslove Jul 2, 2024
ae1fa15
feat: update
xfslove Jul 2, 2024
c7f550c
feat: update
xfslove Jul 2, 2024
b9d824e
feat: update
xfslove Jul 2, 2024
c298cc0
feat: update
xfslove Jul 2, 2024
3783a99
feat: update
xfslove Jul 2, 2024
97b4a27
feat: update
xfslove Jul 2, 2024
d546afc
feat: update
xfslove Jul 2, 2024
5e94b6c
feat: update
xfslove Jul 2, 2024
cf2bdc5
feat: update
xfslove Jul 2, 2024
dc3f441
feat: update
xfslove Jul 2, 2024
0bcfb34
feat: update
xfslove Jul 2, 2024
7521823
feat: update
xfslove Jul 2, 2024
1560225
feat: update
xfslove Jul 2, 2024
2a76d6c
feat: update
xfslove Jul 2, 2024
774f93d
feat: update
xfslove Jul 2, 2024
926479a
feat: update
xfslove Jul 2, 2024
21671f0
feat: update
xfslove Jul 2, 2024
153ae13
feat: update
xfslove Jul 2, 2024
f45c247
feat: update
xfslove Jul 2, 2024
f61b275
feat: update
xfslove Jul 2, 2024
c00728e
feat: update
xfslove Jul 2, 2024
eefbf02
feat: update
xfslove Jul 2, 2024
06eb1e5
feat: update
xfslove Jul 2, 2024
1bc85ec
feat: update
xfslove Jul 2, 2024
c24f3b8
feat: update
xfslove Jul 2, 2024
0567b2d
feat: update
xfslove Jul 2, 2024
206aedb
feat: update
xfslove Jul 2, 2024
2afa5ba
feat: update
xfslove Jul 2, 2024
b3cfb0f
feat: update
xfslove Jul 2, 2024
fefcad2
feat: update
xfslove Jul 2, 2024
ab8fdc6
feat: update
xfslove Jul 2, 2024
046337b
feat: update
xfslove Jul 2, 2024
19ec157
feat: update
xfslove Jul 2, 2024
0be1b02
feat: update
xfslove Jul 2, 2024
7023a04
feat: update
xfslove Jul 2, 2024
066ca6c
feat: update
xfslove Jul 2, 2024
4bb2820
feat: update
xfslove Jul 2, 2024
b909dfc
feat: update
xfslove Jul 2, 2024
9c64578
feat: update
xfslove Jul 2, 2024
f8c7f39
feat: update
xfslove Jul 2, 2024
b33106c
feat: update
xfslove Jul 2, 2024
04adc46
feat: update
xfslove Jul 2, 2024
18c431d
feat: update
xfslove Jul 2, 2024
62efc37
feat: update
xfslove Jul 2, 2024
dcbd3c9
feat: update
xfslove Jul 2, 2024
7bf3ced
feat: update
xfslove Jul 2, 2024
90db8d3
feat: update
xfslove Jul 2, 2024
c66f382
feat: update
xfslove Jul 2, 2024
84a9dc9
feat: update
xfslove Jul 2, 2024
2d3fcdf
feat: update
xfslove Jul 2, 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/
122 changes: 122 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
![](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.20240703
```

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

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

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


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

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

type AdaptApiService service


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

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

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

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

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

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

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

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

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

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

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

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

return varReturnValue, varHttpResponse, nil
}

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

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

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

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

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

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

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

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

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

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

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

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

return varReturnValue, varHttpResponse, nil
}
Loading