gs2 1.4.77 → 1.4.78
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/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/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
exports.Gs2FreezeRestClient = exports.result = exports.request = exports.model = void 0;
|
|
19
|
+
var tslib_1 = require("tslib");
|
|
20
|
+
var model = tslib_1.__importStar(require("./model"));
|
|
21
|
+
exports.model = model;
|
|
22
|
+
var request = tslib_1.__importStar(require("./request"));
|
|
23
|
+
exports.request = request;
|
|
24
|
+
var result = tslib_1.__importStar(require("./result"));
|
|
25
|
+
exports.result = result;
|
|
26
|
+
var rest_1 = tslib_1.__importDefault(require("./rest"));
|
|
27
|
+
exports.Gs2FreezeRestClient = rest_1.default;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,qDAAiC;AAM7B,sBAAK;AALT,yDAAqC;AAMjC,0BAAO;AALX,uDAAmC;AAM/B,wBAAM;AALV,wDAAyC;AAMrC,8BANG,cAAmB,CAMH"}
|
package/freeze/index.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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 * as model from './model';
|
|
18
|
+
import * as request from './request';
|
|
19
|
+
import * as result from './result';
|
|
20
|
+
import Gs2FreezeRestClient from './rest';
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
model,
|
|
24
|
+
request,
|
|
25
|
+
result,
|
|
26
|
+
Gs2FreezeRestClient,
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class Microservice implements IModel {
|
|
3
|
+
private name;
|
|
4
|
+
private version;
|
|
5
|
+
getName(): string | null;
|
|
6
|
+
setName(name: string | null): this;
|
|
7
|
+
withName(name: string | null): this;
|
|
8
|
+
getVersion(): string | null;
|
|
9
|
+
setVersion(version: string | null): this;
|
|
10
|
+
withVersion(version: string | null): this;
|
|
11
|
+
static fromDict(data: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}): Microservice | null;
|
|
14
|
+
toDict(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 Microservice = /** @class */ (function () {
|
|
19
|
+
function Microservice() {
|
|
20
|
+
this.name = null;
|
|
21
|
+
this.version = null;
|
|
22
|
+
}
|
|
23
|
+
Microservice.prototype.getName = function () {
|
|
24
|
+
return this.name;
|
|
25
|
+
};
|
|
26
|
+
Microservice.prototype.setName = function (name) {
|
|
27
|
+
this.name = name;
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
Microservice.prototype.withName = function (name) {
|
|
31
|
+
this.name = name;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
Microservice.prototype.getVersion = function () {
|
|
35
|
+
return this.version;
|
|
36
|
+
};
|
|
37
|
+
Microservice.prototype.setVersion = function (version) {
|
|
38
|
+
this.version = version;
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
Microservice.prototype.withVersion = function (version) {
|
|
42
|
+
this.version = version;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
Microservice.fromDict = function (data) {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new Microservice()
|
|
50
|
+
.withName(data["name"])
|
|
51
|
+
.withVersion(data["version"]);
|
|
52
|
+
};
|
|
53
|
+
Microservice.prototype.toDict = function () {
|
|
54
|
+
return {
|
|
55
|
+
"name": this.getName(),
|
|
56
|
+
"version": this.getVersion(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return Microservice;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = Microservice;
|
|
62
|
+
//# sourceMappingURL=Microservice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Microservice.js","sourceRoot":"","sources":["Microservice.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,YAAO,GAAgB,IAAI,CAAC;IAuCxC,CAAC;IAtCU,8BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,8BAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+BAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,iCAAU,GAAjB;QACI,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACM,iCAAU,GAAjB,UAAkB,OAAoB;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAW,GAAlB,UAAmB,OAAoB;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,YAAY,EAAE;aACpB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,6BAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,mBAAC;AAAD,CAAC,AAzCD,IAyCC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 IModel from '../../core/interface/IModel';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Freeze from '../../freeze/model'
|
|
20
|
+
|
|
21
|
+
export default class Microservice implements IModel {
|
|
22
|
+
private name: string|null = null;
|
|
23
|
+
private version: string|null = null;
|
|
24
|
+
public getName(): string|null {
|
|
25
|
+
return this.name;
|
|
26
|
+
}
|
|
27
|
+
public setName(name: string|null) {
|
|
28
|
+
this.name = name;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
public withName(name: string|null): this {
|
|
32
|
+
this.name = name;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
public getVersion(): string|null {
|
|
36
|
+
return this.version;
|
|
37
|
+
}
|
|
38
|
+
public setVersion(version: string|null) {
|
|
39
|
+
this.version = version;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
public withVersion(version: string|null): this {
|
|
43
|
+
this.version = version;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public static fromDict(data: {[key: string]: any}): Microservice|null {
|
|
48
|
+
if (data == undefined || data == null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return new Microservice()
|
|
52
|
+
.withName(data["name"])
|
|
53
|
+
.withVersion(data["version"]);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public toDict(): {[key: string]: any} {
|
|
57
|
+
return {
|
|
58
|
+
"name": this.getName(),
|
|
59
|
+
"version": this.getVersion(),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class Output implements IModel {
|
|
3
|
+
private outputId;
|
|
4
|
+
private name;
|
|
5
|
+
private text;
|
|
6
|
+
private createdAt;
|
|
7
|
+
private revision;
|
|
8
|
+
static getRegion(grn: string): string | null;
|
|
9
|
+
static getOwnerId(grn: string): string | null;
|
|
10
|
+
static getStageName(grn: string): string | null;
|
|
11
|
+
static getOutputName(grn: string): string | null;
|
|
12
|
+
static isValid(grn: string): boolean;
|
|
13
|
+
static createGrn(region: string | null, ownerId: string | null, stageName: string | null, outputName: string | null): string | null;
|
|
14
|
+
getOutputId(): string | null;
|
|
15
|
+
setOutputId(outputId: string | null): this;
|
|
16
|
+
withOutputId(outputId: string | null): this;
|
|
17
|
+
getName(): string | null;
|
|
18
|
+
setName(name: string | null): this;
|
|
19
|
+
withName(name: string | null): this;
|
|
20
|
+
getText(): string | null;
|
|
21
|
+
setText(text: string | null): this;
|
|
22
|
+
withText(text: string | null): this;
|
|
23
|
+
getCreatedAt(): number | null;
|
|
24
|
+
setCreatedAt(createdAt: number | null): this;
|
|
25
|
+
withCreatedAt(createdAt: number | null): this;
|
|
26
|
+
getRevision(): number | null;
|
|
27
|
+
setRevision(revision: number | null): this;
|
|
28
|
+
withRevision(revision: number | null): this;
|
|
29
|
+
static fromDict(data: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}): Output | null;
|
|
32
|
+
toDict(): {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
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 grnFormat = "grn:gs2:{region}:{ownerId}:freeze:{stageName}:output:{outputName}";
|
|
19
|
+
var Output = /** @class */ (function () {
|
|
20
|
+
function Output() {
|
|
21
|
+
this.outputId = null;
|
|
22
|
+
this.name = null;
|
|
23
|
+
this.text = null;
|
|
24
|
+
this.createdAt = null;
|
|
25
|
+
this.revision = null;
|
|
26
|
+
}
|
|
27
|
+
Output.getRegion = function (grn) {
|
|
28
|
+
var match = grn.match(grnFormat
|
|
29
|
+
.replace('{region}', '(.*)')
|
|
30
|
+
.replace('{ownerId}', '.*')
|
|
31
|
+
.replace('{stageName}', '.*')
|
|
32
|
+
.replace('{outputName}', '.*'));
|
|
33
|
+
if (match) {
|
|
34
|
+
return match[1];
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
38
|
+
Output.getOwnerId = function (grn) {
|
|
39
|
+
var match = grn.match(grnFormat
|
|
40
|
+
.replace('{region}', '.*')
|
|
41
|
+
.replace('{ownerId}', '(.*)')
|
|
42
|
+
.replace('{stageName}', '.*')
|
|
43
|
+
.replace('{outputName}', '.*'));
|
|
44
|
+
if (match) {
|
|
45
|
+
return match[1];
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
49
|
+
Output.getStageName = function (grn) {
|
|
50
|
+
var match = grn.match(grnFormat
|
|
51
|
+
.replace('{region}', '.*')
|
|
52
|
+
.replace('{ownerId}', '.*')
|
|
53
|
+
.replace('{stageName}', '(.*)')
|
|
54
|
+
.replace('{outputName}', '.*'));
|
|
55
|
+
if (match) {
|
|
56
|
+
return match[1];
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
Output.getOutputName = function (grn) {
|
|
61
|
+
var match = grn.match(grnFormat
|
|
62
|
+
.replace('{region}', '.*')
|
|
63
|
+
.replace('{ownerId}', '.*')
|
|
64
|
+
.replace('{stageName}', '.*')
|
|
65
|
+
.replace('{outputName}', '(.*)'));
|
|
66
|
+
if (match) {
|
|
67
|
+
return match[1];
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
};
|
|
71
|
+
Output.isValid = function (grn) {
|
|
72
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
if (this.getStageName(grn) == null || this.getStageName(grn) === '') {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
if (this.getOutputName(grn) == null || this.getOutputName(grn) === '') {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
};
|
|
86
|
+
Output.createGrn = function (region, ownerId, stageName, outputName) {
|
|
87
|
+
return grnFormat
|
|
88
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
89
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
90
|
+
.replace('{stageName}', stageName !== null && stageName !== void 0 ? stageName : '')
|
|
91
|
+
.replace('{outputName}', outputName !== null && outputName !== void 0 ? outputName : '');
|
|
92
|
+
};
|
|
93
|
+
Output.prototype.getOutputId = function () {
|
|
94
|
+
return this.outputId;
|
|
95
|
+
};
|
|
96
|
+
Output.prototype.setOutputId = function (outputId) {
|
|
97
|
+
this.outputId = outputId;
|
|
98
|
+
return this;
|
|
99
|
+
};
|
|
100
|
+
Output.prototype.withOutputId = function (outputId) {
|
|
101
|
+
this.outputId = outputId;
|
|
102
|
+
return this;
|
|
103
|
+
};
|
|
104
|
+
Output.prototype.getName = function () {
|
|
105
|
+
return this.name;
|
|
106
|
+
};
|
|
107
|
+
Output.prototype.setName = function (name) {
|
|
108
|
+
this.name = name;
|
|
109
|
+
return this;
|
|
110
|
+
};
|
|
111
|
+
Output.prototype.withName = function (name) {
|
|
112
|
+
this.name = name;
|
|
113
|
+
return this;
|
|
114
|
+
};
|
|
115
|
+
Output.prototype.getText = function () {
|
|
116
|
+
return this.text;
|
|
117
|
+
};
|
|
118
|
+
Output.prototype.setText = function (text) {
|
|
119
|
+
this.text = text;
|
|
120
|
+
return this;
|
|
121
|
+
};
|
|
122
|
+
Output.prototype.withText = function (text) {
|
|
123
|
+
this.text = text;
|
|
124
|
+
return this;
|
|
125
|
+
};
|
|
126
|
+
Output.prototype.getCreatedAt = function () {
|
|
127
|
+
return this.createdAt;
|
|
128
|
+
};
|
|
129
|
+
Output.prototype.setCreatedAt = function (createdAt) {
|
|
130
|
+
this.createdAt = createdAt;
|
|
131
|
+
return this;
|
|
132
|
+
};
|
|
133
|
+
Output.prototype.withCreatedAt = function (createdAt) {
|
|
134
|
+
this.createdAt = createdAt;
|
|
135
|
+
return this;
|
|
136
|
+
};
|
|
137
|
+
Output.prototype.getRevision = function () {
|
|
138
|
+
return this.revision;
|
|
139
|
+
};
|
|
140
|
+
Output.prototype.setRevision = function (revision) {
|
|
141
|
+
this.revision = revision;
|
|
142
|
+
return this;
|
|
143
|
+
};
|
|
144
|
+
Output.prototype.withRevision = function (revision) {
|
|
145
|
+
this.revision = revision;
|
|
146
|
+
return this;
|
|
147
|
+
};
|
|
148
|
+
Output.fromDict = function (data) {
|
|
149
|
+
if (data == undefined || data == null) {
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
return new Output()
|
|
153
|
+
.withOutputId(data["outputId"])
|
|
154
|
+
.withName(data["name"])
|
|
155
|
+
.withText(data["text"])
|
|
156
|
+
.withCreatedAt(data["createdAt"])
|
|
157
|
+
.withRevision(data["revision"]);
|
|
158
|
+
};
|
|
159
|
+
Output.prototype.toDict = function () {
|
|
160
|
+
return {
|
|
161
|
+
"outputId": this.getOutputId(),
|
|
162
|
+
"name": this.getName(),
|
|
163
|
+
"text": this.getText(),
|
|
164
|
+
"createdAt": this.getCreatedAt(),
|
|
165
|
+
"revision": this.getRevision(),
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
return Output;
|
|
169
|
+
}());
|
|
170
|
+
exports.default = Output;
|
|
171
|
+
//# sourceMappingURL=Output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Output.js","sourceRoot":"","sources":["Output.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAKH,IAAM,SAAS,GAAW,mEAAmE,CAAC;AAE9F;IAAA;QACY,aAAQ,GAAgB,IAAI,CAAC;QAC7B,SAAI,GAAgB,IAAI,CAAC;QACzB,SAAI,GAAgB,IAAI,CAAC;QACzB,cAAS,GAAgB,IAAI,CAAC;QAC9B,aAAQ,GAAgB,IAAI,CAAC;IA+JzC,CAAC;IA7JiB,gBAAS,GAAvB,UAAwB,GAAW;QAC/B,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC;aAC3B,OAAO,CAAC,WAA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AAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6BAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,eAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,MAAM,EAAE;aACd,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxC,CAAC;IAEM,uBAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,aAAC;AAAD,CAAC,AApKD,IAoKC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
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 IModel from '../../core/interface/IModel';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Freeze from '../../freeze/model'
|
|
20
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:freeze:{stageName}:output:{outputName}";
|
|
21
|
+
|
|
22
|
+
export default class Output implements IModel {
|
|
23
|
+
private outputId: string|null = null;
|
|
24
|
+
private name: string|null = null;
|
|
25
|
+
private text: string|null = null;
|
|
26
|
+
private createdAt: number|null = null;
|
|
27
|
+
private revision: number|null = null;
|
|
28
|
+
|
|
29
|
+
public static getRegion(grn: string): string|null {
|
|
30
|
+
const match = grn.match(grnFormat
|
|
31
|
+
.replace('{region}', '(.*)')
|
|
32
|
+
.replace('{ownerId}', '.*')
|
|
33
|
+
.replace('{stageName}', '.*')
|
|
34
|
+
.replace('{outputName}', '.*')
|
|
35
|
+
);
|
|
36
|
+
if (match) {
|
|
37
|
+
return match[1];
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public static getOwnerId(grn: string): string|null {
|
|
43
|
+
const match = grn.match(grnFormat
|
|
44
|
+
.replace('{region}', '.*')
|
|
45
|
+
.replace('{ownerId}', '(.*)')
|
|
46
|
+
.replace('{stageName}', '.*')
|
|
47
|
+
.replace('{outputName}', '.*')
|
|
48
|
+
);
|
|
49
|
+
if (match) {
|
|
50
|
+
return match[1];
|
|
51
|
+
}
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public static getStageName(grn: string): string|null {
|
|
56
|
+
const match = grn.match(grnFormat
|
|
57
|
+
.replace('{region}', '.*')
|
|
58
|
+
.replace('{ownerId}', '.*')
|
|
59
|
+
.replace('{stageName}', '(.*)')
|
|
60
|
+
.replace('{outputName}', '.*')
|
|
61
|
+
);
|
|
62
|
+
if (match) {
|
|
63
|
+
return match[1];
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
public static getOutputName(grn: string): string|null {
|
|
69
|
+
const match = grn.match(grnFormat
|
|
70
|
+
.replace('{region}', '.*')
|
|
71
|
+
.replace('{ownerId}', '.*')
|
|
72
|
+
.replace('{stageName}', '.*')
|
|
73
|
+
.replace('{outputName}', '(.*)')
|
|
74
|
+
);
|
|
75
|
+
if (match) {
|
|
76
|
+
return match[1];
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
public static isValid(grn: string): boolean {
|
|
82
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
if (this.getStageName(grn) == null || this.getStageName(grn) === '') {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
if (this.getOutputName(grn) == null || this.getOutputName(grn) === '') {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public static createGrn(
|
|
98
|
+
region: string|null,
|
|
99
|
+
ownerId: string|null,
|
|
100
|
+
stageName: string|null,
|
|
101
|
+
outputName: string|null,
|
|
102
|
+
): string|null {
|
|
103
|
+
return grnFormat
|
|
104
|
+
.replace('{region}', region ?? '')
|
|
105
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
106
|
+
.replace('{stageName}', stageName ?? '')
|
|
107
|
+
.replace('{outputName}', outputName ?? '');
|
|
108
|
+
}
|
|
109
|
+
public getOutputId(): string|null {
|
|
110
|
+
return this.outputId;
|
|
111
|
+
}
|
|
112
|
+
public setOutputId(outputId: string|null) {
|
|
113
|
+
this.outputId = outputId;
|
|
114
|
+
return this;
|
|
115
|
+
}
|
|
116
|
+
public withOutputId(outputId: string|null): this {
|
|
117
|
+
this.outputId = outputId;
|
|
118
|
+
return this;
|
|
119
|
+
}
|
|
120
|
+
public getName(): string|null {
|
|
121
|
+
return this.name;
|
|
122
|
+
}
|
|
123
|
+
public setName(name: string|null) {
|
|
124
|
+
this.name = name;
|
|
125
|
+
return this;
|
|
126
|
+
}
|
|
127
|
+
public withName(name: string|null): this {
|
|
128
|
+
this.name = name;
|
|
129
|
+
return this;
|
|
130
|
+
}
|
|
131
|
+
public getText(): string|null {
|
|
132
|
+
return this.text;
|
|
133
|
+
}
|
|
134
|
+
public setText(text: string|null) {
|
|
135
|
+
this.text = text;
|
|
136
|
+
return this;
|
|
137
|
+
}
|
|
138
|
+
public withText(text: string|null): this {
|
|
139
|
+
this.text = text;
|
|
140
|
+
return this;
|
|
141
|
+
}
|
|
142
|
+
public getCreatedAt(): number|null {
|
|
143
|
+
return this.createdAt;
|
|
144
|
+
}
|
|
145
|
+
public setCreatedAt(createdAt: number|null) {
|
|
146
|
+
this.createdAt = createdAt;
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
149
|
+
public withCreatedAt(createdAt: number|null): this {
|
|
150
|
+
this.createdAt = createdAt;
|
|
151
|
+
return this;
|
|
152
|
+
}
|
|
153
|
+
public getRevision(): number|null {
|
|
154
|
+
return this.revision;
|
|
155
|
+
}
|
|
156
|
+
public setRevision(revision: number|null) {
|
|
157
|
+
this.revision = revision;
|
|
158
|
+
return this;
|
|
159
|
+
}
|
|
160
|
+
public withRevision(revision: number|null): this {
|
|
161
|
+
this.revision = revision;
|
|
162
|
+
return this;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
public static fromDict(data: {[key: string]: any}): Output|null {
|
|
166
|
+
if (data == undefined || data == null) {
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
return new Output()
|
|
170
|
+
.withOutputId(data["outputId"])
|
|
171
|
+
.withName(data["name"])
|
|
172
|
+
.withText(data["text"])
|
|
173
|
+
.withCreatedAt(data["createdAt"])
|
|
174
|
+
.withRevision(data["revision"]);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
public toDict(): {[key: string]: any} {
|
|
178
|
+
return {
|
|
179
|
+
"outputId": this.getOutputId(),
|
|
180
|
+
"name": this.getName(),
|
|
181
|
+
"text": this.getText(),
|
|
182
|
+
"createdAt": this.getCreatedAt(),
|
|
183
|
+
"revision": this.getRevision(),
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class Stage implements IModel {
|
|
3
|
+
private stageId;
|
|
4
|
+
private name;
|
|
5
|
+
private sourceStageName;
|
|
6
|
+
private sortNumber;
|
|
7
|
+
private status;
|
|
8
|
+
private createdAt;
|
|
9
|
+
private updatedAt;
|
|
10
|
+
private revision;
|
|
11
|
+
static getRegion(grn: string): string | null;
|
|
12
|
+
static getOwnerId(grn: string): string | null;
|
|
13
|
+
static getStageName(grn: string): string | null;
|
|
14
|
+
static isValid(grn: string): boolean;
|
|
15
|
+
static createGrn(region: string | null, ownerId: string | null, stageName: string | null): string | null;
|
|
16
|
+
getStageId(): string | null;
|
|
17
|
+
setStageId(stageId: string | null): this;
|
|
18
|
+
withStageId(stageId: string | null): this;
|
|
19
|
+
getName(): string | null;
|
|
20
|
+
setName(name: string | null): this;
|
|
21
|
+
withName(name: string | null): this;
|
|
22
|
+
getSourceStageName(): string | null;
|
|
23
|
+
setSourceStageName(sourceStageName: string | null): this;
|
|
24
|
+
withSourceStageName(sourceStageName: string | null): this;
|
|
25
|
+
getSortNumber(): number | null;
|
|
26
|
+
setSortNumber(sortNumber: number | null): this;
|
|
27
|
+
withSortNumber(sortNumber: number | null): this;
|
|
28
|
+
getStatus(): string | null;
|
|
29
|
+
setStatus(status: string | null): this;
|
|
30
|
+
withStatus(status: string | null): this;
|
|
31
|
+
getCreatedAt(): number | null;
|
|
32
|
+
setCreatedAt(createdAt: number | null): this;
|
|
33
|
+
withCreatedAt(createdAt: number | null): this;
|
|
34
|
+
getUpdatedAt(): number | null;
|
|
35
|
+
setUpdatedAt(updatedAt: number | null): this;
|
|
36
|
+
withUpdatedAt(updatedAt: number | null): this;
|
|
37
|
+
getRevision(): number | null;
|
|
38
|
+
setRevision(revision: number | null): this;
|
|
39
|
+
withRevision(revision: number | null): this;
|
|
40
|
+
static fromDict(data: {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}): Stage | null;
|
|
43
|
+
toDict(): {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
}
|