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.20241219 #45

Open
wants to merge 316 commits into
base: base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
39dd489
feat: update
xfslove Dec 18, 2024
c252656
feat: update
xfslove Dec 18, 2024
4a67a1b
feat: update
xfslove Dec 18, 2024
34f4afd
feat: update
xfslove Dec 18, 2024
56a089c
feat: update
xfslove Dec 18, 2024
9e9c8ce
feat: update
xfslove Dec 18, 2024
842647a
feat: update
xfslove Dec 18, 2024
0761b99
feat: update
xfslove Dec 18, 2024
af8b463
feat: update
xfslove Dec 18, 2024
ba41da0
feat: update
xfslove Dec 18, 2024
fd45528
feat: update
xfslove Dec 18, 2024
a71ff4d
feat: update
xfslove Dec 18, 2024
584b621
feat: update
xfslove Dec 18, 2024
c5e131a
feat: update
xfslove Dec 18, 2024
c9b2278
feat: update
xfslove Dec 18, 2024
bfedb87
feat: update
xfslove Dec 18, 2024
d06ac5f
feat: update
xfslove Dec 18, 2024
d019ff0
feat: update
xfslove Dec 18, 2024
2853600
feat: update
xfslove Dec 18, 2024
fc99c2d
feat: update
xfslove Dec 18, 2024
834c09b
feat: update
xfslove Dec 18, 2024
5c35cdd
feat: update
xfslove Dec 18, 2024
905437b
feat: update
xfslove Dec 18, 2024
f954e7d
feat: update
xfslove Dec 18, 2024
9441c71
feat: update
xfslove Dec 18, 2024
6b79389
feat: update
xfslove Dec 18, 2024
49fb012
feat: update
xfslove Dec 18, 2024
e556071
feat: update
xfslove Dec 18, 2024
7ba7b60
feat: update
xfslove Dec 18, 2024
226f0ad
feat: update
xfslove Dec 18, 2024
e3d7727
feat: update
xfslove Dec 18, 2024
d2707fd
feat: update
xfslove Dec 18, 2024
979b39e
feat: update
xfslove Dec 18, 2024
afa9381
feat: update
xfslove Dec 18, 2024
f49bfe0
feat: update
xfslove Dec 18, 2024
cd1a03e
feat: update
xfslove Dec 18, 2024
565e4e6
feat: update
xfslove Dec 18, 2024
02dad9a
feat: update
xfslove Dec 18, 2024
8f805b7
feat: update
xfslove Dec 18, 2024
a5cfbdc
feat: update
xfslove Dec 18, 2024
3dd3ac7
feat: update
xfslove Dec 18, 2024
6db1044
feat: update
xfslove Dec 18, 2024
27980b4
feat: update
xfslove Dec 18, 2024
e5eafc0
feat: update
xfslove Dec 18, 2024
c359bd7
feat: update
xfslove Dec 18, 2024
7553e29
feat: update
xfslove Dec 18, 2024
631310c
feat: update
xfslove Dec 18, 2024
b459e64
feat: update
xfslove Dec 18, 2024
682feb7
feat: update
xfslove Dec 18, 2024
a5c40b4
feat: update
xfslove Dec 18, 2024
87c65b5
feat: update
xfslove Dec 18, 2024
2206ad8
feat: update
xfslove Dec 18, 2024
c21741d
feat: update
xfslove Dec 18, 2024
5bbf4b9
feat: update
xfslove Dec 18, 2024
9f0b977
feat: update
xfslove Dec 18, 2024
6ee9057
feat: update
xfslove Dec 18, 2024
b594b6f
feat: update
xfslove Dec 18, 2024
4ed841b
feat: update
xfslove Dec 18, 2024
7cdb124
feat: update
xfslove Dec 18, 2024
2780304
feat: update
xfslove Dec 18, 2024
529b179
feat: update
xfslove Dec 18, 2024
d55845a
feat: update
xfslove Dec 18, 2024
a93e819
feat: update
xfslove Dec 18, 2024
e8708a1
feat: update
xfslove Dec 18, 2024
d9a4a7b
feat: update
xfslove Dec 18, 2024
53508df
feat: update
xfslove Dec 18, 2024
50a4341
feat: update
xfslove Dec 18, 2024
0f033e0
feat: update
xfslove Dec 18, 2024
0d12bfa
feat: update
xfslove Dec 18, 2024
2add5c5
feat: update
xfslove Dec 18, 2024
23b4272
feat: update
xfslove Dec 18, 2024
b30e3ec
feat: update
xfslove Dec 18, 2024
cf8fabe
feat: update
xfslove Dec 18, 2024
2750d1f
feat: update
xfslove Dec 18, 2024
76df07f
feat: update
xfslove Dec 18, 2024
7401928
feat: update
xfslove Dec 18, 2024
43e65ba
feat: update
xfslove Dec 18, 2024
59e893e
feat: update
xfslove Dec 18, 2024
925d920
feat: update
xfslove Dec 18, 2024
652f228
feat: update
xfslove Dec 18, 2024
a767c22
feat: update
xfslove Dec 18, 2024
747c4f1
feat: update
xfslove Dec 18, 2024
8e14bcb
feat: update
xfslove Dec 18, 2024
6f2d51c
feat: update
xfslove Dec 18, 2024
fa1875f
feat: update
xfslove Dec 18, 2024
1757dee
feat: update
xfslove Dec 18, 2024
68e4637
feat: update
xfslove Dec 18, 2024
876c7ef
feat: update
xfslove Dec 18, 2024
dd8ff25
feat: update
xfslove Dec 18, 2024
ff20998
feat: update
xfslove Dec 18, 2024
d4f3d43
feat: update
xfslove Dec 18, 2024
6b776ac
feat: update
xfslove Dec 18, 2024
c6b7e35
feat: update
xfslove Dec 18, 2024
d4f406e
feat: update
xfslove Dec 18, 2024
bebc231
feat: update
xfslove Dec 18, 2024
1427c39
feat: update
xfslove Dec 18, 2024
d454f8f
feat: update
xfslove Dec 18, 2024
3b474d0
feat: update
xfslove Dec 18, 2024
05c6f6c
feat: update
xfslove Dec 18, 2024
6aba4af
feat: update
xfslove Dec 18, 2024
8af774b
feat: update
xfslove Dec 18, 2024
7b165f1
feat: update
xfslove Dec 18, 2024
ee2cfdb
feat: update
xfslove Dec 18, 2024
5820806
feat: update
xfslove Dec 18, 2024
73c18ea
feat: update
xfslove Dec 18, 2024
1a79098
feat: update
xfslove Dec 18, 2024
4f7602a
feat: update
xfslove Dec 18, 2024
2345e30
feat: update
xfslove Dec 18, 2024
37d0484
feat: update
xfslove Dec 18, 2024
7019e6a
feat: update
xfslove Dec 18, 2024
1458886
feat: update
xfslove Dec 18, 2024
1f2e1cc
feat: update
xfslove Dec 18, 2024
2c743eb
feat: update
xfslove Dec 18, 2024
5ffdc51
feat: update
xfslove Dec 18, 2024
e6365e5
feat: update
xfslove Dec 18, 2024
c97911f
feat: update
xfslove Dec 18, 2024
542c64c
feat: update
xfslove Dec 18, 2024
ea9b0bd
feat: update
xfslove Dec 18, 2024
dd00fbe
feat: update
xfslove Dec 18, 2024
ccda06b
feat: update
xfslove Dec 18, 2024
bb187d3
feat: update
xfslove Dec 18, 2024
6996f7d
feat: update
xfslove Dec 18, 2024
5e72bb2
feat: update
xfslove Dec 18, 2024
70197e8
feat: update
xfslove Dec 18, 2024
181a0d3
feat: update
xfslove Dec 18, 2024
cd6a8aa
feat: update
xfslove Dec 18, 2024
4d91ac7
feat: update
xfslove Dec 18, 2024
7ca2aba
feat: update
xfslove Dec 18, 2024
bab6c4b
feat: update
xfslove Dec 18, 2024
a3206ad
feat: update
xfslove Dec 18, 2024
61129a8
feat: update
xfslove Dec 18, 2024
93e4f3e
feat: update
xfslove Dec 18, 2024
ce92f4e
feat: update
xfslove Dec 18, 2024
fc4b45f
feat: update
xfslove Dec 18, 2024
938bf08
feat: update
xfslove Dec 18, 2024
4ea5a03
feat: update
xfslove Dec 18, 2024
11ff045
feat: update
xfslove Dec 18, 2024
00ea593
feat: update
xfslove Dec 18, 2024
3d7bc6c
feat: update
xfslove Dec 18, 2024
f1bee96
feat: update
xfslove Dec 18, 2024
c107bbe
feat: update
xfslove Dec 18, 2024
dd7bd33
feat: update
xfslove Dec 18, 2024
151d4e2
feat: update
xfslove Dec 18, 2024
6dc0034
feat: update
xfslove Dec 18, 2024
e550807
feat: update
xfslove Dec 18, 2024
0c03ffd
feat: update
xfslove Dec 18, 2024
f26461f
feat: update
xfslove Dec 18, 2024
47b7259
feat: update
xfslove Dec 18, 2024
cd54c36
feat: update
xfslove Dec 18, 2024
f7bbd73
feat: update
xfslove Dec 18, 2024
7b37724
feat: update
xfslove Dec 18, 2024
cfe077e
feat: update
xfslove Dec 18, 2024
8f5c78f
feat: update
xfslove Dec 18, 2024
76f3754
feat: update
xfslove Dec 18, 2024
908a543
feat: update
xfslove Dec 18, 2024
fc20520
feat: update
xfslove Dec 18, 2024
885f151
feat: update
xfslove Dec 18, 2024
7129b6c
feat: update
xfslove Dec 18, 2024
003670b
feat: update
xfslove Dec 18, 2024
e9a01db
feat: update
xfslove Dec 18, 2024
7a01f0d
feat: update
xfslove Dec 18, 2024
4874fe0
feat: update
xfslove Dec 18, 2024
5a9d550
feat: update
xfslove Dec 18, 2024
8de4417
feat: update
xfslove Dec 18, 2024
8e7e597
feat: update
xfslove Dec 18, 2024
0e82618
feat: update
xfslove Dec 18, 2024
1d5aa61
feat: update
xfslove Dec 18, 2024
26382bb
feat: update
xfslove Dec 18, 2024
5282c8e
feat: update
xfslove Dec 18, 2024
e6a9386
feat: update
xfslove Dec 18, 2024
18f08f2
feat: update
xfslove Dec 18, 2024
71b60f0
feat: update
xfslove Dec 18, 2024
bcd6f57
feat: update
xfslove Dec 18, 2024
fb0a01c
feat: update
xfslove Dec 18, 2024
3d67d05
feat: update
xfslove Dec 18, 2024
8730d42
feat: update
xfslove Dec 18, 2024
bfd64c3
feat: update
xfslove Dec 18, 2024
bb06915
feat: update
xfslove Dec 18, 2024
1006dbd
feat: update
xfslove Dec 18, 2024
5445b5e
feat: update
xfslove Dec 18, 2024
c3e525c
feat: update
xfslove Dec 18, 2024
a649892
feat: update
xfslove Dec 18, 2024
e6050c3
feat: update
xfslove Dec 18, 2024
2492949
feat: update
xfslove Dec 18, 2024
8da6976
feat: update
xfslove Dec 18, 2024
80a231f
feat: update
xfslove Dec 18, 2024
016b9d2
feat: update
xfslove Dec 18, 2024
ad94bab
feat: update
xfslove Dec 18, 2024
ca734ab
feat: update
xfslove Dec 18, 2024
77e8342
feat: update
xfslove Dec 18, 2024
63c9b51
feat: update
xfslove Dec 18, 2024
7e73a10
feat: update
xfslove Dec 18, 2024
9bc0742
feat: update
xfslove Dec 18, 2024
a7e9ef7
feat: update
xfslove Dec 18, 2024
4818e7c
feat: update
xfslove Dec 18, 2024
c0d21bf
feat: update
xfslove Dec 18, 2024
e7b25ea
feat: update
xfslove Dec 18, 2024
2a07064
feat: update
xfslove Dec 18, 2024
cb55c2c
feat: update
xfslove Dec 18, 2024
f27d6ad
feat: update
xfslove Dec 18, 2024
80b767a
feat: update
xfslove Dec 18, 2024
d20e876
feat: update
xfslove Dec 18, 2024
da49882
feat: update
xfslove Dec 18, 2024
af0cead
feat: update
xfslove Dec 18, 2024
debf321
feat: update
xfslove Dec 18, 2024
02c83c8
feat: update
xfslove Dec 18, 2024
87c1563
feat: update
xfslove Dec 18, 2024
5877ad4
feat: update
xfslove Dec 18, 2024
193b664
feat: update
xfslove Dec 18, 2024
3f3ba35
feat: update
xfslove Dec 18, 2024
f8624d6
feat: update
xfslove Dec 18, 2024
0441eae
feat: update
xfslove Dec 18, 2024
d332c69
feat: update
xfslove Dec 18, 2024
0405ee3
feat: update
xfslove Dec 18, 2024
30c3f12
feat: update
xfslove Dec 18, 2024
4a87ab1
feat: update
xfslove Dec 18, 2024
f7ddc1f
feat: update
xfslove Dec 18, 2024
3c7f5c5
feat: update
xfslove Dec 18, 2024
b013ba9
feat: update
xfslove Dec 18, 2024
c9ee1db
feat: update
xfslove Dec 18, 2024
03e83de
feat: update
xfslove Dec 18, 2024
4175357
feat: update
xfslove Dec 18, 2024
036018b
feat: update
xfslove Dec 18, 2024
fede1ef
feat: update
xfslove Dec 18, 2024
7e3c933
feat: update
xfslove Dec 18, 2024
3230acf
feat: update
xfslove Dec 18, 2024
e45de34
feat: update
xfslove Dec 18, 2024
ca179be
feat: update
xfslove Dec 18, 2024
95d42af
feat: update
xfslove Dec 18, 2024
28b64d8
feat: update
xfslove Dec 18, 2024
81712ca
feat: update
xfslove Dec 18, 2024
5567061
feat: update
xfslove Dec 18, 2024
356e7f7
feat: update
xfslove Dec 18, 2024
fb74cf6
feat: update
xfslove Dec 18, 2024
72a84c0
feat: update
xfslove Dec 18, 2024
48d2753
feat: update
xfslove Dec 18, 2024
21c07ca
feat: update
xfslove Dec 18, 2024
3c9ffac
feat: update
xfslove Dec 18, 2024
6691a09
feat: update
xfslove Dec 18, 2024
85bcc2b
feat: update
xfslove Dec 18, 2024
8aba2f0
feat: update
xfslove Dec 18, 2024
a142a82
feat: update
xfslove Dec 18, 2024
428d1af
feat: update
xfslove Dec 18, 2024
7382117
feat: update
xfslove Dec 18, 2024
db0214f
feat: update
xfslove Dec 18, 2024
4174cc3
feat: update
xfslove Dec 18, 2024
852dd6e
feat: update
xfslove Dec 18, 2024
b8e678b
feat: update
xfslove Dec 18, 2024
9367573
feat: update
xfslove Dec 18, 2024
9a463d8
feat: update
xfslove Dec 18, 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/
132 changes: 132 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
![](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.20241219
```

## 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 |
| *AiApi* | **BatchUpdateKbVersion** | *BatchUpdateKbVersionForms* | *AiBatchUpdateKbVersionResult* | |
| *AiApi* | **CancelQueue** | *CancelQueueForms* | *AiCancelQueueResult* | 取消排队 |
| *AiApi* | **CreateNpcRole** | *CreateNpcRoleForms* | *AiCreateNpcRoleResult* | |
| *AiApi* | **DeleteModels** | *DeleteModelsForms* | *AiDeleteModelsResult* | 删除私有模型 |
| *AiApi* | **GetQueue** | *GetQueueForms* | *AiGetQueueResult* | 查询排队 |
| *AiApi* | **ListModels** | *ListModelsForms* | *AiListModelsResult* | 查看私有模型列表 |
| *AiApi* | **UpdateModels** | *UpdateModelsForms* | *AiUpdateModelsResult* | 修改私有模型信息 |
| *AiApi* | **UpdateNpcRole** | *UpdateNpcRoleForms* | *AiUpdateNpcRoleResult* | |
| *AiApi* | **UploadModels** | *UploadModelsForms* | *AiUploadModelsResult* | 上传私有模型 |
| *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* | **SubmitRefund** | *SubmitRefundForms* | *ConsoleAdminSubmitRefundResult* | 订单退订 |
| *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