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.20241024 #44

Open
wants to merge 307 commits into
base: base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
307 commits
Select commit Hold shift + click to select a range
93527e8
feat: update
xfslove Oct 23, 2024
221b3df
feat: update
xfslove Oct 23, 2024
3a64e67
feat: update
xfslove Oct 23, 2024
d2651ca
feat: update
xfslove Oct 23, 2024
fa9759f
feat: update
xfslove Oct 23, 2024
85ee89f
feat: update
xfslove Oct 23, 2024
51be861
feat: update
xfslove Oct 23, 2024
9a89fe3
feat: update
xfslove Oct 23, 2024
0d43b6f
feat: update
xfslove Oct 23, 2024
e8efa9a
feat: update
xfslove Oct 23, 2024
56b0870
feat: update
xfslove Oct 23, 2024
a123b50
feat: update
xfslove Oct 23, 2024
b59ef63
feat: update
xfslove Oct 23, 2024
7ab4656
feat: update
xfslove Oct 23, 2024
eb4db2a
feat: update
xfslove Oct 23, 2024
13344d4
feat: update
xfslove Oct 23, 2024
ba60f37
feat: update
xfslove Oct 23, 2024
2a09755
feat: update
xfslove Oct 23, 2024
142148c
feat: update
xfslove Oct 23, 2024
84fa931
feat: update
xfslove Oct 23, 2024
d9ad0c0
feat: update
xfslove Oct 23, 2024
734c31e
feat: update
xfslove Oct 23, 2024
59868fe
feat: update
xfslove Oct 23, 2024
7151662
feat: update
xfslove Oct 23, 2024
c6d74ee
feat: update
xfslove Oct 23, 2024
68228bc
feat: update
xfslove Oct 23, 2024
f657e95
feat: update
xfslove Oct 23, 2024
7d12287
feat: update
xfslove Oct 23, 2024
7da2f19
feat: update
xfslove Oct 23, 2024
ecbc2ad
feat: update
xfslove Oct 23, 2024
559ebc2
feat: update
xfslove Oct 23, 2024
e64ea4a
feat: update
xfslove Oct 23, 2024
f31df25
feat: update
xfslove Oct 23, 2024
e411066
feat: update
xfslove Oct 23, 2024
82b8ba0
feat: update
xfslove Oct 23, 2024
73e970b
feat: update
xfslove Oct 23, 2024
36b7df1
feat: update
xfslove Oct 23, 2024
8c71652
feat: update
xfslove Oct 23, 2024
b01935c
feat: update
xfslove Oct 23, 2024
7808fef
feat: update
xfslove Oct 23, 2024
b5a2941
feat: update
xfslove Oct 23, 2024
d12b61f
feat: update
xfslove Oct 23, 2024
c612972
feat: update
xfslove Oct 23, 2024
ad5cf44
feat: update
xfslove Oct 23, 2024
62dada2
feat: update
xfslove Oct 23, 2024
9c786c2
feat: update
xfslove Oct 23, 2024
ae36f4d
feat: update
xfslove Oct 23, 2024
1105c75
feat: update
xfslove Oct 23, 2024
646dab4
feat: update
xfslove Oct 23, 2024
598bcef
feat: update
xfslove Oct 23, 2024
693b03a
feat: update
xfslove Oct 23, 2024
92ae61d
feat: update
xfslove Oct 23, 2024
4b3ba6f
feat: update
xfslove Oct 23, 2024
4b12b71
feat: update
xfslove Oct 23, 2024
3c7ba7b
feat: update
xfslove Oct 23, 2024
17a9652
feat: update
xfslove Oct 23, 2024
1826ee2
feat: update
xfslove Oct 23, 2024
bd3fad2
feat: update
xfslove Oct 23, 2024
f440ee1
feat: update
xfslove Oct 23, 2024
9439d42
feat: update
xfslove Oct 23, 2024
bde0bf1
feat: update
xfslove Oct 23, 2024
2b48924
feat: update
xfslove Oct 23, 2024
4bfee5f
feat: update
xfslove Oct 23, 2024
b611b06
feat: update
xfslove Oct 23, 2024
61b1aec
feat: update
xfslove Oct 23, 2024
fded65d
feat: update
xfslove Oct 23, 2024
4a14d78
feat: update
xfslove Oct 23, 2024
57f37be
feat: update
xfslove Oct 23, 2024
01150bb
feat: update
xfslove Oct 23, 2024
1a58130
feat: update
xfslove Oct 23, 2024
679aabd
feat: update
xfslove Oct 23, 2024
31881a1
feat: update
xfslove Oct 23, 2024
2dfb221
feat: update
xfslove Oct 23, 2024
8d28a92
feat: update
xfslove Oct 23, 2024
84544b3
feat: update
xfslove Oct 23, 2024
210f098
feat: update
xfslove Oct 23, 2024
25330f6
feat: update
xfslove Oct 23, 2024
5f34dcb
feat: update
xfslove Oct 23, 2024
5f86ffb
feat: update
xfslove Oct 23, 2024
a72d397
feat: update
xfslove Oct 23, 2024
ece1f95
feat: update
xfslove Oct 23, 2024
266f8fb
feat: update
xfslove Oct 23, 2024
9748df2
feat: update
xfslove Oct 23, 2024
1ec2917
feat: update
xfslove Oct 23, 2024
bdf627e
feat: update
xfslove Oct 23, 2024
ac0af99
feat: update
xfslove Oct 23, 2024
8c06fce
feat: update
xfslove Oct 23, 2024
0c4e2c5
feat: update
xfslove Oct 23, 2024
0aa72e3
feat: update
xfslove Oct 23, 2024
c4f263f
feat: update
xfslove Oct 23, 2024
aba525e
feat: update
xfslove Oct 23, 2024
b7e1334
feat: update
xfslove Oct 23, 2024
4cd375a
feat: update
xfslove Oct 23, 2024
80f5942
feat: update
xfslove Oct 23, 2024
b02d38a
feat: update
xfslove Oct 23, 2024
042360c
feat: update
xfslove Oct 23, 2024
aff0a71
feat: update
xfslove Oct 23, 2024
becd3eb
feat: update
xfslove Oct 23, 2024
ca3f59a
feat: update
xfslove Oct 23, 2024
6db1632
feat: update
xfslove Oct 23, 2024
2559c83
feat: update
xfslove Oct 23, 2024
e459f83
feat: update
xfslove Oct 23, 2024
ad904ff
feat: update
xfslove Oct 23, 2024
49aec20
feat: update
xfslove Oct 23, 2024
67ef753
feat: update
xfslove Oct 23, 2024
f8f87cf
feat: update
xfslove Oct 23, 2024
7d536fb
feat: update
xfslove Oct 23, 2024
c7cc9d2
feat: update
xfslove Oct 23, 2024
63340d9
feat: update
xfslove Oct 23, 2024
a8aa25c
feat: update
xfslove Oct 23, 2024
5fb8c53
feat: update
xfslove Oct 23, 2024
af06487
feat: update
xfslove Oct 23, 2024
9218f57
feat: update
xfslove Oct 23, 2024
258ae1d
feat: update
xfslove Oct 23, 2024
25bba2d
feat: update
xfslove Oct 23, 2024
7c2048e
feat: update
xfslove Oct 23, 2024
b5fa235
feat: update
xfslove Oct 23, 2024
ab76069
feat: update
xfslove Oct 23, 2024
409597a
feat: update
xfslove Oct 23, 2024
43c5820
feat: update
xfslove Oct 23, 2024
da120f4
feat: update
xfslove Oct 23, 2024
52503c3
feat: update
xfslove Oct 23, 2024
b8d8e71
feat: update
xfslove Oct 23, 2024
cfb937b
feat: update
xfslove Oct 23, 2024
24e3191
feat: update
xfslove Oct 23, 2024
d170dc4
feat: update
xfslove Oct 23, 2024
060417b
feat: update
xfslove Oct 23, 2024
94df663
feat: update
xfslove Oct 23, 2024
76b9b91
feat: update
xfslove Oct 23, 2024
20dc2ea
feat: update
xfslove Oct 23, 2024
bafa924
feat: update
xfslove Oct 23, 2024
2918568
feat: update
xfslove Oct 23, 2024
f363a72
feat: update
xfslove Oct 23, 2024
e4dbac1
feat: update
xfslove Oct 23, 2024
80f20c1
feat: update
xfslove Oct 23, 2024
1c849cf
feat: update
xfslove Oct 23, 2024
2bb7622
feat: update
xfslove Oct 23, 2024
1aeb8dc
feat: update
xfslove Oct 23, 2024
85698b7
feat: update
xfslove Oct 23, 2024
68e97e1
feat: update
xfslove Oct 23, 2024
e78725c
feat: update
xfslove Oct 23, 2024
8129efb
feat: update
xfslove Oct 23, 2024
408b785
feat: update
xfslove Oct 23, 2024
b873e02
feat: update
xfslove Oct 23, 2024
5c098d4
feat: update
xfslove Oct 23, 2024
19ee837
feat: update
xfslove Oct 23, 2024
276615e
feat: update
xfslove Oct 23, 2024
7b123e3
feat: update
xfslove Oct 23, 2024
4124974
feat: update
xfslove Oct 23, 2024
e2f563c
feat: update
xfslove Oct 23, 2024
dffde45
feat: update
xfslove Oct 23, 2024
5208668
feat: update
xfslove Oct 23, 2024
35b85a9
feat: update
xfslove Oct 23, 2024
c686bb8
feat: update
xfslove Oct 23, 2024
e82fa37
feat: update
xfslove Oct 23, 2024
0b8561f
feat: update
xfslove Oct 23, 2024
bd5a5c9
feat: update
xfslove Oct 23, 2024
dcfd34d
feat: update
xfslove Oct 23, 2024
3ded14e
feat: update
xfslove Oct 23, 2024
2d4c545
feat: update
xfslove Oct 23, 2024
e7109be
feat: update
xfslove Oct 23, 2024
60b7b7e
feat: update
xfslove Oct 23, 2024
9fa650e
feat: update
xfslove Oct 23, 2024
ce3581b
feat: update
xfslove Oct 23, 2024
eba69e4
feat: update
xfslove Oct 23, 2024
3d0eb66
feat: update
xfslove Oct 23, 2024
d90827b
feat: update
xfslove Oct 23, 2024
4a5acd5
feat: update
xfslove Oct 23, 2024
02fe14a
feat: update
xfslove Oct 23, 2024
5bf2410
feat: update
xfslove Oct 23, 2024
2a0fefa
feat: update
xfslove Oct 23, 2024
44889b6
feat: update
xfslove Oct 23, 2024
d9bd5e4
feat: update
xfslove Oct 23, 2024
6f2712f
feat: update
xfslove Oct 23, 2024
e94d484
feat: update
xfslove Oct 23, 2024
07cc13a
feat: update
xfslove Oct 23, 2024
dfc8fe5
feat: update
xfslove Oct 23, 2024
d4dabae
feat: update
xfslove Oct 23, 2024
485c71d
feat: update
xfslove Oct 23, 2024
c73e16c
feat: update
xfslove Oct 23, 2024
262b1ff
feat: update
xfslove Oct 23, 2024
9b5068d
feat: update
xfslove Oct 23, 2024
c1843ac
feat: update
xfslove Oct 23, 2024
8a00d3d
feat: update
xfslove Oct 23, 2024
91ebfa3
feat: update
xfslove Oct 23, 2024
66a6226
feat: update
xfslove Oct 23, 2024
6974c1a
feat: update
xfslove Oct 23, 2024
ead2e33
feat: update
xfslove Oct 23, 2024
4eefea7
feat: update
xfslove Oct 23, 2024
8025fec
feat: update
xfslove Oct 23, 2024
1585aea
feat: update
xfslove Oct 23, 2024
45abbdd
feat: update
xfslove Oct 23, 2024
19f595f
feat: update
xfslove Oct 23, 2024
d1afb93
feat: update
xfslove Oct 23, 2024
a68dd9b
feat: update
xfslove Oct 23, 2024
4665fbe
feat: update
xfslove Oct 23, 2024
3b235f2
feat: update
xfslove Oct 23, 2024
4fe94e5
feat: update
xfslove Oct 23, 2024
0b05704
feat: update
xfslove Oct 23, 2024
282f2da
feat: update
xfslove Oct 23, 2024
cd8842b
feat: update
xfslove Oct 23, 2024
d87d50f
feat: update
xfslove Oct 23, 2024
b2ffa4e
feat: update
xfslove Oct 23, 2024
572139c
feat: update
xfslove Oct 23, 2024
e93d3c8
feat: update
xfslove Oct 23, 2024
f367a6e
feat: update
xfslove Oct 23, 2024
883907f
feat: update
xfslove Oct 23, 2024
a0c4cfa
feat: update
xfslove Oct 23, 2024
2ea15dc
feat: update
xfslove Oct 23, 2024
c36f462
feat: update
xfslove Oct 23, 2024
e72302f
feat: update
xfslove Oct 23, 2024
53055c1
feat: update
xfslove Oct 23, 2024
9feb6c6
feat: update
xfslove Oct 23, 2024
7ed7d24
feat: update
xfslove Oct 23, 2024
75d83e5
feat: update
xfslove Oct 23, 2024
0997700
feat: update
xfslove Oct 23, 2024
89f6f67
feat: update
xfslove Oct 23, 2024
caee49a
feat: update
xfslove Oct 23, 2024
744d276
feat: update
xfslove Oct 23, 2024
c1b0f42
feat: update
xfslove Oct 23, 2024
0283685
feat: update
xfslove Oct 23, 2024
b202071
feat: update
xfslove Oct 23, 2024
a553fe8
feat: update
xfslove Oct 23, 2024
e6ff9ce
feat: update
xfslove Oct 23, 2024
7a80cb1
feat: update
xfslove Oct 23, 2024
79280a0
feat: update
xfslove Oct 23, 2024
6619ea2
feat: update
xfslove Oct 23, 2024
a1f50cf
feat: update
xfslove Oct 23, 2024
b5289d6
feat: update
xfslove Oct 23, 2024
69b1f6a
feat: update
xfslove Oct 23, 2024
a984155
feat: update
xfslove Oct 23, 2024
c5319e7
feat: update
xfslove Oct 23, 2024
a546520
feat: update
xfslove Oct 23, 2024
5a6a2d9
feat: update
xfslove Oct 23, 2024
9598e31
feat: update
xfslove Oct 23, 2024
81e02df
feat: update
xfslove Oct 23, 2024
8ced358
feat: update
xfslove Oct 23, 2024
d1e521c
feat: update
xfslove Oct 23, 2024
7ebd73f
feat: update
xfslove Oct 23, 2024
e6baa76
feat: update
xfslove Oct 23, 2024
11ece5e
feat: update
xfslove Oct 23, 2024
a632cd0
feat: update
xfslove Oct 23, 2024
a7e4a9c
feat: update
xfslove Oct 23, 2024
4b8103d
feat: update
xfslove Oct 23, 2024
562107e
feat: update
xfslove Oct 23, 2024
5b31f6e
feat: update
xfslove Oct 23, 2024
6964a09
feat: update
xfslove Oct 23, 2024
3b2f1ab
feat: update
xfslove Oct 23, 2024
c148344
feat: update
xfslove Oct 23, 2024
dbb8553
feat: update
xfslove Oct 23, 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.20241024
```

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