gs2-cdk 1.0.112 → 1.0.113
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 +12 -0
- package/freeze/index.js +32 -0
- package/freeze/index.js.map +1 -0
- package/freeze/index.ts +36 -0
- package/freeze/model/Microservice.d.ts +9 -0
- package/freeze/model/Microservice.js +20 -0
- package/freeze/model/Microservice.js.map +1 -0
- package/freeze/model/Microservice.ts +44 -0
- package/freeze/model/Output.d.ts +9 -0
- package/freeze/model/Output.js +19 -0
- package/freeze/model/Output.js.map +1 -0
- package/freeze/model/Output.ts +40 -0
- package/freeze/model/Stage.d.ts +19 -0
- package/freeze/model/Stage.js +64 -0
- package/freeze/model/Stage.js.map +1 -0
- package/freeze/model/Stage.ts +99 -0
- package/freeze/model/enums/StageStatus.d.ts +6 -0
- package/freeze/model/enums/StageStatus.js +24 -0
- package/freeze/model/enums/StageStatus.js.map +1 -0
- package/freeze/model/enums/StageStatus.ts +24 -0
- package/freeze/model/index.d.ts +8 -0
- package/freeze/model/index.js +28 -0
- package/freeze/model/index.js.map +1 -0
- package/freeze/model/index.ts +32 -0
- package/freeze/model/options/MicroserviceOptions.d.ts +2 -0
- package/freeze/model/options/MicroserviceOptions.js +18 -0
- package/freeze/model/options/MicroserviceOptions.js.map +1 -0
- package/freeze/model/options/MicroserviceOptions.ts +19 -0
- package/freeze/model/options/OutputOptions.d.ts +3 -0
- package/freeze/model/options/OutputOptions.js +18 -0
- package/freeze/model/options/OutputOptions.js.map +1 -0
- package/freeze/model/options/OutputOptions.ts +20 -0
- package/freeze/model/options/StageOptions.d.ts +3 -0
- package/freeze/model/options/StageOptions.js +18 -0
- package/freeze/model/options/StageOptions.js.map +1 -0
- package/freeze/model/options/StageOptions.ts +20 -0
- package/freeze/ref/OutputRef.d.ts +6 -0
- package/freeze/ref/OutputRef.js +38 -0
- package/freeze/ref/OutputRef.js.map +1 -0
- package/freeze/ref/OutputRef.ts +52 -0
- package/freeze/ref/StageRef.d.ts +5 -0
- package/freeze/ref/StageRef.js +35 -0
- package/freeze/ref/StageRef.js.map +1 -0
- package/freeze/ref/StageRef.ts +48 -0
- package/freeze/ref/index.d.ts +3 -0
- package/freeze/ref/index.js +24 -0
- package/freeze/ref/index.js.map +1 -0
- package/freeze/ref/index.ts +22 -0
- package/freeze/stampSheet/index.d.ts +1 -0
- package/freeze/stampSheet/index.js +18 -0
- package/freeze/stampSheet/index.js.map +1 -0
- package/freeze/stampSheet/index.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as model from "./model";
|
|
2
|
+
import * as ref from "./ref";
|
|
3
|
+
import * as stampSheet from "./stampSheet";
|
|
4
|
+
import { StageRef } from "./ref";
|
|
5
|
+
declare function stage(stageName: string): StageRef;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
model: typeof model;
|
|
8
|
+
ref: typeof ref;
|
|
9
|
+
stampSheet: typeof stampSheet;
|
|
10
|
+
stage: typeof stage;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
package/freeze/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
const tslib_1 = require("tslib");
|
|
19
|
+
const model = tslib_1.__importStar(require("./model"));
|
|
20
|
+
const ref = tslib_1.__importStar(require("./ref"));
|
|
21
|
+
const stampSheet = tslib_1.__importStar(require("./stampSheet"));
|
|
22
|
+
const ref_1 = require("./ref");
|
|
23
|
+
function stage(stageName) {
|
|
24
|
+
return new ref_1.StageRef(stageName);
|
|
25
|
+
}
|
|
26
|
+
exports.default = {
|
|
27
|
+
model,
|
|
28
|
+
ref,
|
|
29
|
+
stampSheet,
|
|
30
|
+
stage,
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uDAAiC;AACjC,mDAA6B;AAC7B,iEAA2C;AAC3C,+BAAiC;AAGjC,SAAS,KAAK,CACV,SAAiB;IAEjB,OAAO,IAAI,cAAQ,CACf,SAAS,CACZ,CAAC;AACN,CAAC;AAED,kBAAe;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,KAAK;CACR,CAAC"}
|
package/freeze/index.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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 ref from "./ref";
|
|
19
|
+
import * as stampSheet from "./stampSheet";
|
|
20
|
+
import { StageRef } from "./ref";
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
function stage(
|
|
24
|
+
stageName: string,
|
|
25
|
+
): StageRef {
|
|
26
|
+
return new StageRef(
|
|
27
|
+
stageName,
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
model,
|
|
33
|
+
ref,
|
|
34
|
+
stampSheet,
|
|
35
|
+
stage,
|
|
36
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MicroserviceOptions } from "./options/MicroserviceOptions";
|
|
2
|
+
export default class Microservice {
|
|
3
|
+
private readonly name;
|
|
4
|
+
private readonly version;
|
|
5
|
+
constructor(name: string, version: string, options?: MicroserviceOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Microservice {
|
|
4
|
+
constructor(name, version, options = null) {
|
|
5
|
+
this.name = name;
|
|
6
|
+
this.version = version;
|
|
7
|
+
}
|
|
8
|
+
properties() {
|
|
9
|
+
let properties = {};
|
|
10
|
+
if (this.name != null) {
|
|
11
|
+
properties["name"] = this.name;
|
|
12
|
+
}
|
|
13
|
+
if (this.version != null) {
|
|
14
|
+
properties["version"] = this.version;
|
|
15
|
+
}
|
|
16
|
+
return properties;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = Microservice;
|
|
20
|
+
//# sourceMappingURL=Microservice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Microservice.js","sourceRoot":"","sources":["Microservice.ts"],"names":[],"mappings":";;AAiBA,MAAqB,YAAY;IAI7B,YACI,IAAY,EACZ,OAAe,EACf,UAAoC,IAAI;QAExC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,+BA0BC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { MicroserviceOptions } from "./options/MicroserviceOptions";
|
|
17
|
+
|
|
18
|
+
export default class Microservice {
|
|
19
|
+
private readonly name: string;
|
|
20
|
+
private readonly version: string;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
name: string,
|
|
24
|
+
version: string,
|
|
25
|
+
options: MicroserviceOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.name = name;
|
|
28
|
+
this.version = version;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.name != null) {
|
|
36
|
+
properties["name"] = this.name;
|
|
37
|
+
}
|
|
38
|
+
if (this.version != null) {
|
|
39
|
+
properties["version"] = this.version;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Output {
|
|
4
|
+
constructor(text, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.revision = null;
|
|
7
|
+
this.text = text;
|
|
8
|
+
this.revision = (_a = options === null || options === void 0 ? void 0 : options.revision) !== null && _a !== void 0 ? _a : null;
|
|
9
|
+
}
|
|
10
|
+
properties() {
|
|
11
|
+
let properties = {};
|
|
12
|
+
if (this.text != null) {
|
|
13
|
+
properties["text"] = this.text;
|
|
14
|
+
}
|
|
15
|
+
return properties;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.default = Output;
|
|
19
|
+
//# sourceMappingURL=Output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Output.js","sourceRoot":"","sources":["Output.ts"],"names":[],"mappings":";;AAiBA,MAAqB,MAAM;IAIvB,YACI,IAAY,EACZ,UAA8B,IAAI;;QAJrB,aAAQ,GAAgB,IAAI,CAAC;QAM1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAtBD,yBAsBC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import { OutputOptions } from "./options/OutputOptions";
|
|
17
|
+
|
|
18
|
+
export default class Output {
|
|
19
|
+
private readonly text: string;
|
|
20
|
+
private readonly revision: number|null = null;
|
|
21
|
+
|
|
22
|
+
public constructor(
|
|
23
|
+
text: string,
|
|
24
|
+
options: OutputOptions|null = null,
|
|
25
|
+
) {
|
|
26
|
+
this.text = text;
|
|
27
|
+
this.revision = options?.revision ?? null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public properties(
|
|
31
|
+
): {[name: string]: any} {
|
|
32
|
+
let properties: {[name: string]: any} = {};
|
|
33
|
+
|
|
34
|
+
if (this.text != null) {
|
|
35
|
+
properties["text"] = this.text;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return properties;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CdkResource, Stack } from "../../core/model";
|
|
2
|
+
import { GetAttr } from "../../core/func";
|
|
3
|
+
import StageRef from "../ref/StageRef";
|
|
4
|
+
import { StageOptions } from "./options/StageOptions";
|
|
5
|
+
export default class Stage extends CdkResource {
|
|
6
|
+
private readonly stack;
|
|
7
|
+
private readonly ownerId;
|
|
8
|
+
private readonly name;
|
|
9
|
+
private readonly sortNumber;
|
|
10
|
+
private readonly sourceStageName;
|
|
11
|
+
constructor(stack: Stack, ownerId: string, name: string, sortNumber: number, options?: StageOptions | null);
|
|
12
|
+
alternateKeys(): string;
|
|
13
|
+
resourceType(): string;
|
|
14
|
+
properties(): {
|
|
15
|
+
[name: string]: any;
|
|
16
|
+
};
|
|
17
|
+
ref(): StageRef;
|
|
18
|
+
getAttrStageId(): GetAttr;
|
|
19
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
const tslib_1 = require("tslib");
|
|
19
|
+
const model_1 = require("../../core/model");
|
|
20
|
+
const func_1 = require("../../core/func");
|
|
21
|
+
const StageRef_1 = tslib_1.__importDefault(require("../ref/StageRef"));
|
|
22
|
+
class Stage extends model_1.CdkResource {
|
|
23
|
+
constructor(stack, ownerId, name, sortNumber, options = null) {
|
|
24
|
+
var _a;
|
|
25
|
+
super("Freeze_Stage_" + name);
|
|
26
|
+
this.sourceStageName = null;
|
|
27
|
+
this.stack = stack;
|
|
28
|
+
this.ownerId = ownerId;
|
|
29
|
+
this.name = name;
|
|
30
|
+
this.sortNumber = sortNumber;
|
|
31
|
+
this.sourceStageName = (_a = options === null || options === void 0 ? void 0 : options.sourceStageName) !== null && _a !== void 0 ? _a : null;
|
|
32
|
+
stack.addResource(this);
|
|
33
|
+
}
|
|
34
|
+
alternateKeys() {
|
|
35
|
+
return "name";
|
|
36
|
+
}
|
|
37
|
+
resourceType() {
|
|
38
|
+
return "GS2::Freeze::Stage";
|
|
39
|
+
}
|
|
40
|
+
properties() {
|
|
41
|
+
let properties = {};
|
|
42
|
+
if (this.ownerId != null) {
|
|
43
|
+
properties["OwnerId"] = this.ownerId;
|
|
44
|
+
}
|
|
45
|
+
if (this.name != null) {
|
|
46
|
+
properties["Name"] = this.name;
|
|
47
|
+
}
|
|
48
|
+
if (this.sourceStageName != null) {
|
|
49
|
+
properties["SourceStageName"] = this.sourceStageName;
|
|
50
|
+
}
|
|
51
|
+
if (this.sortNumber != null) {
|
|
52
|
+
properties["SortNumber"] = this.sortNumber;
|
|
53
|
+
}
|
|
54
|
+
return properties;
|
|
55
|
+
}
|
|
56
|
+
ref() {
|
|
57
|
+
return new StageRef_1.default(this.name);
|
|
58
|
+
}
|
|
59
|
+
getAttrStageId() {
|
|
60
|
+
return new func_1.GetAttr(this, "Item.StageId", null);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.default = Stage;
|
|
64
|
+
//# sourceMappingURL=Stage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stage.js","sourceRoot":"","sources":["Stage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAExC,uEAAuC;AAKvC,MAAqB,KAAM,SAAQ,mBAAW;IAO1C,YACI,KAAY,EACZ,OAAe,EACf,IAAY,EACZ,UAAkB,EAClB,UAA6B,IAAI;;QAEjC,KAAK,CACD,eAAe,GAAG,IAAI,CACzB,CAAC;QAXW,oBAAe,GAAgB,IAAI,CAAC;QAajD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,IAAI,CAAC;QACxD,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,YAAY;QAEf,OAAO,oBAAoB,CAAC;IAChC,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,kBAAQ,CACf,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,cAAc;QAEjB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,cAAc,EACd,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AA1ED,wBA0EC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 {CdkResource, Stack} from "../../core/model";
|
|
18
|
+
import {GetAttr} from "../../core/func";
|
|
19
|
+
|
|
20
|
+
import StageRef from "../ref/StageRef";
|
|
21
|
+
import { StageStatus } from "./enums/StageStatus";
|
|
22
|
+
|
|
23
|
+
import { StageOptions } from "./options/StageOptions";
|
|
24
|
+
|
|
25
|
+
export default class Stage extends CdkResource {
|
|
26
|
+
private readonly stack: Stack;
|
|
27
|
+
private readonly ownerId: string;
|
|
28
|
+
private readonly name: string;
|
|
29
|
+
private readonly sortNumber: number;
|
|
30
|
+
private readonly sourceStageName: string|null = null;
|
|
31
|
+
|
|
32
|
+
public constructor(
|
|
33
|
+
stack: Stack,
|
|
34
|
+
ownerId: string,
|
|
35
|
+
name: string,
|
|
36
|
+
sortNumber: number,
|
|
37
|
+
options: StageOptions|null = null,
|
|
38
|
+
) {
|
|
39
|
+
super(
|
|
40
|
+
"Freeze_Stage_" + name
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
this.stack = stack;
|
|
44
|
+
this.ownerId = ownerId;
|
|
45
|
+
this.name = name;
|
|
46
|
+
this.sortNumber = sortNumber;
|
|
47
|
+
this.sourceStageName = options?.sourceStageName ?? null;
|
|
48
|
+
stack.addResource(
|
|
49
|
+
this,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
public alternateKeys(
|
|
55
|
+
) {
|
|
56
|
+
return "name";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public resourceType(
|
|
60
|
+
): string {
|
|
61
|
+
return "GS2::Freeze::Stage";
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
public properties(
|
|
65
|
+
): {[name: string]: any} {
|
|
66
|
+
let properties: {[name: string]: any} = {};
|
|
67
|
+
|
|
68
|
+
if (this.ownerId != null) {
|
|
69
|
+
properties["OwnerId"] = this.ownerId;
|
|
70
|
+
}
|
|
71
|
+
if (this.name != null) {
|
|
72
|
+
properties["Name"] = this.name;
|
|
73
|
+
}
|
|
74
|
+
if (this.sourceStageName != null) {
|
|
75
|
+
properties["SourceStageName"] = this.sourceStageName;
|
|
76
|
+
}
|
|
77
|
+
if (this.sortNumber != null) {
|
|
78
|
+
properties["SortNumber"] = this.sortNumber;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return properties;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
public ref(
|
|
85
|
+
): StageRef {
|
|
86
|
+
return new StageRef(
|
|
87
|
+
this.name!,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public getAttrStageId(
|
|
92
|
+
): GetAttr {
|
|
93
|
+
return new GetAttr(
|
|
94
|
+
this,
|
|
95
|
+
"Item.StageId",
|
|
96
|
+
null,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.StageStatus = void 0;
|
|
19
|
+
exports.StageStatus = {
|
|
20
|
+
ACTIVE: "Active",
|
|
21
|
+
UPDATING: "Updating",
|
|
22
|
+
UPDATE_FAILED: "UpdateFailed",
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=StageStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StageStatus.js","sourceRoot":"","sources":["StageStatus.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,WAAW,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,cAAc;CACvB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
18
|
+
|
|
19
|
+
export const StageStatus = {
|
|
20
|
+
ACTIVE: "Active",
|
|
21
|
+
UPDATING: "Updating",
|
|
22
|
+
UPDATE_FAILED: "UpdateFailed",
|
|
23
|
+
} as const;
|
|
24
|
+
export type StageStatus = typeof StageStatus[keyof typeof StageStatus];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Stage from "./Stage";
|
|
2
|
+
import { StageOptions } from "./options/StageOptions";
|
|
3
|
+
import { StageStatus } from "./enums/StageStatus";
|
|
4
|
+
import Output from "./Output";
|
|
5
|
+
import { OutputOptions } from "./options/OutputOptions";
|
|
6
|
+
import Microservice from "./Microservice";
|
|
7
|
+
import { MicroserviceOptions } from "./options/MicroserviceOptions";
|
|
8
|
+
export { Stage, StageOptions, StageStatus, Output, OutputOptions, Microservice, MicroserviceOptions, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Microservice = exports.Output = exports.StageStatus = exports.Stage = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
7
|
+
* Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
10
|
+
* You may not use this file except in compliance with the License.
|
|
11
|
+
* A copy of the License is located at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
16
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
17
|
+
* express or implied. See the License for the specific language governing
|
|
18
|
+
* permissions and limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
const Stage_1 = tslib_1.__importDefault(require("./Stage"));
|
|
21
|
+
exports.Stage = Stage_1.default;
|
|
22
|
+
const StageStatus_1 = require("./enums/StageStatus");
|
|
23
|
+
Object.defineProperty(exports, "StageStatus", { enumerable: true, get: function () { return StageStatus_1.StageStatus; } });
|
|
24
|
+
const Output_1 = tslib_1.__importDefault(require("./Output"));
|
|
25
|
+
exports.Output = Output_1.default;
|
|
26
|
+
const Microservice_1 = tslib_1.__importDefault(require("./Microservice"));
|
|
27
|
+
exports.Microservice = Microservice_1.default;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4DAA4B;AASxB,gBATG,eAAK,CASH;AAPT,qDAAkD;AAS9C,4FATK,yBAAW,OASL;AARf,8DAA8B;AAS1B,iBATG,gBAAM,CASH;AAPV,0EAA0C;AAStC,uBATG,sBAAY,CASH"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
import Stage from "./Stage";
|
|
17
|
+
import { StageOptions } from "./options/StageOptions";
|
|
18
|
+
import { StageStatus } from "./enums/StageStatus";
|
|
19
|
+
import Output from "./Output";
|
|
20
|
+
import { OutputOptions } from "./options/OutputOptions";
|
|
21
|
+
import Microservice from "./Microservice";
|
|
22
|
+
import { MicroserviceOptions } from "./options/MicroserviceOptions";
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
Stage,
|
|
26
|
+
StageOptions,
|
|
27
|
+
StageStatus,
|
|
28
|
+
Output,
|
|
29
|
+
OutputOptions,
|
|
30
|
+
Microservice,
|
|
31
|
+
MicroserviceOptions,
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=MicroserviceOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MicroserviceOptions.js","sourceRoot":"","sources":["MicroserviceOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export interface MicroserviceOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=OutputOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputOptions.js","sourceRoot":"","sources":["OutputOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export interface OutputOptions {
|
|
18
|
+
revision?: number|null;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=StageOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StageOptions.js","sourceRoot":"","sources":["StageOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export interface StageOptions {
|
|
18
|
+
sourceStageName?: string|null;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
const func_1 = require("../../core/func");
|
|
19
|
+
class OutputRef {
|
|
20
|
+
constructor(stageName, outputName) {
|
|
21
|
+
this.stageName = stageName;
|
|
22
|
+
this.outputName = outputName;
|
|
23
|
+
}
|
|
24
|
+
grn() {
|
|
25
|
+
return new func_1.Join(":", [
|
|
26
|
+
"grn",
|
|
27
|
+
"gs2",
|
|
28
|
+
func_1.GetAttr.region().str(),
|
|
29
|
+
func_1.GetAttr.ownerId().str(),
|
|
30
|
+
"freeze",
|
|
31
|
+
this.stageName,
|
|
32
|
+
"output",
|
|
33
|
+
this.outputName,
|
|
34
|
+
]).str();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = OutputRef;
|
|
38
|
+
//# sourceMappingURL=OutputRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputRef.js","sourceRoot":"","sources":["OutputRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,SAAS;IAI1B,YACI,SAAiB,EACjB,UAAkB;QAElB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,QAAQ;YACR,IAAI,CAAC,SAAS;YACd,QAAQ;YACR,IAAI,CAAC,UAAU;SAClB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,4BAiCC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
|
|
19
|
+
export default class OutputRef {
|
|
20
|
+
private readonly stageName: string;
|
|
21
|
+
private readonly outputName: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
stageName: string,
|
|
25
|
+
outputName: string,
|
|
26
|
+
) {
|
|
27
|
+
this.stageName = stageName;
|
|
28
|
+
this.outputName = outputName;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public grn(
|
|
32
|
+
): string {
|
|
33
|
+
return new Join(
|
|
34
|
+
":",
|
|
35
|
+
[
|
|
36
|
+
"grn",
|
|
37
|
+
"gs2",
|
|
38
|
+
GetAttr.region(
|
|
39
|
+
).str(
|
|
40
|
+
),
|
|
41
|
+
GetAttr.ownerId(
|
|
42
|
+
).str(
|
|
43
|
+
),
|
|
44
|
+
"freeze",
|
|
45
|
+
this.stageName,
|
|
46
|
+
"output",
|
|
47
|
+
this.outputName,
|
|
48
|
+
],
|
|
49
|
+
).str(
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
const func_1 = require("../../core/func");
|
|
19
|
+
class StageRef {
|
|
20
|
+
constructor(stageName) {
|
|
21
|
+
this.stageName = stageName;
|
|
22
|
+
}
|
|
23
|
+
grn() {
|
|
24
|
+
return new func_1.Join(":", [
|
|
25
|
+
"grn",
|
|
26
|
+
"gs2",
|
|
27
|
+
func_1.GetAttr.region().str(),
|
|
28
|
+
func_1.GetAttr.ownerId().str(),
|
|
29
|
+
"freeze",
|
|
30
|
+
this.stageName,
|
|
31
|
+
]).str();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.default = StageRef;
|
|
35
|
+
//# sourceMappingURL=StageRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StageRef.js","sourceRoot":"","sources":["StageRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAG9C,MAAqB,QAAQ;IAGzB,YACI,SAAiB;QAEjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,QAAQ;YACR,IAAI,CAAC,SAAS;SACjB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA5BD,2BA4BC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import OutputRef from "./OutputRef";
|
|
19
|
+
|
|
20
|
+
export default class StageRef {
|
|
21
|
+
private readonly stageName: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
stageName: string,
|
|
25
|
+
) {
|
|
26
|
+
this.stageName = stageName;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public grn(
|
|
30
|
+
): string {
|
|
31
|
+
return new Join(
|
|
32
|
+
":",
|
|
33
|
+
[
|
|
34
|
+
"grn",
|
|
35
|
+
"gs2",
|
|
36
|
+
GetAttr.region(
|
|
37
|
+
).str(
|
|
38
|
+
),
|
|
39
|
+
GetAttr.ownerId(
|
|
40
|
+
).str(
|
|
41
|
+
),
|
|
42
|
+
"freeze",
|
|
43
|
+
this.stageName,
|
|
44
|
+
],
|
|
45
|
+
).str(
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutputRef = exports.StageRef = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
7
|
+
* Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
10
|
+
* You may not use this file except in compliance with the License.
|
|
11
|
+
* A copy of the License is located at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
16
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
17
|
+
* express or implied. See the License for the specific language governing
|
|
18
|
+
* permissions and limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
const StageRef_1 = tslib_1.__importDefault(require("./StageRef"));
|
|
21
|
+
exports.StageRef = StageRef_1.default;
|
|
22
|
+
const OutputRef_1 = tslib_1.__importDefault(require("./OutputRef"));
|
|
23
|
+
exports.OutputRef = OutputRef_1.default;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAkC;AAI9B,mBAJG,kBAAQ,CAIH;AAHZ,oEAAoC;AAIhC,oBAJG,mBAAS,CAIH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
import StageRef from "./StageRef";
|
|
17
|
+
import OutputRef from "./OutputRef";
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
StageRef,
|
|
21
|
+
OutputRef,
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export {
|
|
18
|
+
}
|