gs2 1.3.180 → 1.3.181
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/inventory/request/VerifyInventoryCurrentMaxCapacityByStampTaskRequest.d.ts +25 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityByStampTaskRequest.js +83 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityByStampTaskRequest.js.map +1 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityByStampTaskRequest.ts +90 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityByUserIdRequest.d.ts +41 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityByUserIdRequest.js +137 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityByUserIdRequest.js.map +1 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityByUserIdRequest.ts +147 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityRequest.d.ts +41 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityRequest.js +137 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityRequest.js.map +1 -0
- package/inventory/request/VerifyInventoryCurrentMaxCapacityRequest.ts +147 -0
- package/inventory/request/index.d.ts +4 -1
- package/inventory/request/index.js +8 -2
- package/inventory/request/index.js.map +1 -1
- package/inventory/request/index.ts +6 -0
- package/inventory/rest.d.ts +3 -0
- package/inventory/rest.js +95 -0
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +107 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityByStampTaskResult.d.ts +13 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityByStampTaskResult.js +45 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityByStampTaskResult.js.map +1 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityByStampTaskResult.ts +48 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityByUserIdResult.d.ts +9 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityByUserIdResult.js +30 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityByUserIdResult.js.map +1 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityByUserIdResult.ts +31 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityResult.d.ts +9 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityResult.js +30 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityResult.js.map +1 -0
- package/inventory/result/VerifyInventoryCurrentMaxCapacityResult.ts +31 -0
- package/inventory/result/index.d.ts +4 -1
- package/inventory/result/index.js +8 -2
- package/inventory/result/index.js.map +1 -1
- package/inventory/result/index.ts +6 -0
- package/package.json +1 -1
- package/project/model/CleanProgress.d.ts +46 -0
- package/project/model/CleanProgress.js +195 -0
- package/project/model/CleanProgress.js.map +1 -0
- package/project/model/CleanProgress.ts +205 -0
- package/project/model/DumpProgress.d.ts +46 -0
- package/project/model/DumpProgress.js +195 -0
- package/project/model/DumpProgress.js.map +1 -0
- package/project/model/DumpProgress.ts +205 -0
- package/project/model/index.d.ts +3 -1
- package/project/model/index.js +5 -1
- package/project/model/index.js.map +1 -1
- package/project/model/index.ts +4 -0
- package/project/request/ArchiveDumpUserDataRequest.d.ts +21 -0
- package/project/request/ArchiveDumpUserDataRequest.js +69 -0
- package/project/request/ArchiveDumpUserDataRequest.js.map +1 -0
- package/project/request/ArchiveDumpUserDataRequest.ts +76 -0
- package/project/request/CleanUserDataRequest.d.ts +25 -0
- package/project/request/CleanUserDataRequest.js +81 -0
- package/project/request/CleanUserDataRequest.js.map +1 -0
- package/project/request/CleanUserDataRequest.ts +91 -0
- package/project/request/DescribeCleanProgressesRequest.d.ts +25 -0
- package/project/request/DescribeCleanProgressesRequest.js +83 -0
- package/project/request/DescribeCleanProgressesRequest.js.map +1 -0
- package/project/request/DescribeCleanProgressesRequest.ts +90 -0
- package/project/request/DescribeDumpProgressesRequest.d.ts +25 -0
- package/project/request/DescribeDumpProgressesRequest.js +83 -0
- package/project/request/DescribeDumpProgressesRequest.js.map +1 -0
- package/project/request/DescribeDumpProgressesRequest.ts +90 -0
- package/project/request/DumpUserDataRequest.d.ts +25 -0
- package/project/request/DumpUserDataRequest.js +81 -0
- package/project/request/DumpUserDataRequest.js.map +1 -0
- package/project/request/DumpUserDataRequest.ts +91 -0
- package/project/request/GetCleanProgressRequest.d.ts +21 -0
- package/project/request/GetCleanProgressRequest.js +69 -0
- package/project/request/GetCleanProgressRequest.js.map +1 -0
- package/project/request/GetCleanProgressRequest.ts +76 -0
- package/project/request/GetDumpProgressRequest.d.ts +21 -0
- package/project/request/GetDumpProgressRequest.js +69 -0
- package/project/request/GetDumpProgressRequest.js.map +1 -0
- package/project/request/GetDumpProgressRequest.ts +76 -0
- package/project/request/GetDumpUserDataRequest.d.ts +21 -0
- package/project/request/GetDumpUserDataRequest.js +69 -0
- package/project/request/GetDumpUserDataRequest.js.map +1 -0
- package/project/request/GetDumpUserDataRequest.ts +76 -0
- package/project/request/WaitCleanUserDataRequest.d.ts +33 -0
- package/project/request/WaitCleanUserDataRequest.js +109 -0
- package/project/request/WaitCleanUserDataRequest.js.map +1 -0
- package/project/request/WaitCleanUserDataRequest.ts +119 -0
- package/project/request/WaitDumpUserDataRequest.d.ts +33 -0
- package/project/request/WaitDumpUserDataRequest.js +109 -0
- package/project/request/WaitDumpUserDataRequest.js.map +1 -0
- package/project/request/WaitDumpUserDataRequest.ts +119 -0
- package/project/request/index.d.ts +11 -1
- package/project/request/index.js +21 -1
- package/project/request/index.js.map +1 -1
- package/project/request/index.ts +20 -0
- package/project/rest.d.ts +10 -0
- package/project/rest.js +258 -0
- package/project/rest.js.map +1 -1
- package/project/rest.ts +298 -0
- package/project/result/ArchiveDumpUserDataResult.d.ts +14 -0
- package/project/result/ArchiveDumpUserDataResult.js +48 -0
- package/project/result/ArchiveDumpUserDataResult.js.map +1 -0
- package/project/result/ArchiveDumpUserDataResult.ts +48 -0
- package/project/result/CleanUserDataResult.d.ts +14 -0
- package/project/result/CleanUserDataResult.js +48 -0
- package/project/result/CleanUserDataResult.js.map +1 -0
- package/project/result/CleanUserDataResult.ts +48 -0
- package/project/result/DescribeCleanProgressesResult.d.ts +18 -0
- package/project/result/DescribeCleanProgressesResult.js +67 -0
- package/project/result/DescribeCleanProgressesResult.js.map +1 -0
- package/project/result/DescribeCleanProgressesResult.ts +73 -0
- package/project/result/DescribeDumpProgressesResult.d.ts +18 -0
- package/project/result/DescribeDumpProgressesResult.js +67 -0
- package/project/result/DescribeDumpProgressesResult.js.map +1 -0
- package/project/result/DescribeDumpProgressesResult.ts +73 -0
- package/project/result/DumpUserDataResult.d.ts +14 -0
- package/project/result/DumpUserDataResult.js +48 -0
- package/project/result/DumpUserDataResult.js.map +1 -0
- package/project/result/DumpUserDataResult.ts +48 -0
- package/project/result/GetCleanProgressResult.d.ts +14 -0
- package/project/result/GetCleanProgressResult.js +48 -0
- package/project/result/GetCleanProgressResult.js.map +1 -0
- package/project/result/GetCleanProgressResult.ts +48 -0
- package/project/result/GetDumpProgressResult.d.ts +14 -0
- package/project/result/GetDumpProgressResult.js +48 -0
- package/project/result/GetDumpProgressResult.js.map +1 -0
- package/project/result/GetDumpProgressResult.ts +48 -0
- package/project/result/GetDumpUserDataResult.d.ts +13 -0
- package/project/result/GetDumpUserDataResult.js +45 -0
- package/project/result/GetDumpUserDataResult.js.map +1 -0
- package/project/result/GetDumpUserDataResult.ts +48 -0
- package/project/result/WaitCleanUserDataResult.d.ts +14 -0
- package/project/result/WaitCleanUserDataResult.js +48 -0
- package/project/result/WaitCleanUserDataResult.js.map +1 -0
- package/project/result/WaitCleanUserDataResult.ts +48 -0
- package/project/result/WaitDumpUserDataResult.d.ts +14 -0
- package/project/result/WaitDumpUserDataResult.js +48 -0
- package/project/result/WaitDumpUserDataResult.js.map +1 -0
- package/project/result/WaitDumpUserDataResult.ts +48 -0
- package/project/result/index.d.ts +11 -1
- package/project/result/index.js +21 -1
- package/project/result/index.js.map +1 -1
- package/project/result/index.ts +20 -0
|
@@ -0,0 +1,195 @@
|
|
|
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:::gs2:account:{accountName}:project:{projectName}:clean:{transactionId}";
|
|
19
|
+
var CleanProgress = /** @class */ (function () {
|
|
20
|
+
function CleanProgress() {
|
|
21
|
+
this.cleanProgressId = null;
|
|
22
|
+
this.transactionId = null;
|
|
23
|
+
this.userId = null;
|
|
24
|
+
this.cleaned = null;
|
|
25
|
+
this.microserviceCount = null;
|
|
26
|
+
this.createdAt = null;
|
|
27
|
+
this.updatedAt = null;
|
|
28
|
+
this.revision = null;
|
|
29
|
+
}
|
|
30
|
+
CleanProgress.getAccountName = function (grn) {
|
|
31
|
+
var match = grn.match(grnFormat
|
|
32
|
+
.replace('{accountName}', '(.*)')
|
|
33
|
+
.replace('{projectName}', '.*')
|
|
34
|
+
.replace('{transactionId}', '.*'));
|
|
35
|
+
if (match) {
|
|
36
|
+
return match[1];
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
};
|
|
40
|
+
CleanProgress.getProjectName = function (grn) {
|
|
41
|
+
var match = grn.match(grnFormat
|
|
42
|
+
.replace('{accountName}', '.*')
|
|
43
|
+
.replace('{projectName}', '(.*)')
|
|
44
|
+
.replace('{transactionId}', '.*'));
|
|
45
|
+
if (match) {
|
|
46
|
+
return match[1];
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
};
|
|
50
|
+
CleanProgress.getTransactionId = function (grn) {
|
|
51
|
+
var match = grn.match(grnFormat
|
|
52
|
+
.replace('{accountName}', '.*')
|
|
53
|
+
.replace('{projectName}', '.*')
|
|
54
|
+
.replace('{transactionId}', '(.*)'));
|
|
55
|
+
if (match) {
|
|
56
|
+
return match[1];
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
CleanProgress.isValid = function (grn) {
|
|
61
|
+
if (this.getAccountName(grn) == null || this.getAccountName(grn) === '') {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
if (this.getProjectName(grn) == null || this.getProjectName(grn) === '') {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
if (this.getTransactionId(grn) == null || this.getTransactionId(grn) === '') {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
return true;
|
|
71
|
+
};
|
|
72
|
+
CleanProgress.createGrn = function (accountName, projectName, transactionId) {
|
|
73
|
+
return grnFormat
|
|
74
|
+
.replace('{accountName}', accountName !== null && accountName !== void 0 ? accountName : '')
|
|
75
|
+
.replace('{projectName}', projectName !== null && projectName !== void 0 ? projectName : '')
|
|
76
|
+
.replace('{transactionId}', transactionId !== null && transactionId !== void 0 ? transactionId : '');
|
|
77
|
+
};
|
|
78
|
+
CleanProgress.prototype.getCleanProgressId = function () {
|
|
79
|
+
return this.cleanProgressId;
|
|
80
|
+
};
|
|
81
|
+
CleanProgress.prototype.setCleanProgressId = function (cleanProgressId) {
|
|
82
|
+
this.cleanProgressId = cleanProgressId;
|
|
83
|
+
return this;
|
|
84
|
+
};
|
|
85
|
+
CleanProgress.prototype.withCleanProgressId = function (cleanProgressId) {
|
|
86
|
+
this.cleanProgressId = cleanProgressId;
|
|
87
|
+
return this;
|
|
88
|
+
};
|
|
89
|
+
CleanProgress.prototype.getTransactionId = function () {
|
|
90
|
+
return this.transactionId;
|
|
91
|
+
};
|
|
92
|
+
CleanProgress.prototype.setTransactionId = function (transactionId) {
|
|
93
|
+
this.transactionId = transactionId;
|
|
94
|
+
return this;
|
|
95
|
+
};
|
|
96
|
+
CleanProgress.prototype.withTransactionId = function (transactionId) {
|
|
97
|
+
this.transactionId = transactionId;
|
|
98
|
+
return this;
|
|
99
|
+
};
|
|
100
|
+
CleanProgress.prototype.getUserId = function () {
|
|
101
|
+
return this.userId;
|
|
102
|
+
};
|
|
103
|
+
CleanProgress.prototype.setUserId = function (userId) {
|
|
104
|
+
this.userId = userId;
|
|
105
|
+
return this;
|
|
106
|
+
};
|
|
107
|
+
CleanProgress.prototype.withUserId = function (userId) {
|
|
108
|
+
this.userId = userId;
|
|
109
|
+
return this;
|
|
110
|
+
};
|
|
111
|
+
CleanProgress.prototype.getCleaned = function () {
|
|
112
|
+
return this.cleaned;
|
|
113
|
+
};
|
|
114
|
+
CleanProgress.prototype.setCleaned = function (cleaned) {
|
|
115
|
+
this.cleaned = cleaned;
|
|
116
|
+
return this;
|
|
117
|
+
};
|
|
118
|
+
CleanProgress.prototype.withCleaned = function (cleaned) {
|
|
119
|
+
this.cleaned = cleaned;
|
|
120
|
+
return this;
|
|
121
|
+
};
|
|
122
|
+
CleanProgress.prototype.getMicroserviceCount = function () {
|
|
123
|
+
return this.microserviceCount;
|
|
124
|
+
};
|
|
125
|
+
CleanProgress.prototype.setMicroserviceCount = function (microserviceCount) {
|
|
126
|
+
this.microserviceCount = microserviceCount;
|
|
127
|
+
return this;
|
|
128
|
+
};
|
|
129
|
+
CleanProgress.prototype.withMicroserviceCount = function (microserviceCount) {
|
|
130
|
+
this.microserviceCount = microserviceCount;
|
|
131
|
+
return this;
|
|
132
|
+
};
|
|
133
|
+
CleanProgress.prototype.getCreatedAt = function () {
|
|
134
|
+
return this.createdAt;
|
|
135
|
+
};
|
|
136
|
+
CleanProgress.prototype.setCreatedAt = function (createdAt) {
|
|
137
|
+
this.createdAt = createdAt;
|
|
138
|
+
return this;
|
|
139
|
+
};
|
|
140
|
+
CleanProgress.prototype.withCreatedAt = function (createdAt) {
|
|
141
|
+
this.createdAt = createdAt;
|
|
142
|
+
return this;
|
|
143
|
+
};
|
|
144
|
+
CleanProgress.prototype.getUpdatedAt = function () {
|
|
145
|
+
return this.updatedAt;
|
|
146
|
+
};
|
|
147
|
+
CleanProgress.prototype.setUpdatedAt = function (updatedAt) {
|
|
148
|
+
this.updatedAt = updatedAt;
|
|
149
|
+
return this;
|
|
150
|
+
};
|
|
151
|
+
CleanProgress.prototype.withUpdatedAt = function (updatedAt) {
|
|
152
|
+
this.updatedAt = updatedAt;
|
|
153
|
+
return this;
|
|
154
|
+
};
|
|
155
|
+
CleanProgress.prototype.getRevision = function () {
|
|
156
|
+
return this.revision;
|
|
157
|
+
};
|
|
158
|
+
CleanProgress.prototype.setRevision = function (revision) {
|
|
159
|
+
this.revision = revision;
|
|
160
|
+
return this;
|
|
161
|
+
};
|
|
162
|
+
CleanProgress.prototype.withRevision = function (revision) {
|
|
163
|
+
this.revision = revision;
|
|
164
|
+
return this;
|
|
165
|
+
};
|
|
166
|
+
CleanProgress.fromDict = function (data) {
|
|
167
|
+
if (data == undefined || data == null) {
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
return new CleanProgress()
|
|
171
|
+
.withCleanProgressId(data["cleanProgressId"])
|
|
172
|
+
.withTransactionId(data["transactionId"])
|
|
173
|
+
.withUserId(data["userId"])
|
|
174
|
+
.withCleaned(data["cleaned"])
|
|
175
|
+
.withMicroserviceCount(data["microserviceCount"])
|
|
176
|
+
.withCreatedAt(data["createdAt"])
|
|
177
|
+
.withUpdatedAt(data["updatedAt"])
|
|
178
|
+
.withRevision(data["revision"]);
|
|
179
|
+
};
|
|
180
|
+
CleanProgress.prototype.toDict = function () {
|
|
181
|
+
return {
|
|
182
|
+
"cleanProgressId": this.getCleanProgressId(),
|
|
183
|
+
"transactionId": this.getTransactionId(),
|
|
184
|
+
"userId": this.getUserId(),
|
|
185
|
+
"cleaned": this.getCleaned(),
|
|
186
|
+
"microserviceCount": this.getMicroserviceCount(),
|
|
187
|
+
"createdAt": this.getCreatedAt(),
|
|
188
|
+
"updatedAt": this.getUpdatedAt(),
|
|
189
|
+
"revision": this.getRevision(),
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
return CleanProgress;
|
|
193
|
+
}());
|
|
194
|
+
exports.default = CleanProgress;
|
|
195
|
+
//# sourceMappingURL=CleanProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CleanProgress.js","sourceRoot":"","sources":["CleanProgress.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH,IAAM,SAAS,GAAW,iFAAiF,CAAC;AAE5G;IAAA;QACY,oBAAe,GAAgB,IAAI,CAAC;QACpC,kBAAa,GAAgB,IAAI,CAAC;QAClC,WAAM,GAAgB,IAAI,CAAC;QAC3B,YAAO,GAAgB,IAAI,CAAC;QAC5B,sBAAiB,GAAgB,IAAI,CAAC;QACtC,cAAS,GAAgB,IAAI,CAAC;QAC9B,cAAS,GAAgB,IAAI,CAAC;QAC9B,aAAQ,GAAgB,IAAI,CAAC;IAiLzC,CAAC;IA/KiB,4BAAc,GAA5B,UAA6B,GAAW;QACpC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC;aAChC,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC;aAC9B,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,CACpC,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,4BAAc,GAA5B,UAA6B,GAAW;QACpC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK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ights
|
|
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
|
+
const grnFormat: string = "grn:gs2:::gs2:account:{accountName}:project:{projectName}:clean:{transactionId}";
|
|
19
|
+
|
|
20
|
+
export default class CleanProgress implements IModel {
|
|
21
|
+
private cleanProgressId: string|null = null;
|
|
22
|
+
private transactionId: string|null = null;
|
|
23
|
+
private userId: string|null = null;
|
|
24
|
+
private cleaned: number|null = null;
|
|
25
|
+
private microserviceCount: number|null = null;
|
|
26
|
+
private createdAt: number|null = null;
|
|
27
|
+
private updatedAt: number|null = null;
|
|
28
|
+
private revision: number|null = null;
|
|
29
|
+
|
|
30
|
+
public static getAccountName(grn: string): string|null {
|
|
31
|
+
const match = grn.match(grnFormat
|
|
32
|
+
.replace('{accountName}', '(.*)')
|
|
33
|
+
.replace('{projectName}', '.*')
|
|
34
|
+
.replace('{transactionId}', '.*')
|
|
35
|
+
);
|
|
36
|
+
if (match) {
|
|
37
|
+
return match[1];
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public static getProjectName(grn: string): string|null {
|
|
43
|
+
const match = grn.match(grnFormat
|
|
44
|
+
.replace('{accountName}', '.*')
|
|
45
|
+
.replace('{projectName}', '(.*)')
|
|
46
|
+
.replace('{transactionId}', '.*')
|
|
47
|
+
);
|
|
48
|
+
if (match) {
|
|
49
|
+
return match[1];
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public static getTransactionId(grn: string): string|null {
|
|
55
|
+
const match = grn.match(grnFormat
|
|
56
|
+
.replace('{accountName}', '.*')
|
|
57
|
+
.replace('{projectName}', '.*')
|
|
58
|
+
.replace('{transactionId}', '(.*)')
|
|
59
|
+
);
|
|
60
|
+
if (match) {
|
|
61
|
+
return match[1];
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public static isValid(grn: string): boolean {
|
|
67
|
+
if (this.getAccountName(grn) == null || this.getAccountName(grn) === '') {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
if (this.getProjectName(grn) == null || this.getProjectName(grn) === '') {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
if (this.getTransactionId(grn) == null || this.getTransactionId(grn) === '') {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public static createGrn(
|
|
80
|
+
accountName: string|null,
|
|
81
|
+
projectName: string|null,
|
|
82
|
+
transactionId: string|null,
|
|
83
|
+
): string|null {
|
|
84
|
+
return grnFormat
|
|
85
|
+
.replace('{accountName}', accountName ?? '')
|
|
86
|
+
.replace('{projectName}', projectName ?? '')
|
|
87
|
+
.replace('{transactionId}', transactionId ?? '');
|
|
88
|
+
}
|
|
89
|
+
public getCleanProgressId(): string|null {
|
|
90
|
+
return this.cleanProgressId;
|
|
91
|
+
}
|
|
92
|
+
public setCleanProgressId(cleanProgressId: string|null) {
|
|
93
|
+
this.cleanProgressId = cleanProgressId;
|
|
94
|
+
return this;
|
|
95
|
+
}
|
|
96
|
+
public withCleanProgressId(cleanProgressId: string|null): this {
|
|
97
|
+
this.cleanProgressId = cleanProgressId;
|
|
98
|
+
return this;
|
|
99
|
+
}
|
|
100
|
+
public getTransactionId(): string|null {
|
|
101
|
+
return this.transactionId;
|
|
102
|
+
}
|
|
103
|
+
public setTransactionId(transactionId: string|null) {
|
|
104
|
+
this.transactionId = transactionId;
|
|
105
|
+
return this;
|
|
106
|
+
}
|
|
107
|
+
public withTransactionId(transactionId: string|null): this {
|
|
108
|
+
this.transactionId = transactionId;
|
|
109
|
+
return this;
|
|
110
|
+
}
|
|
111
|
+
public getUserId(): string|null {
|
|
112
|
+
return this.userId;
|
|
113
|
+
}
|
|
114
|
+
public setUserId(userId: string|null) {
|
|
115
|
+
this.userId = userId;
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
public withUserId(userId: string|null): this {
|
|
119
|
+
this.userId = userId;
|
|
120
|
+
return this;
|
|
121
|
+
}
|
|
122
|
+
public getCleaned(): number|null {
|
|
123
|
+
return this.cleaned;
|
|
124
|
+
}
|
|
125
|
+
public setCleaned(cleaned: number|null) {
|
|
126
|
+
this.cleaned = cleaned;
|
|
127
|
+
return this;
|
|
128
|
+
}
|
|
129
|
+
public withCleaned(cleaned: number|null): this {
|
|
130
|
+
this.cleaned = cleaned;
|
|
131
|
+
return this;
|
|
132
|
+
}
|
|
133
|
+
public getMicroserviceCount(): number|null {
|
|
134
|
+
return this.microserviceCount;
|
|
135
|
+
}
|
|
136
|
+
public setMicroserviceCount(microserviceCount: number|null) {
|
|
137
|
+
this.microserviceCount = microserviceCount;
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
public withMicroserviceCount(microserviceCount: number|null): this {
|
|
141
|
+
this.microserviceCount = microserviceCount;
|
|
142
|
+
return this;
|
|
143
|
+
}
|
|
144
|
+
public getCreatedAt(): number|null {
|
|
145
|
+
return this.createdAt;
|
|
146
|
+
}
|
|
147
|
+
public setCreatedAt(createdAt: number|null) {
|
|
148
|
+
this.createdAt = createdAt;
|
|
149
|
+
return this;
|
|
150
|
+
}
|
|
151
|
+
public withCreatedAt(createdAt: number|null): this {
|
|
152
|
+
this.createdAt = createdAt;
|
|
153
|
+
return this;
|
|
154
|
+
}
|
|
155
|
+
public getUpdatedAt(): number|null {
|
|
156
|
+
return this.updatedAt;
|
|
157
|
+
}
|
|
158
|
+
public setUpdatedAt(updatedAt: number|null) {
|
|
159
|
+
this.updatedAt = updatedAt;
|
|
160
|
+
return this;
|
|
161
|
+
}
|
|
162
|
+
public withUpdatedAt(updatedAt: number|null): this {
|
|
163
|
+
this.updatedAt = updatedAt;
|
|
164
|
+
return this;
|
|
165
|
+
}
|
|
166
|
+
public getRevision(): number|null {
|
|
167
|
+
return this.revision;
|
|
168
|
+
}
|
|
169
|
+
public setRevision(revision: number|null) {
|
|
170
|
+
this.revision = revision;
|
|
171
|
+
return this;
|
|
172
|
+
}
|
|
173
|
+
public withRevision(revision: number|null): this {
|
|
174
|
+
this.revision = revision;
|
|
175
|
+
return this;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
public static fromDict(data: {[key: string]: any}): CleanProgress|null {
|
|
179
|
+
if (data == undefined || data == null) {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
return new CleanProgress()
|
|
183
|
+
.withCleanProgressId(data["cleanProgressId"])
|
|
184
|
+
.withTransactionId(data["transactionId"])
|
|
185
|
+
.withUserId(data["userId"])
|
|
186
|
+
.withCleaned(data["cleaned"])
|
|
187
|
+
.withMicroserviceCount(data["microserviceCount"])
|
|
188
|
+
.withCreatedAt(data["createdAt"])
|
|
189
|
+
.withUpdatedAt(data["updatedAt"])
|
|
190
|
+
.withRevision(data["revision"]);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
public toDict(): {[key: string]: any} {
|
|
194
|
+
return {
|
|
195
|
+
"cleanProgressId": this.getCleanProgressId(),
|
|
196
|
+
"transactionId": this.getTransactionId(),
|
|
197
|
+
"userId": this.getUserId(),
|
|
198
|
+
"cleaned": this.getCleaned(),
|
|
199
|
+
"microserviceCount": this.getMicroserviceCount(),
|
|
200
|
+
"createdAt": this.getCreatedAt(),
|
|
201
|
+
"updatedAt": this.getUpdatedAt(),
|
|
202
|
+
"revision": this.getRevision(),
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class DumpProgress implements IModel {
|
|
3
|
+
private dumpProgressId;
|
|
4
|
+
private transactionId;
|
|
5
|
+
private userId;
|
|
6
|
+
private dumped;
|
|
7
|
+
private microserviceCount;
|
|
8
|
+
private createdAt;
|
|
9
|
+
private updatedAt;
|
|
10
|
+
private revision;
|
|
11
|
+
static getAccountName(grn: string): string | null;
|
|
12
|
+
static getProjectName(grn: string): string | null;
|
|
13
|
+
static getTransactionId(grn: string): string | null;
|
|
14
|
+
static isValid(grn: string): boolean;
|
|
15
|
+
static createGrn(accountName: string | null, projectName: string | null, transactionId: string | null): string | null;
|
|
16
|
+
getDumpProgressId(): string | null;
|
|
17
|
+
setDumpProgressId(dumpProgressId: string | null): this;
|
|
18
|
+
withDumpProgressId(dumpProgressId: string | null): this;
|
|
19
|
+
getTransactionId(): string | null;
|
|
20
|
+
setTransactionId(transactionId: string | null): this;
|
|
21
|
+
withTransactionId(transactionId: string | null): this;
|
|
22
|
+
getUserId(): string | null;
|
|
23
|
+
setUserId(userId: string | null): this;
|
|
24
|
+
withUserId(userId: string | null): this;
|
|
25
|
+
getDumped(): number | null;
|
|
26
|
+
setDumped(dumped: number | null): this;
|
|
27
|
+
withDumped(dumped: number | null): this;
|
|
28
|
+
getMicroserviceCount(): number | null;
|
|
29
|
+
setMicroserviceCount(microserviceCount: number | null): this;
|
|
30
|
+
withMicroserviceCount(microserviceCount: number | 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
|
+
}): DumpProgress | null;
|
|
43
|
+
toDict(): {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
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:::gs2:account:{accountName}:project:{projectName}:dump:{transactionId}";
|
|
19
|
+
var DumpProgress = /** @class */ (function () {
|
|
20
|
+
function DumpProgress() {
|
|
21
|
+
this.dumpProgressId = null;
|
|
22
|
+
this.transactionId = null;
|
|
23
|
+
this.userId = null;
|
|
24
|
+
this.dumped = null;
|
|
25
|
+
this.microserviceCount = null;
|
|
26
|
+
this.createdAt = null;
|
|
27
|
+
this.updatedAt = null;
|
|
28
|
+
this.revision = null;
|
|
29
|
+
}
|
|
30
|
+
DumpProgress.getAccountName = function (grn) {
|
|
31
|
+
var match = grn.match(grnFormat
|
|
32
|
+
.replace('{accountName}', '(.*)')
|
|
33
|
+
.replace('{projectName}', '.*')
|
|
34
|
+
.replace('{transactionId}', '.*'));
|
|
35
|
+
if (match) {
|
|
36
|
+
return match[1];
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
};
|
|
40
|
+
DumpProgress.getProjectName = function (grn) {
|
|
41
|
+
var match = grn.match(grnFormat
|
|
42
|
+
.replace('{accountName}', '.*')
|
|
43
|
+
.replace('{projectName}', '(.*)')
|
|
44
|
+
.replace('{transactionId}', '.*'));
|
|
45
|
+
if (match) {
|
|
46
|
+
return match[1];
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
};
|
|
50
|
+
DumpProgress.getTransactionId = function (grn) {
|
|
51
|
+
var match = grn.match(grnFormat
|
|
52
|
+
.replace('{accountName}', '.*')
|
|
53
|
+
.replace('{projectName}', '.*')
|
|
54
|
+
.replace('{transactionId}', '(.*)'));
|
|
55
|
+
if (match) {
|
|
56
|
+
return match[1];
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
DumpProgress.isValid = function (grn) {
|
|
61
|
+
if (this.getAccountName(grn) == null || this.getAccountName(grn) === '') {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
if (this.getProjectName(grn) == null || this.getProjectName(grn) === '') {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
if (this.getTransactionId(grn) == null || this.getTransactionId(grn) === '') {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
return true;
|
|
71
|
+
};
|
|
72
|
+
DumpProgress.createGrn = function (accountName, projectName, transactionId) {
|
|
73
|
+
return grnFormat
|
|
74
|
+
.replace('{accountName}', accountName !== null && accountName !== void 0 ? accountName : '')
|
|
75
|
+
.replace('{projectName}', projectName !== null && projectName !== void 0 ? projectName : '')
|
|
76
|
+
.replace('{transactionId}', transactionId !== null && transactionId !== void 0 ? transactionId : '');
|
|
77
|
+
};
|
|
78
|
+
DumpProgress.prototype.getDumpProgressId = function () {
|
|
79
|
+
return this.dumpProgressId;
|
|
80
|
+
};
|
|
81
|
+
DumpProgress.prototype.setDumpProgressId = function (dumpProgressId) {
|
|
82
|
+
this.dumpProgressId = dumpProgressId;
|
|
83
|
+
return this;
|
|
84
|
+
};
|
|
85
|
+
DumpProgress.prototype.withDumpProgressId = function (dumpProgressId) {
|
|
86
|
+
this.dumpProgressId = dumpProgressId;
|
|
87
|
+
return this;
|
|
88
|
+
};
|
|
89
|
+
DumpProgress.prototype.getTransactionId = function () {
|
|
90
|
+
return this.transactionId;
|
|
91
|
+
};
|
|
92
|
+
DumpProgress.prototype.setTransactionId = function (transactionId) {
|
|
93
|
+
this.transactionId = transactionId;
|
|
94
|
+
return this;
|
|
95
|
+
};
|
|
96
|
+
DumpProgress.prototype.withTransactionId = function (transactionId) {
|
|
97
|
+
this.transactionId = transactionId;
|
|
98
|
+
return this;
|
|
99
|
+
};
|
|
100
|
+
DumpProgress.prototype.getUserId = function () {
|
|
101
|
+
return this.userId;
|
|
102
|
+
};
|
|
103
|
+
DumpProgress.prototype.setUserId = function (userId) {
|
|
104
|
+
this.userId = userId;
|
|
105
|
+
return this;
|
|
106
|
+
};
|
|
107
|
+
DumpProgress.prototype.withUserId = function (userId) {
|
|
108
|
+
this.userId = userId;
|
|
109
|
+
return this;
|
|
110
|
+
};
|
|
111
|
+
DumpProgress.prototype.getDumped = function () {
|
|
112
|
+
return this.dumped;
|
|
113
|
+
};
|
|
114
|
+
DumpProgress.prototype.setDumped = function (dumped) {
|
|
115
|
+
this.dumped = dumped;
|
|
116
|
+
return this;
|
|
117
|
+
};
|
|
118
|
+
DumpProgress.prototype.withDumped = function (dumped) {
|
|
119
|
+
this.dumped = dumped;
|
|
120
|
+
return this;
|
|
121
|
+
};
|
|
122
|
+
DumpProgress.prototype.getMicroserviceCount = function () {
|
|
123
|
+
return this.microserviceCount;
|
|
124
|
+
};
|
|
125
|
+
DumpProgress.prototype.setMicroserviceCount = function (microserviceCount) {
|
|
126
|
+
this.microserviceCount = microserviceCount;
|
|
127
|
+
return this;
|
|
128
|
+
};
|
|
129
|
+
DumpProgress.prototype.withMicroserviceCount = function (microserviceCount) {
|
|
130
|
+
this.microserviceCount = microserviceCount;
|
|
131
|
+
return this;
|
|
132
|
+
};
|
|
133
|
+
DumpProgress.prototype.getCreatedAt = function () {
|
|
134
|
+
return this.createdAt;
|
|
135
|
+
};
|
|
136
|
+
DumpProgress.prototype.setCreatedAt = function (createdAt) {
|
|
137
|
+
this.createdAt = createdAt;
|
|
138
|
+
return this;
|
|
139
|
+
};
|
|
140
|
+
DumpProgress.prototype.withCreatedAt = function (createdAt) {
|
|
141
|
+
this.createdAt = createdAt;
|
|
142
|
+
return this;
|
|
143
|
+
};
|
|
144
|
+
DumpProgress.prototype.getUpdatedAt = function () {
|
|
145
|
+
return this.updatedAt;
|
|
146
|
+
};
|
|
147
|
+
DumpProgress.prototype.setUpdatedAt = function (updatedAt) {
|
|
148
|
+
this.updatedAt = updatedAt;
|
|
149
|
+
return this;
|
|
150
|
+
};
|
|
151
|
+
DumpProgress.prototype.withUpdatedAt = function (updatedAt) {
|
|
152
|
+
this.updatedAt = updatedAt;
|
|
153
|
+
return this;
|
|
154
|
+
};
|
|
155
|
+
DumpProgress.prototype.getRevision = function () {
|
|
156
|
+
return this.revision;
|
|
157
|
+
};
|
|
158
|
+
DumpProgress.prototype.setRevision = function (revision) {
|
|
159
|
+
this.revision = revision;
|
|
160
|
+
return this;
|
|
161
|
+
};
|
|
162
|
+
DumpProgress.prototype.withRevision = function (revision) {
|
|
163
|
+
this.revision = revision;
|
|
164
|
+
return this;
|
|
165
|
+
};
|
|
166
|
+
DumpProgress.fromDict = function (data) {
|
|
167
|
+
if (data == undefined || data == null) {
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
return new DumpProgress()
|
|
171
|
+
.withDumpProgressId(data["dumpProgressId"])
|
|
172
|
+
.withTransactionId(data["transactionId"])
|
|
173
|
+
.withUserId(data["userId"])
|
|
174
|
+
.withDumped(data["dumped"])
|
|
175
|
+
.withMicroserviceCount(data["microserviceCount"])
|
|
176
|
+
.withCreatedAt(data["createdAt"])
|
|
177
|
+
.withUpdatedAt(data["updatedAt"])
|
|
178
|
+
.withRevision(data["revision"]);
|
|
179
|
+
};
|
|
180
|
+
DumpProgress.prototype.toDict = function () {
|
|
181
|
+
return {
|
|
182
|
+
"dumpProgressId": this.getDumpProgressId(),
|
|
183
|
+
"transactionId": this.getTransactionId(),
|
|
184
|
+
"userId": this.getUserId(),
|
|
185
|
+
"dumped": this.getDumped(),
|
|
186
|
+
"microserviceCount": this.getMicroserviceCount(),
|
|
187
|
+
"createdAt": this.getCreatedAt(),
|
|
188
|
+
"updatedAt": this.getUpdatedAt(),
|
|
189
|
+
"revision": this.getRevision(),
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
return DumpProgress;
|
|
193
|
+
}());
|
|
194
|
+
exports.default = DumpProgress;
|
|
195
|
+
//# sourceMappingURL=DumpProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DumpProgress.js","sourceRoot":"","sources":["DumpProgress.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH,IAAM,SAAS,GAAW,gFAAgF,CAAC;AAE3G;IAAA;QACY,mBAAc,GAAgB,IAAI,CAAC;QACnC,kBAAa,GAAgB,IAAI,CAAC;QAClC,WAAM,GAAgB,IAAI,CAAC;QAC3B,WAAM,GAAgB,IAAI,CAAC;QAC3B,sBAAiB,GAAgB,IAAI,CAAC;QACtC,cAAS,GAAgB,IAAI,CAAC;QAC9B,cAAS,GAAgB,IAAI,CAAC;QAC9B,aAAQ,GAAgB,IAAI,CAAC;IAiLzC,CAAC;IA/KiB,2BAAc,GAA5B,UAA6B,GAAW;QACpC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC;aAChC,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC;aAC9B,OAAO,CAAC,iBAAiB,EAA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