gs2 1.4.77 → 1.4.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/freeze/index.d.ts +5 -0
- package/freeze/index.js +28 -0
- package/freeze/index.js.map +1 -0
- package/freeze/index.ts +27 -0
- package/freeze/model/Microservice.d.ts +17 -0
- package/freeze/model/Microservice.js +62 -0
- package/freeze/model/Microservice.js.map +1 -0
- package/freeze/model/Microservice.ts +62 -0
- package/freeze/model/Output.d.ts +35 -0
- package/freeze/model/Output.js +171 -0
- package/freeze/model/Output.js.map +1 -0
- package/freeze/model/Output.ts +186 -0
- package/freeze/model/Stage.d.ts +46 -0
- package/freeze/model/Stage.js +195 -0
- package/freeze/model/Stage.js.map +1 -0
- package/freeze/model/Stage.ts +207 -0
- package/freeze/model/index.d.ts +4 -0
- package/freeze/model/index.js +26 -0
- package/freeze/model/index.js.map +1 -0
- package/freeze/model/index.ts +24 -0
- package/freeze/request/DescribeOutputsRequest.d.ts +29 -0
- package/freeze/request/DescribeOutputsRequest.js +97 -0
- package/freeze/request/DescribeOutputsRequest.js.map +1 -0
- package/freeze/request/DescribeOutputsRequest.ts +104 -0
- package/freeze/request/DescribeStagesRequest.d.ts +17 -0
- package/freeze/request/DescribeStagesRequest.js +54 -0
- package/freeze/request/DescribeStagesRequest.js.map +1 -0
- package/freeze/request/DescribeStagesRequest.ts +62 -0
- package/freeze/request/GetOutputRequest.d.ts +25 -0
- package/freeze/request/GetOutputRequest.js +83 -0
- package/freeze/request/GetOutputRequest.js.map +1 -0
- package/freeze/request/GetOutputRequest.ts +90 -0
- package/freeze/request/GetStageRequest.d.ts +21 -0
- package/freeze/request/GetStageRequest.js +69 -0
- package/freeze/request/GetStageRequest.js.map +1 -0
- package/freeze/request/GetStageRequest.ts +76 -0
- package/freeze/request/PromoteStageRequest.d.ts +21 -0
- package/freeze/request/PromoteStageRequest.js +69 -0
- package/freeze/request/PromoteStageRequest.js.map +1 -0
- package/freeze/request/PromoteStageRequest.ts +76 -0
- package/freeze/request/RollbackStageRequest.d.ts +21 -0
- package/freeze/request/RollbackStageRequest.js +69 -0
- package/freeze/request/RollbackStageRequest.js.map +1 -0
- package/freeze/request/RollbackStageRequest.ts +76 -0
- package/freeze/request/index.d.ts +7 -0
- package/freeze/request/index.js +32 -0
- package/freeze/request/index.js.map +1 -0
- package/freeze/request/index.ts +30 -0
- package/freeze/rest.d.ts +13 -0
- package/freeze/rest.js +173 -0
- package/freeze/rest.js.map +1 -0
- package/freeze/rest.ts +195 -0
- package/freeze/result/DescribeOutputsResult.d.ts +18 -0
- package/freeze/result/DescribeOutputsResult.js +67 -0
- package/freeze/result/DescribeOutputsResult.js.map +1 -0
- package/freeze/result/DescribeOutputsResult.ts +72 -0
- package/freeze/result/DescribeStagesResult.d.ts +14 -0
- package/freeze/result/DescribeStagesResult.js +53 -0
- package/freeze/result/DescribeStagesResult.js.map +1 -0
- package/freeze/result/DescribeStagesResult.ts +55 -0
- package/freeze/result/GetOutputResult.d.ts +14 -0
- package/freeze/result/GetOutputResult.js +48 -0
- package/freeze/result/GetOutputResult.js.map +1 -0
- package/freeze/result/GetOutputResult.ts +47 -0
- package/freeze/result/GetStageResult.d.ts +22 -0
- package/freeze/result/GetStageResult.js +88 -0
- package/freeze/result/GetStageResult.js.map +1 -0
- package/freeze/result/GetStageResult.ts +97 -0
- package/freeze/result/PromoteStageResult.d.ts +14 -0
- package/freeze/result/PromoteStageResult.js +48 -0
- package/freeze/result/PromoteStageResult.js.map +1 -0
- package/freeze/result/PromoteStageResult.ts +47 -0
- package/freeze/result/RollbackStageResult.d.ts +14 -0
- package/freeze/result/RollbackStageResult.js +48 -0
- package/freeze/result/RollbackStageResult.js.map +1 -0
- package/freeze/result/RollbackStageResult.ts +47 -0
- package/freeze/result/index.d.ts +7 -0
- package/freeze/result/index.js +32 -0
- package/freeze/result/index.js.map +1 -0
- package/freeze/result/index.ts +30 -0
- package/friend/request/AddFriendByUserIdRequest.d.ts +37 -0
- package/friend/request/AddFriendByUserIdRequest.js +123 -0
- package/friend/request/AddFriendByUserIdRequest.js.map +1 -0
- package/friend/request/AddFriendByUserIdRequest.ts +133 -0
- package/friend/request/AddFriendRequest.d.ts +33 -0
- package/friend/request/AddFriendRequest.js +109 -0
- package/friend/request/AddFriendRequest.js.map +1 -0
- package/friend/request/AddFriendRequest.ts +119 -0
- package/friend/request/index.d.ts +3 -1
- package/friend/request/index.js +6 -2
- package/friend/request/index.js.map +1 -1
- package/friend/request/index.ts +4 -0
- package/friend/rest.d.ts +2 -0
- package/friend/rest.js +67 -0
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +75 -0
- package/friend/result/AddFriendByUserIdResult.d.ts +14 -0
- package/friend/result/AddFriendByUserIdResult.js +48 -0
- package/friend/result/AddFriendByUserIdResult.js.map +1 -0
- package/friend/result/AddFriendByUserIdResult.ts +47 -0
- package/friend/result/AddFriendResult.d.ts +14 -0
- package/friend/result/AddFriendResult.js +48 -0
- package/friend/result/AddFriendResult.js.map +1 -0
- package/friend/result/AddFriendResult.ts +47 -0
- package/friend/result/index.d.ts +3 -1
- package/friend/result/index.js +6 -2
- package/friend/result/index.js.map +1 -1
- package/friend/result/index.ts +4 -0
- package/index.d.ts +2 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/index.ts +2 -0
- package/package.json +1 -1
package/freeze/rest.ts
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the 'License').
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the 'license' file accompanying this file. This file is distributed
|
|
12
|
+
on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import AbstractGs2RestClient from '../core/AbstractGs2RestClient';
|
|
18
|
+
import { Gs2Constant, Gs2RestSession } from '../core/model';
|
|
19
|
+
import * as Request from './request';
|
|
20
|
+
import * as Result from './result';
|
|
21
|
+
|
|
22
|
+
import axios from 'axios';
|
|
23
|
+
|
|
24
|
+
export default class Gs2FreezeRestClient extends AbstractGs2RestClient {
|
|
25
|
+
|
|
26
|
+
constructor(session: Gs2RestSession) {
|
|
27
|
+
super(session);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public describeStages(request: Request.DescribeStagesRequest): Promise<Result.DescribeStagesResult> {
|
|
31
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/')
|
|
32
|
+
.replace('{service}', 'freeze')
|
|
33
|
+
.replace('{region}', this.session.region);
|
|
34
|
+
|
|
35
|
+
const headers = this.createAuthorizedHeaders();
|
|
36
|
+
if (request.getRequestId()) {
|
|
37
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
38
|
+
}
|
|
39
|
+
const params: {[key: string]: any} = {
|
|
40
|
+
'contextStack': request.getContextStack() ?? null,
|
|
41
|
+
};
|
|
42
|
+
return axios.get(
|
|
43
|
+
url,
|
|
44
|
+
{
|
|
45
|
+
params,
|
|
46
|
+
headers,
|
|
47
|
+
},
|
|
48
|
+
).then((response: any) => {
|
|
49
|
+
return Result.DescribeStagesResult.fromDict(response.data);
|
|
50
|
+
}).catch((error: any) => {
|
|
51
|
+
throw JSON.parse(error.response.data.message);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public getStage(request: Request.GetStageRequest): Promise<Result.GetStageResult> {
|
|
56
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{stageName}')
|
|
57
|
+
.replace('{service}', 'freeze')
|
|
58
|
+
.replace('{region}', this.session.region)
|
|
59
|
+
.replace('{stageName}', String(request.getStageName() ?? 'null') === "" ? "null" : String(request.getStageName() ?? 'null'));
|
|
60
|
+
|
|
61
|
+
const headers = this.createAuthorizedHeaders();
|
|
62
|
+
if (request.getRequestId()) {
|
|
63
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
64
|
+
}
|
|
65
|
+
const params: {[key: string]: any} = {
|
|
66
|
+
'contextStack': request.getContextStack() ?? null,
|
|
67
|
+
};
|
|
68
|
+
return axios.get(
|
|
69
|
+
url,
|
|
70
|
+
{
|
|
71
|
+
params,
|
|
72
|
+
headers,
|
|
73
|
+
},
|
|
74
|
+
).then((response: any) => {
|
|
75
|
+
return Result.GetStageResult.fromDict(response.data);
|
|
76
|
+
}).catch((error: any) => {
|
|
77
|
+
throw JSON.parse(error.response.data.message);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
public promoteStage(request: Request.PromoteStageRequest): Promise<Result.PromoteStageResult> {
|
|
82
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{stageName}/promote')
|
|
83
|
+
.replace('{service}', 'freeze')
|
|
84
|
+
.replace('{region}', this.session.region)
|
|
85
|
+
.replace('{stageName}', String(request.getStageName() ?? 'null') === "" ? "null" : String(request.getStageName() ?? 'null'));
|
|
86
|
+
|
|
87
|
+
const headers = this.createAuthorizedHeaders();
|
|
88
|
+
if (request.getRequestId()) {
|
|
89
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
90
|
+
}
|
|
91
|
+
const body: {[key: string]: any} = {
|
|
92
|
+
'contextStack': request.getContextStack() ?? null,
|
|
93
|
+
};
|
|
94
|
+
return axios.post(
|
|
95
|
+
url,
|
|
96
|
+
body,
|
|
97
|
+
{
|
|
98
|
+
headers,
|
|
99
|
+
},
|
|
100
|
+
).then((response: any) => {
|
|
101
|
+
return Result.PromoteStageResult.fromDict(response.data);
|
|
102
|
+
}).catch((error: any) => {
|
|
103
|
+
if (error.response) {
|
|
104
|
+
throw JSON.parse(error.response.data.message);
|
|
105
|
+
} else {
|
|
106
|
+
throw [];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public rollbackStage(request: Request.RollbackStageRequest): Promise<Result.RollbackStageResult> {
|
|
112
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{stageName}/rollback')
|
|
113
|
+
.replace('{service}', 'freeze')
|
|
114
|
+
.replace('{region}', this.session.region)
|
|
115
|
+
.replace('{stageName}', String(request.getStageName() ?? 'null') === "" ? "null" : String(request.getStageName() ?? 'null'));
|
|
116
|
+
|
|
117
|
+
const headers = this.createAuthorizedHeaders();
|
|
118
|
+
if (request.getRequestId()) {
|
|
119
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
120
|
+
}
|
|
121
|
+
const body: {[key: string]: any} = {
|
|
122
|
+
'contextStack': request.getContextStack() ?? null,
|
|
123
|
+
};
|
|
124
|
+
return axios.post(
|
|
125
|
+
url,
|
|
126
|
+
body,
|
|
127
|
+
{
|
|
128
|
+
headers,
|
|
129
|
+
},
|
|
130
|
+
).then((response: any) => {
|
|
131
|
+
return Result.RollbackStageResult.fromDict(response.data);
|
|
132
|
+
}).catch((error: any) => {
|
|
133
|
+
if (error.response) {
|
|
134
|
+
throw JSON.parse(error.response.data.message);
|
|
135
|
+
} else {
|
|
136
|
+
throw [];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
public describeOutputs(request: Request.DescribeOutputsRequest): Promise<Result.DescribeOutputsResult> {
|
|
142
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{stageName}/progress/output')
|
|
143
|
+
.replace('{service}', 'freeze')
|
|
144
|
+
.replace('{region}', this.session.region)
|
|
145
|
+
.replace('{stageName}', String(request.getStageName() ?? 'null') === "" ? "null" : String(request.getStageName() ?? 'null'));
|
|
146
|
+
|
|
147
|
+
const headers = this.createAuthorizedHeaders();
|
|
148
|
+
if (request.getRequestId()) {
|
|
149
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
150
|
+
}
|
|
151
|
+
const params: {[key: string]: any} = {
|
|
152
|
+
'contextStack': request.getContextStack() ?? null,
|
|
153
|
+
'pageToken': String(request.getPageToken() ?? null),
|
|
154
|
+
'limit': String(request.getLimit() ?? null),
|
|
155
|
+
};
|
|
156
|
+
return axios.get(
|
|
157
|
+
url,
|
|
158
|
+
{
|
|
159
|
+
params,
|
|
160
|
+
headers,
|
|
161
|
+
},
|
|
162
|
+
).then((response: any) => {
|
|
163
|
+
return Result.DescribeOutputsResult.fromDict(response.data);
|
|
164
|
+
}).catch((error: any) => {
|
|
165
|
+
throw JSON.parse(error.response.data.message);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
public getOutput(request: Request.GetOutputRequest): Promise<Result.GetOutputResult> {
|
|
170
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{stageName}/progress/output/{outputName}')
|
|
171
|
+
.replace('{service}', 'freeze')
|
|
172
|
+
.replace('{region}', this.session.region)
|
|
173
|
+
.replace('{stageName}', String(request.getStageName() ?? 'null') === "" ? "null" : String(request.getStageName() ?? 'null'))
|
|
174
|
+
.replace('{outputName}', String(request.getOutputName() ?? 'null') === "" ? "null" : String(request.getOutputName() ?? 'null'));
|
|
175
|
+
|
|
176
|
+
const headers = this.createAuthorizedHeaders();
|
|
177
|
+
if (request.getRequestId()) {
|
|
178
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
179
|
+
}
|
|
180
|
+
const params: {[key: string]: any} = {
|
|
181
|
+
'contextStack': request.getContextStack() ?? null,
|
|
182
|
+
};
|
|
183
|
+
return axios.get(
|
|
184
|
+
url,
|
|
185
|
+
{
|
|
186
|
+
params,
|
|
187
|
+
headers,
|
|
188
|
+
},
|
|
189
|
+
).then((response: any) => {
|
|
190
|
+
return Result.GetOutputResult.fromDict(response.data);
|
|
191
|
+
}).catch((error: any) => {
|
|
192
|
+
throw JSON.parse(error.response.data.message);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Freeze from '../model';
|
|
3
|
+
export default class DescribeOutputsResult implements IResult {
|
|
4
|
+
private items;
|
|
5
|
+
private nextPageToken;
|
|
6
|
+
getItems(): Gs2Freeze.Output[] | null;
|
|
7
|
+
setItems(items: Gs2Freeze.Output[] | null): this;
|
|
8
|
+
withItems(items: Gs2Freeze.Output[] | null): this;
|
|
9
|
+
getNextPageToken(): string | null;
|
|
10
|
+
setNextPageToken(nextPageToken: string | null): this;
|
|
11
|
+
withNextPageToken(nextPageToken: string | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): DescribeOutputsResult;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Freeze = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var DescribeOutputsResult = /** @class */ (function () {
|
|
21
|
+
function DescribeOutputsResult() {
|
|
22
|
+
this.items = null;
|
|
23
|
+
this.nextPageToken = null;
|
|
24
|
+
}
|
|
25
|
+
DescribeOutputsResult.prototype.getItems = function () {
|
|
26
|
+
return this.items;
|
|
27
|
+
};
|
|
28
|
+
DescribeOutputsResult.prototype.setItems = function (items) {
|
|
29
|
+
this.items = items;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
DescribeOutputsResult.prototype.withItems = function (items) {
|
|
33
|
+
this.items = items;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
DescribeOutputsResult.prototype.getNextPageToken = function () {
|
|
37
|
+
return this.nextPageToken;
|
|
38
|
+
};
|
|
39
|
+
DescribeOutputsResult.prototype.setNextPageToken = function (nextPageToken) {
|
|
40
|
+
this.nextPageToken = nextPageToken;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
DescribeOutputsResult.prototype.withNextPageToken = function (nextPageToken) {
|
|
44
|
+
this.nextPageToken = nextPageToken;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
DescribeOutputsResult.fromDict = function (data) {
|
|
48
|
+
return new DescribeOutputsResult()
|
|
49
|
+
.withItems(data.items ?
|
|
50
|
+
data.items.map(function (item) {
|
|
51
|
+
return Gs2Freeze.Output.fromDict(item);
|
|
52
|
+
}) : null)
|
|
53
|
+
.withNextPageToken(data["nextPageToken"]);
|
|
54
|
+
};
|
|
55
|
+
DescribeOutputsResult.prototype.toDict = function () {
|
|
56
|
+
return {
|
|
57
|
+
"items": this.getItems() ?
|
|
58
|
+
this.getItems().map(function (item) {
|
|
59
|
+
return item.toDict();
|
|
60
|
+
}) : null,
|
|
61
|
+
"nextPageToken": this.getNextPageToken(),
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
return DescribeOutputsResult;
|
|
65
|
+
}());
|
|
66
|
+
exports.default = DescribeOutputsResult;
|
|
67
|
+
//# sourceMappingURL=DescribeOutputsResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeOutputsResult.js","sourceRoot":"","sources":["DescribeOutputsResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0DAAqC;AAErC;IAAA;QACY,UAAK,GAA4B,IAAI,CAAC;QACtC,kBAAa,GAAgB,IAAI,CAAC;IAkD9C,CAAC;IAhDU,wCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,wCAAQ,GAAf,UAAgB,KAA8B;QAC1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yCAAS,GAAhB,UAAiB,KAA8B;QAC3C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gDAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,gDAAgB,GAAvB,UAAwB,aAA0B;QAC9C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,iDAAiB,GAAxB,UAAyB,aAA0B;QAC/C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,8BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,qBAAqB,EAAE;aAC7B,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC3C,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC;aACR,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,sCAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAsB;oBACxC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI;YACR,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;SAC3C,CAAC;IACN,CAAC;IACL,4BAAC;AAAD,CAAC,AApDD,IAoDC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
import * as Gs2Freeze from '../model'
|
|
19
|
+
|
|
20
|
+
export default class DescribeOutputsResult implements IResult {
|
|
21
|
+
private items: Gs2Freeze.Output[]|null = null;
|
|
22
|
+
private nextPageToken: string|null = null;
|
|
23
|
+
|
|
24
|
+
public getItems(): Gs2Freeze.Output[]|null {
|
|
25
|
+
return this.items;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItems(items: Gs2Freeze.Output[]|null) {
|
|
29
|
+
this.items = items;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItems(items: Gs2Freeze.Output[]|null): this {
|
|
34
|
+
this.items = items;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public getNextPageToken(): string|null {
|
|
39
|
+
return this.nextPageToken;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public setNextPageToken(nextPageToken: string|null) {
|
|
43
|
+
this.nextPageToken = nextPageToken;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public withNextPageToken(nextPageToken: string|null): this {
|
|
48
|
+
this.nextPageToken = nextPageToken;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public static fromDict(data: {[key: string]: any}): DescribeOutputsResult {
|
|
53
|
+
return new DescribeOutputsResult()
|
|
54
|
+
.withItems(data.items ?
|
|
55
|
+
data.items.map((item: {[key: string]: any}) => {
|
|
56
|
+
return Gs2Freeze.Output.fromDict(item);
|
|
57
|
+
}
|
|
58
|
+
) : null)
|
|
59
|
+
.withNextPageToken(data["nextPageToken"]);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public toDict(): {[key: string]: any} {
|
|
63
|
+
return {
|
|
64
|
+
"items": this.getItems() ?
|
|
65
|
+
this.getItems()!.map((item: Gs2Freeze.Output) => {
|
|
66
|
+
return item.toDict();
|
|
67
|
+
}
|
|
68
|
+
) : null,
|
|
69
|
+
"nextPageToken": this.getNextPageToken(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Freeze from '../model';
|
|
3
|
+
export default class DescribeStagesResult implements IResult {
|
|
4
|
+
private items;
|
|
5
|
+
getItems(): Gs2Freeze.Stage[] | null;
|
|
6
|
+
setItems(items: Gs2Freeze.Stage[] | null): this;
|
|
7
|
+
withItems(items: Gs2Freeze.Stage[] | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): DescribeStagesResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Freeze = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var DescribeStagesResult = /** @class */ (function () {
|
|
21
|
+
function DescribeStagesResult() {
|
|
22
|
+
this.items = null;
|
|
23
|
+
}
|
|
24
|
+
DescribeStagesResult.prototype.getItems = function () {
|
|
25
|
+
return this.items;
|
|
26
|
+
};
|
|
27
|
+
DescribeStagesResult.prototype.setItems = function (items) {
|
|
28
|
+
this.items = items;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
DescribeStagesResult.prototype.withItems = function (items) {
|
|
32
|
+
this.items = items;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
DescribeStagesResult.fromDict = function (data) {
|
|
36
|
+
return new DescribeStagesResult()
|
|
37
|
+
.withItems(data.items ?
|
|
38
|
+
data.items.map(function (item) {
|
|
39
|
+
return Gs2Freeze.Stage.fromDict(item);
|
|
40
|
+
}) : null);
|
|
41
|
+
};
|
|
42
|
+
DescribeStagesResult.prototype.toDict = function () {
|
|
43
|
+
return {
|
|
44
|
+
"items": this.getItems() ?
|
|
45
|
+
this.getItems().map(function (item) {
|
|
46
|
+
return item.toDict();
|
|
47
|
+
}) : null,
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
return DescribeStagesResult;
|
|
51
|
+
}());
|
|
52
|
+
exports.default = DescribeStagesResult;
|
|
53
|
+
//# sourceMappingURL=DescribeStagesResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeStagesResult.js","sourceRoot":"","sources":["DescribeStagesResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0DAAqC;AAErC;IAAA;QACY,UAAK,GAA2B,IAAI,CAAC;IAkCjD,CAAC;IAhCU,uCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,uCAAQ,GAAf,UAAgB,KAA6B;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,wCAAS,GAAhB,UAAiB,KAA6B;QAC1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,6BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,oBAAoB,EAAE;aAC5B,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAEM,qCAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAqB;oBACvC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,IAAI;SACX,CAAC;IACN,CAAC;IACL,2BAAC;AAAD,CAAC,AAnCD,IAmCC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
import * as Gs2Freeze from '../model'
|
|
19
|
+
|
|
20
|
+
export default class DescribeStagesResult implements IResult {
|
|
21
|
+
private items: Gs2Freeze.Stage[]|null = null;
|
|
22
|
+
|
|
23
|
+
public getItems(): Gs2Freeze.Stage[]|null {
|
|
24
|
+
return this.items;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public setItems(items: Gs2Freeze.Stage[]|null) {
|
|
28
|
+
this.items = items;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public withItems(items: Gs2Freeze.Stage[]|null): this {
|
|
33
|
+
this.items = items;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public static fromDict(data: {[key: string]: any}): DescribeStagesResult {
|
|
38
|
+
return new DescribeStagesResult()
|
|
39
|
+
.withItems(data.items ?
|
|
40
|
+
data.items.map((item: {[key: string]: any}) => {
|
|
41
|
+
return Gs2Freeze.Stage.fromDict(item);
|
|
42
|
+
}
|
|
43
|
+
) : null);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public toDict(): {[key: string]: any} {
|
|
47
|
+
return {
|
|
48
|
+
"items": this.getItems() ?
|
|
49
|
+
this.getItems()!.map((item: Gs2Freeze.Stage) => {
|
|
50
|
+
return item.toDict();
|
|
51
|
+
}
|
|
52
|
+
) : null,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Freeze from '../model';
|
|
3
|
+
export default class GetOutputResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2Freeze.Output | null;
|
|
6
|
+
setItem(item: Gs2Freeze.Output | null): this;
|
|
7
|
+
withItem(item: Gs2Freeze.Output | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): GetOutputResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Freeze = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var GetOutputResult = /** @class */ (function () {
|
|
21
|
+
function GetOutputResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
GetOutputResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
GetOutputResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
GetOutputResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
GetOutputResult.fromDict = function (data) {
|
|
36
|
+
return new GetOutputResult()
|
|
37
|
+
.withItem(Gs2Freeze.Output.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
GetOutputResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return GetOutputResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = GetOutputResult;
|
|
48
|
+
//# sourceMappingURL=GetOutputResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetOutputResult.js","sourceRoot":"","sources":["GetOutputResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0DAAqC;AAErC;IAAA;QACY,SAAI,GAA0B,IAAI,CAAC;IA0B/C,CAAC;IAxBU,iCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,iCAAO,GAAd,UAAe,IAA2B;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,kCAAQ,GAAf,UAAgB,IAA2B;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,eAAe,EAAE;aACvB,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEM,gCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,sBAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
import * as Gs2Freeze from '../model'
|
|
19
|
+
|
|
20
|
+
export default class GetOutputResult implements IResult {
|
|
21
|
+
private item: Gs2Freeze.Output|null = null;
|
|
22
|
+
|
|
23
|
+
public getItem(): Gs2Freeze.Output|null {
|
|
24
|
+
return this.item;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public setItem(item: Gs2Freeze.Output|null) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public withItem(item: Gs2Freeze.Output|null): this {
|
|
33
|
+
this.item = item;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public static fromDict(data: {[key: string]: any}): GetOutputResult {
|
|
38
|
+
return new GetOutputResult()
|
|
39
|
+
.withItem(Gs2Freeze.Output.fromDict(data["item"]));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public toDict(): {[key: string]: any} {
|
|
43
|
+
return {
|
|
44
|
+
"item": this.getItem()?.toDict(),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Freeze from '../model';
|
|
3
|
+
export default class GetStageResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
private source;
|
|
6
|
+
private current;
|
|
7
|
+
getItem(): Gs2Freeze.Stage | null;
|
|
8
|
+
setItem(item: Gs2Freeze.Stage | null): this;
|
|
9
|
+
withItem(item: Gs2Freeze.Stage | null): this;
|
|
10
|
+
getSource(): Gs2Freeze.Microservice[] | null;
|
|
11
|
+
setSource(source: Gs2Freeze.Microservice[] | null): this;
|
|
12
|
+
withSource(source: Gs2Freeze.Microservice[] | null): this;
|
|
13
|
+
getCurrent(): Gs2Freeze.Microservice[] | null;
|
|
14
|
+
setCurrent(current: Gs2Freeze.Microservice[] | null): this;
|
|
15
|
+
withCurrent(current: Gs2Freeze.Microservice[] | null): this;
|
|
16
|
+
static fromDict(data: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}): GetStageResult;
|
|
19
|
+
toDict(): {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
}
|