gs2 1.3.160 → 1.3.161
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/package.json +1 -1
- package/project/request/WaitActivateRegionRequest.d.ts +25 -0
- package/project/request/WaitActivateRegionRequest.js +83 -0
- package/project/request/WaitActivateRegionRequest.js.map +1 -0
- package/project/request/WaitActivateRegionRequest.ts +90 -0
- package/project/request/index.d.ts +2 -1
- package/project/request/index.js +3 -1
- package/project/request/index.js.map +1 -1
- package/project/request/index.ts +2 -0
- package/project/rest.d.ts +1 -0
- package/project/rest.js +27 -0
- package/project/rest.js.map +1 -1
- package/project/rest.ts +31 -0
- package/project/result/WaitActivateRegionResult.d.ts +14 -0
- package/project/result/WaitActivateRegionResult.js +48 -0
- package/project/result/WaitActivateRegionResult.js.map +1 -0
- package/project/result/WaitActivateRegionResult.ts +48 -0
- package/project/result/index.d.ts +2 -1
- package/project/result/index.js +3 -1
- package/project/result/index.js.map +1 -1
- package/project/result/index.ts +2 -0
- package/stamina/model/MaxStaminaTable.d.ts +0 -10
- package/stamina/model/MaxStaminaTable.js +0 -81
- package/stamina/model/MaxStaminaTable.js.map +1 -1
- package/stamina/model/MaxStaminaTable.ts +0 -96
- package/stamina/model/RecoverIntervalTable.d.ts +0 -10
- package/stamina/model/RecoverIntervalTable.js +0 -81
- package/stamina/model/RecoverIntervalTable.js.map +1 -1
- package/stamina/model/RecoverIntervalTable.ts +0 -96
- package/stamina/model/RecoverValueTable.d.ts +0 -10
- package/stamina/model/RecoverValueTable.js +0 -81
- package/stamina/model/RecoverValueTable.js.map +1 -1
- package/stamina/model/RecoverValueTable.ts +0 -96
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,sFAAuD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;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
|
|
|
27
27
|
import GetProjectTokenByIdentifierResult from "./GetProjectTokenByIdentifierResult"
|
|
28
28
|
import UpdateProjectResult from "./UpdateProjectResult"
|
|
29
29
|
import ActivateRegionResult from "./ActivateRegionResult"
|
|
30
|
+
import WaitActivateRegionResult from "./WaitActivateRegionResult"
|
|
30
31
|
import DeleteProjectResult from "./DeleteProjectResult"
|
|
31
32
|
import DescribeBillingMethodsResult from "./DescribeBillingMethodsResult"
|
|
32
33
|
import CreateBillingMethodResult from "./CreateBillingMethodResult"
|
|
@@ -51,6 +52,7 @@ export {
|
|
|
51
52
|
GetProjectTokenByIdentifierResult,
|
|
52
53
|
UpdateProjectResult,
|
|
53
54
|
ActivateRegionResult,
|
|
55
|
+
WaitActivateRegionResult,
|
|
54
56
|
DeleteProjectResult,
|
|
55
57
|
DescribeBillingMethodsResult,
|
|
56
58
|
CreateBillingMethodResult,
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
2
|
export default class MaxStaminaTable implements IModel {
|
|
3
|
-
private maxStaminaTableId;
|
|
4
3
|
private name;
|
|
5
4
|
private metadata;
|
|
6
5
|
private experienceModelId;
|
|
7
6
|
private values;
|
|
8
|
-
static getRegion(grn: string): string | null;
|
|
9
|
-
static getOwnerId(grn: string): string | null;
|
|
10
|
-
static getNamespaceName(grn: string): string | null;
|
|
11
|
-
static getMaxStaminaTableName(grn: string): string | null;
|
|
12
|
-
static isValid(grn: string): boolean;
|
|
13
|
-
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, maxStaminaTableName: string | null): string | null;
|
|
14
|
-
getMaxStaminaTableId(): string | null;
|
|
15
|
-
setMaxStaminaTableId(maxStaminaTableId: string | null): this;
|
|
16
|
-
withMaxStaminaTableId(maxStaminaTableId: string | null): this;
|
|
17
7
|
getName(): string | null;
|
|
18
8
|
setName(name: string | null): this;
|
|
19
9
|
withName(name: string | null): this;
|
|
@@ -15,92 +15,13 @@ express or implied. See the License for the specific language governing
|
|
|
15
15
|
permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var grnFormat = "grn:gs2:{region}:{ownerId}:stamina:{namespaceName}:maxStaminaTable:{maxStaminaTableName}";
|
|
19
18
|
var MaxStaminaTable = /** @class */ (function () {
|
|
20
19
|
function MaxStaminaTable() {
|
|
21
|
-
this.maxStaminaTableId = null;
|
|
22
20
|
this.name = null;
|
|
23
21
|
this.metadata = null;
|
|
24
22
|
this.experienceModelId = null;
|
|
25
23
|
this.values = null;
|
|
26
24
|
}
|
|
27
|
-
MaxStaminaTable.getRegion = function (grn) {
|
|
28
|
-
var match = grn.match(grnFormat
|
|
29
|
-
.replace('{region}', '(.*)')
|
|
30
|
-
.replace('{ownerId}', '.*')
|
|
31
|
-
.replace('{namespaceName}', '.*')
|
|
32
|
-
.replace('{maxStaminaTableName}', '.*'));
|
|
33
|
-
if (match) {
|
|
34
|
-
return match[1];
|
|
35
|
-
}
|
|
36
|
-
return null;
|
|
37
|
-
};
|
|
38
|
-
MaxStaminaTable.getOwnerId = function (grn) {
|
|
39
|
-
var match = grn.match(grnFormat
|
|
40
|
-
.replace('{region}', '.*')
|
|
41
|
-
.replace('{ownerId}', '(.*)')
|
|
42
|
-
.replace('{namespaceName}', '.*')
|
|
43
|
-
.replace('{maxStaminaTableName}', '.*'));
|
|
44
|
-
if (match) {
|
|
45
|
-
return match[1];
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
};
|
|
49
|
-
MaxStaminaTable.getNamespaceName = function (grn) {
|
|
50
|
-
var match = grn.match(grnFormat
|
|
51
|
-
.replace('{region}', '.*')
|
|
52
|
-
.replace('{ownerId}', '.*')
|
|
53
|
-
.replace('{namespaceName}', '(.*)')
|
|
54
|
-
.replace('{maxStaminaTableName}', '.*'));
|
|
55
|
-
if (match) {
|
|
56
|
-
return match[1];
|
|
57
|
-
}
|
|
58
|
-
return null;
|
|
59
|
-
};
|
|
60
|
-
MaxStaminaTable.getMaxStaminaTableName = function (grn) {
|
|
61
|
-
var match = grn.match(grnFormat
|
|
62
|
-
.replace('{region}', '.*')
|
|
63
|
-
.replace('{ownerId}', '.*')
|
|
64
|
-
.replace('{namespaceName}', '.*')
|
|
65
|
-
.replace('{maxStaminaTableName}', '(.*)'));
|
|
66
|
-
if (match) {
|
|
67
|
-
return match[1];
|
|
68
|
-
}
|
|
69
|
-
return null;
|
|
70
|
-
};
|
|
71
|
-
MaxStaminaTable.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.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
if (this.getMaxStaminaTableName(grn) == null || this.getMaxStaminaTableName(grn) === '') {
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
return true;
|
|
85
|
-
};
|
|
86
|
-
MaxStaminaTable.createGrn = function (region, ownerId, namespaceName, maxStaminaTableName) {
|
|
87
|
-
return grnFormat
|
|
88
|
-
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
89
|
-
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
90
|
-
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
91
|
-
.replace('{maxStaminaTableName}', maxStaminaTableName !== null && maxStaminaTableName !== void 0 ? maxStaminaTableName : '');
|
|
92
|
-
};
|
|
93
|
-
MaxStaminaTable.prototype.getMaxStaminaTableId = function () {
|
|
94
|
-
return this.maxStaminaTableId;
|
|
95
|
-
};
|
|
96
|
-
MaxStaminaTable.prototype.setMaxStaminaTableId = function (maxStaminaTableId) {
|
|
97
|
-
this.maxStaminaTableId = maxStaminaTableId;
|
|
98
|
-
return this;
|
|
99
|
-
};
|
|
100
|
-
MaxStaminaTable.prototype.withMaxStaminaTableId = function (maxStaminaTableId) {
|
|
101
|
-
this.maxStaminaTableId = maxStaminaTableId;
|
|
102
|
-
return this;
|
|
103
|
-
};
|
|
104
25
|
MaxStaminaTable.prototype.getName = function () {
|
|
105
26
|
return this.name;
|
|
106
27
|
};
|
|
@@ -150,7 +71,6 @@ var MaxStaminaTable = /** @class */ (function () {
|
|
|
150
71
|
return null;
|
|
151
72
|
}
|
|
152
73
|
return new MaxStaminaTable()
|
|
153
|
-
.withMaxStaminaTableId(data["maxStaminaTableId"])
|
|
154
74
|
.withName(data["name"])
|
|
155
75
|
.withMetadata(data["metadata"])
|
|
156
76
|
.withExperienceModelId(data["experienceModelId"])
|
|
@@ -161,7 +81,6 @@ var MaxStaminaTable = /** @class */ (function () {
|
|
|
161
81
|
};
|
|
162
82
|
MaxStaminaTable.prototype.toDict = function () {
|
|
163
83
|
return {
|
|
164
|
-
"maxStaminaTableId": this.getMaxStaminaTableId(),
|
|
165
84
|
"name": this.getName(),
|
|
166
85
|
"metadata": this.getMetadata(),
|
|
167
86
|
"experienceModelId": this.getExperienceModelId(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaxStaminaTable.js","sourceRoot":"","sources":["MaxStaminaTable.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"MaxStaminaTable.js","sourceRoot":"","sources":["MaxStaminaTable.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,sBAAiB,GAAgB,IAAI,CAAC;QACtC,WAAM,GAAkB,IAAI,CAAC;IAyEzC,CAAC;IAxEU,iCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,i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AC;SACf;QACD,OAAO,IAAI,eAAe,EAAE;aACvB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;aAChD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACvC,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,gCAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,mBAAmB,EAAE,IAAI,CAAC,oBAAoB,EAAE;YAChD,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAAY;oBAC/B,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,sBAAC;AAAD,CAAC,AA7ED,IA6EC"}
|
|
@@ -15,106 +15,12 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
-
const grnFormat: string = "grn:gs2:{region}:{ownerId}:stamina:{namespaceName}:maxStaminaTable:{maxStaminaTableName}";
|
|
19
18
|
|
|
20
19
|
export default class MaxStaminaTable implements IModel {
|
|
21
|
-
private maxStaminaTableId: string|null = null;
|
|
22
20
|
private name: string|null = null;
|
|
23
21
|
private metadata: string|null = null;
|
|
24
22
|
private experienceModelId: string|null = null;
|
|
25
23
|
private values: number[]|null = null;
|
|
26
|
-
|
|
27
|
-
public static getRegion(grn: string): string|null {
|
|
28
|
-
const match = grn.match(grnFormat
|
|
29
|
-
.replace('{region}', '(.*)')
|
|
30
|
-
.replace('{ownerId}', '.*')
|
|
31
|
-
.replace('{namespaceName}', '.*')
|
|
32
|
-
.replace('{maxStaminaTableName}', '.*')
|
|
33
|
-
);
|
|
34
|
-
if (match) {
|
|
35
|
-
return match[1];
|
|
36
|
-
}
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
public static getOwnerId(grn: string): string|null {
|
|
41
|
-
const match = grn.match(grnFormat
|
|
42
|
-
.replace('{region}', '.*')
|
|
43
|
-
.replace('{ownerId}', '(.*)')
|
|
44
|
-
.replace('{namespaceName}', '.*')
|
|
45
|
-
.replace('{maxStaminaTableName}', '.*')
|
|
46
|
-
);
|
|
47
|
-
if (match) {
|
|
48
|
-
return match[1];
|
|
49
|
-
}
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
public static getNamespaceName(grn: string): string|null {
|
|
54
|
-
const match = grn.match(grnFormat
|
|
55
|
-
.replace('{region}', '.*')
|
|
56
|
-
.replace('{ownerId}', '.*')
|
|
57
|
-
.replace('{namespaceName}', '(.*)')
|
|
58
|
-
.replace('{maxStaminaTableName}', '.*')
|
|
59
|
-
);
|
|
60
|
-
if (match) {
|
|
61
|
-
return match[1];
|
|
62
|
-
}
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
public static getMaxStaminaTableName(grn: string): string|null {
|
|
67
|
-
const match = grn.match(grnFormat
|
|
68
|
-
.replace('{region}', '.*')
|
|
69
|
-
.replace('{ownerId}', '.*')
|
|
70
|
-
.replace('{namespaceName}', '.*')
|
|
71
|
-
.replace('{maxStaminaTableName}', '(.*)')
|
|
72
|
-
);
|
|
73
|
-
if (match) {
|
|
74
|
-
return match[1];
|
|
75
|
-
}
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
public static isValid(grn: string): boolean {
|
|
80
|
-
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
if (this.getMaxStaminaTableName(grn) == null || this.getMaxStaminaTableName(grn) === '') {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
public static createGrn(
|
|
96
|
-
region: string|null,
|
|
97
|
-
ownerId: string|null,
|
|
98
|
-
namespaceName: string|null,
|
|
99
|
-
maxStaminaTableName: string|null,
|
|
100
|
-
): string|null {
|
|
101
|
-
return grnFormat
|
|
102
|
-
.replace('{region}', region ?? '')
|
|
103
|
-
.replace('{ownerId}', ownerId ?? '')
|
|
104
|
-
.replace('{namespaceName}', namespaceName ?? '')
|
|
105
|
-
.replace('{maxStaminaTableName}', maxStaminaTableName ?? '');
|
|
106
|
-
}
|
|
107
|
-
public getMaxStaminaTableId(): string|null {
|
|
108
|
-
return this.maxStaminaTableId;
|
|
109
|
-
}
|
|
110
|
-
public setMaxStaminaTableId(maxStaminaTableId: string|null) {
|
|
111
|
-
this.maxStaminaTableId = maxStaminaTableId;
|
|
112
|
-
return this;
|
|
113
|
-
}
|
|
114
|
-
public withMaxStaminaTableId(maxStaminaTableId: string|null): this {
|
|
115
|
-
this.maxStaminaTableId = maxStaminaTableId;
|
|
116
|
-
return this;
|
|
117
|
-
}
|
|
118
24
|
public getName(): string|null {
|
|
119
25
|
return this.name;
|
|
120
26
|
}
|
|
@@ -165,7 +71,6 @@ export default class MaxStaminaTable implements IModel {
|
|
|
165
71
|
return null;
|
|
166
72
|
}
|
|
167
73
|
return new MaxStaminaTable()
|
|
168
|
-
.withMaxStaminaTableId(data["maxStaminaTableId"])
|
|
169
74
|
.withName(data["name"])
|
|
170
75
|
.withMetadata(data["metadata"])
|
|
171
76
|
.withExperienceModelId(data["experienceModelId"])
|
|
@@ -178,7 +83,6 @@ export default class MaxStaminaTable implements IModel {
|
|
|
178
83
|
|
|
179
84
|
public toDict(): {[key: string]: any} {
|
|
180
85
|
return {
|
|
181
|
-
"maxStaminaTableId": this.getMaxStaminaTableId(),
|
|
182
86
|
"name": this.getName(),
|
|
183
87
|
"metadata": this.getMetadata(),
|
|
184
88
|
"experienceModelId": this.getExperienceModelId(),
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
2
|
export default class RecoverIntervalTable implements IModel {
|
|
3
|
-
private recoverIntervalTableId;
|
|
4
3
|
private name;
|
|
5
4
|
private metadata;
|
|
6
5
|
private experienceModelId;
|
|
7
6
|
private values;
|
|
8
|
-
static getRegion(grn: string): string | null;
|
|
9
|
-
static getOwnerId(grn: string): string | null;
|
|
10
|
-
static getNamespaceName(grn: string): string | null;
|
|
11
|
-
static getRecoverIntervalTableName(grn: string): string | null;
|
|
12
|
-
static isValid(grn: string): boolean;
|
|
13
|
-
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, recoverIntervalTableName: string | null): string | null;
|
|
14
|
-
getRecoverIntervalTableId(): string | null;
|
|
15
|
-
setRecoverIntervalTableId(recoverIntervalTableId: string | null): this;
|
|
16
|
-
withRecoverIntervalTableId(recoverIntervalTableId: string | null): this;
|
|
17
7
|
getName(): string | null;
|
|
18
8
|
setName(name: string | null): this;
|
|
19
9
|
withName(name: string | null): this;
|
|
@@ -15,92 +15,13 @@ express or implied. See the License for the specific language governing
|
|
|
15
15
|
permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var grnFormat = "grn:gs2:{region}:{ownerId}:stamina:{namespaceName}:recoverIntervalTable:{recoverIntervalTableName}";
|
|
19
18
|
var RecoverIntervalTable = /** @class */ (function () {
|
|
20
19
|
function RecoverIntervalTable() {
|
|
21
|
-
this.recoverIntervalTableId = null;
|
|
22
20
|
this.name = null;
|
|
23
21
|
this.metadata = null;
|
|
24
22
|
this.experienceModelId = null;
|
|
25
23
|
this.values = null;
|
|
26
24
|
}
|
|
27
|
-
RecoverIntervalTable.getRegion = function (grn) {
|
|
28
|
-
var match = grn.match(grnFormat
|
|
29
|
-
.replace('{region}', '(.*)')
|
|
30
|
-
.replace('{ownerId}', '.*')
|
|
31
|
-
.replace('{namespaceName}', '.*')
|
|
32
|
-
.replace('{recoverIntervalTableName}', '.*'));
|
|
33
|
-
if (match) {
|
|
34
|
-
return match[1];
|
|
35
|
-
}
|
|
36
|
-
return null;
|
|
37
|
-
};
|
|
38
|
-
RecoverIntervalTable.getOwnerId = function (grn) {
|
|
39
|
-
var match = grn.match(grnFormat
|
|
40
|
-
.replace('{region}', '.*')
|
|
41
|
-
.replace('{ownerId}', '(.*)')
|
|
42
|
-
.replace('{namespaceName}', '.*')
|
|
43
|
-
.replace('{recoverIntervalTableName}', '.*'));
|
|
44
|
-
if (match) {
|
|
45
|
-
return match[1];
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
};
|
|
49
|
-
RecoverIntervalTable.getNamespaceName = function (grn) {
|
|
50
|
-
var match = grn.match(grnFormat
|
|
51
|
-
.replace('{region}', '.*')
|
|
52
|
-
.replace('{ownerId}', '.*')
|
|
53
|
-
.replace('{namespaceName}', '(.*)')
|
|
54
|
-
.replace('{recoverIntervalTableName}', '.*'));
|
|
55
|
-
if (match) {
|
|
56
|
-
return match[1];
|
|
57
|
-
}
|
|
58
|
-
return null;
|
|
59
|
-
};
|
|
60
|
-
RecoverIntervalTable.getRecoverIntervalTableName = function (grn) {
|
|
61
|
-
var match = grn.match(grnFormat
|
|
62
|
-
.replace('{region}', '.*')
|
|
63
|
-
.replace('{ownerId}', '.*')
|
|
64
|
-
.replace('{namespaceName}', '.*')
|
|
65
|
-
.replace('{recoverIntervalTableName}', '(.*)'));
|
|
66
|
-
if (match) {
|
|
67
|
-
return match[1];
|
|
68
|
-
}
|
|
69
|
-
return null;
|
|
70
|
-
};
|
|
71
|
-
RecoverIntervalTable.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.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
if (this.getRecoverIntervalTableName(grn) == null || this.getRecoverIntervalTableName(grn) === '') {
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
return true;
|
|
85
|
-
};
|
|
86
|
-
RecoverIntervalTable.createGrn = function (region, ownerId, namespaceName, recoverIntervalTableName) {
|
|
87
|
-
return grnFormat
|
|
88
|
-
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
89
|
-
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
90
|
-
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
91
|
-
.replace('{recoverIntervalTableName}', recoverIntervalTableName !== null && recoverIntervalTableName !== void 0 ? recoverIntervalTableName : '');
|
|
92
|
-
};
|
|
93
|
-
RecoverIntervalTable.prototype.getRecoverIntervalTableId = function () {
|
|
94
|
-
return this.recoverIntervalTableId;
|
|
95
|
-
};
|
|
96
|
-
RecoverIntervalTable.prototype.setRecoverIntervalTableId = function (recoverIntervalTableId) {
|
|
97
|
-
this.recoverIntervalTableId = recoverIntervalTableId;
|
|
98
|
-
return this;
|
|
99
|
-
};
|
|
100
|
-
RecoverIntervalTable.prototype.withRecoverIntervalTableId = function (recoverIntervalTableId) {
|
|
101
|
-
this.recoverIntervalTableId = recoverIntervalTableId;
|
|
102
|
-
return this;
|
|
103
|
-
};
|
|
104
25
|
RecoverIntervalTable.prototype.getName = function () {
|
|
105
26
|
return this.name;
|
|
106
27
|
};
|
|
@@ -150,7 +71,6 @@ var RecoverIntervalTable = /** @class */ (function () {
|
|
|
150
71
|
return null;
|
|
151
72
|
}
|
|
152
73
|
return new RecoverIntervalTable()
|
|
153
|
-
.withRecoverIntervalTableId(data["recoverIntervalTableId"])
|
|
154
74
|
.withName(data["name"])
|
|
155
75
|
.withMetadata(data["metadata"])
|
|
156
76
|
.withExperienceModelId(data["experienceModelId"])
|
|
@@ -161,7 +81,6 @@ var RecoverIntervalTable = /** @class */ (function () {
|
|
|
161
81
|
};
|
|
162
82
|
RecoverIntervalTable.prototype.toDict = function () {
|
|
163
83
|
return {
|
|
164
|
-
"recoverIntervalTableId": this.getRecoverIntervalTableId(),
|
|
165
84
|
"name": this.getName(),
|
|
166
85
|
"metadata": this.getMetadata(),
|
|
167
86
|
"experienceModelId": this.getExperienceModelId(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecoverIntervalTable.js","sourceRoot":"","sources":["RecoverIntervalTable.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"RecoverIntervalTable.js","sourceRoot":"","sources":["RecoverIntervalTable.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,sBAAiB,GAAgB,IAAI,CAAC;QACtC,WAAM,GAAkB,IAAI,CAAC;IAyEzC,CAAC;IAxEU,sCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,sCAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,uCAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,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B,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;aAChD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACvC,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,qCAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,mBAAmB,EAAE,IAAI,CAAC,oBAAoB,EAAE;YAChD,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAAY;oBAC/B,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,2BAAC;AAAD,CAAC,AA7ED,IA6EC"}
|
|
@@ -15,106 +15,12 @@ permissions and limitations under the License.
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
|
-
const grnFormat: string = "grn:gs2:{region}:{ownerId}:stamina:{namespaceName}:recoverIntervalTable:{recoverIntervalTableName}";
|
|
19
18
|
|
|
20
19
|
export default class RecoverIntervalTable implements IModel {
|
|
21
|
-
private recoverIntervalTableId: string|null = null;
|
|
22
20
|
private name: string|null = null;
|
|
23
21
|
private metadata: string|null = null;
|
|
24
22
|
private experienceModelId: string|null = null;
|
|
25
23
|
private values: number[]|null = null;
|
|
26
|
-
|
|
27
|
-
public static getRegion(grn: string): string|null {
|
|
28
|
-
const match = grn.match(grnFormat
|
|
29
|
-
.replace('{region}', '(.*)')
|
|
30
|
-
.replace('{ownerId}', '.*')
|
|
31
|
-
.replace('{namespaceName}', '.*')
|
|
32
|
-
.replace('{recoverIntervalTableName}', '.*')
|
|
33
|
-
);
|
|
34
|
-
if (match) {
|
|
35
|
-
return match[1];
|
|
36
|
-
}
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
public static getOwnerId(grn: string): string|null {
|
|
41
|
-
const match = grn.match(grnFormat
|
|
42
|
-
.replace('{region}', '.*')
|
|
43
|
-
.replace('{ownerId}', '(.*)')
|
|
44
|
-
.replace('{namespaceName}', '.*')
|
|
45
|
-
.replace('{recoverIntervalTableName}', '.*')
|
|
46
|
-
);
|
|
47
|
-
if (match) {
|
|
48
|
-
return match[1];
|
|
49
|
-
}
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
public static getNamespaceName(grn: string): string|null {
|
|
54
|
-
const match = grn.match(grnFormat
|
|
55
|
-
.replace('{region}', '.*')
|
|
56
|
-
.replace('{ownerId}', '.*')
|
|
57
|
-
.replace('{namespaceName}', '(.*)')
|
|
58
|
-
.replace('{recoverIntervalTableName}', '.*')
|
|
59
|
-
);
|
|
60
|
-
if (match) {
|
|
61
|
-
return match[1];
|
|
62
|
-
}
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
public static getRecoverIntervalTableName(grn: string): string|null {
|
|
67
|
-
const match = grn.match(grnFormat
|
|
68
|
-
.replace('{region}', '.*')
|
|
69
|
-
.replace('{ownerId}', '.*')
|
|
70
|
-
.replace('{namespaceName}', '.*')
|
|
71
|
-
.replace('{recoverIntervalTableName}', '(.*)')
|
|
72
|
-
);
|
|
73
|
-
if (match) {
|
|
74
|
-
return match[1];
|
|
75
|
-
}
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
public static isValid(grn: string): boolean {
|
|
80
|
-
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
if (this.getRecoverIntervalTableName(grn) == null || this.getRecoverIntervalTableName(grn) === '') {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
public static createGrn(
|
|
96
|
-
region: string|null,
|
|
97
|
-
ownerId: string|null,
|
|
98
|
-
namespaceName: string|null,
|
|
99
|
-
recoverIntervalTableName: string|null,
|
|
100
|
-
): string|null {
|
|
101
|
-
return grnFormat
|
|
102
|
-
.replace('{region}', region ?? '')
|
|
103
|
-
.replace('{ownerId}', ownerId ?? '')
|
|
104
|
-
.replace('{namespaceName}', namespaceName ?? '')
|
|
105
|
-
.replace('{recoverIntervalTableName}', recoverIntervalTableName ?? '');
|
|
106
|
-
}
|
|
107
|
-
public getRecoverIntervalTableId(): string|null {
|
|
108
|
-
return this.recoverIntervalTableId;
|
|
109
|
-
}
|
|
110
|
-
public setRecoverIntervalTableId(recoverIntervalTableId: string|null) {
|
|
111
|
-
this.recoverIntervalTableId = recoverIntervalTableId;
|
|
112
|
-
return this;
|
|
113
|
-
}
|
|
114
|
-
public withRecoverIntervalTableId(recoverIntervalTableId: string|null): this {
|
|
115
|
-
this.recoverIntervalTableId = recoverIntervalTableId;
|
|
116
|
-
return this;
|
|
117
|
-
}
|
|
118
24
|
public getName(): string|null {
|
|
119
25
|
return this.name;
|
|
120
26
|
}
|
|
@@ -165,7 +71,6 @@ export default class RecoverIntervalTable implements IModel {
|
|
|
165
71
|
return null;
|
|
166
72
|
}
|
|
167
73
|
return new RecoverIntervalTable()
|
|
168
|
-
.withRecoverIntervalTableId(data["recoverIntervalTableId"])
|
|
169
74
|
.withName(data["name"])
|
|
170
75
|
.withMetadata(data["metadata"])
|
|
171
76
|
.withExperienceModelId(data["experienceModelId"])
|
|
@@ -178,7 +83,6 @@ export default class RecoverIntervalTable implements IModel {
|
|
|
178
83
|
|
|
179
84
|
public toDict(): {[key: string]: any} {
|
|
180
85
|
return {
|
|
181
|
-
"recoverIntervalTableId": this.getRecoverIntervalTableId(),
|
|
182
86
|
"name": this.getName(),
|
|
183
87
|
"metadata": this.getMetadata(),
|
|
184
88
|
"experienceModelId": this.getExperienceModelId(),
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
2
|
export default class RecoverValueTable implements IModel {
|
|
3
|
-
private recoverValueTableId;
|
|
4
3
|
private name;
|
|
5
4
|
private metadata;
|
|
6
5
|
private experienceModelId;
|
|
7
6
|
private values;
|
|
8
|
-
static getRegion(grn: string): string | null;
|
|
9
|
-
static getOwnerId(grn: string): string | null;
|
|
10
|
-
static getNamespaceName(grn: string): string | null;
|
|
11
|
-
static getRecoverValueTableName(grn: string): string | null;
|
|
12
|
-
static isValid(grn: string): boolean;
|
|
13
|
-
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, recoverValueTableName: string | null): string | null;
|
|
14
|
-
getRecoverValueTableId(): string | null;
|
|
15
|
-
setRecoverValueTableId(recoverValueTableId: string | null): this;
|
|
16
|
-
withRecoverValueTableId(recoverValueTableId: string | null): this;
|
|
17
7
|
getName(): string | null;
|
|
18
8
|
setName(name: string | null): this;
|
|
19
9
|
withName(name: string | null): this;
|