gs2 1.4.99 → 1.4.100
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/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -179
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +30 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/project/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2ProjectRestClient.prototype.createAccount = function (request) {
|
|
29
|
-
var _a, _b, _c, _d, _e, _f;
|
|
30
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account')
|
|
29
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
30
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account')
|
|
31
31
|
.replace('{service}', 'project')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,12 +35,12 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
35
35
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
36
36
|
}
|
|
37
37
|
var body = {
|
|
38
|
-
'contextStack': (
|
|
39
|
-
'email': (
|
|
40
|
-
'fullName': (
|
|
41
|
-
'companyName': (
|
|
42
|
-
'password': (
|
|
43
|
-
'lang': (
|
|
38
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
39
|
+
'email': (_c = request.getEmail()) !== null && _c !== void 0 ? _c : null,
|
|
40
|
+
'fullName': (_d = request.getFullName()) !== null && _d !== void 0 ? _d : null,
|
|
41
|
+
'companyName': (_e = request.getCompanyName()) !== null && _e !== void 0 ? _e : null,
|
|
42
|
+
'password': (_f = request.getPassword()) !== null && _f !== void 0 ? _f : null,
|
|
43
|
+
'lang': (_g = request.getLang()) !== null && _g !== void 0 ? _g : null,
|
|
44
44
|
};
|
|
45
45
|
return axios_1.default.post(url, body, {
|
|
46
46
|
headers: headers,
|
|
@@ -56,8 +56,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
Gs2ProjectRestClient.prototype.verify = function (request) {
|
|
59
|
-
var _a, _b;
|
|
60
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/verify')
|
|
59
|
+
var _a, _b, _c;
|
|
60
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/verify')
|
|
61
61
|
.replace('{service}', 'project')
|
|
62
62
|
.replace('{region}', this.session.region);
|
|
63
63
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -65,8 +65,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
65
65
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
66
66
|
}
|
|
67
67
|
var body = {
|
|
68
|
-
'contextStack': (
|
|
69
|
-
'verifyToken': (
|
|
68
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
69
|
+
'verifyToken': (_c = request.getVerifyToken()) !== null && _c !== void 0 ? _c : null,
|
|
70
70
|
};
|
|
71
71
|
return axios_1.default.post(url, body, {
|
|
72
72
|
headers: headers,
|
|
@@ -82,8 +82,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
Gs2ProjectRestClient.prototype.signIn = function (request) {
|
|
85
|
-
var _a, _b, _c, _d;
|
|
86
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/signIn')
|
|
85
|
+
var _a, _b, _c, _d, _e;
|
|
86
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/signIn')
|
|
87
87
|
.replace('{service}', 'project')
|
|
88
88
|
.replace('{region}', this.session.region);
|
|
89
89
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -91,10 +91,10 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
91
91
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
92
92
|
}
|
|
93
93
|
var body = {
|
|
94
|
-
'contextStack': (
|
|
95
|
-
'email': (
|
|
96
|
-
'password': (
|
|
97
|
-
'otp': (
|
|
94
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
95
|
+
'email': (_c = request.getEmail()) !== null && _c !== void 0 ? _c : null,
|
|
96
|
+
'password': (_d = request.getPassword()) !== null && _d !== void 0 ? _d : null,
|
|
97
|
+
'otp': (_e = request.getOtp()) !== null && _e !== void 0 ? _e : null,
|
|
98
98
|
};
|
|
99
99
|
return axios_1.default.post(url, body, {
|
|
100
100
|
headers: headers,
|
|
@@ -110,8 +110,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
110
110
|
});
|
|
111
111
|
};
|
|
112
112
|
Gs2ProjectRestClient.prototype.forget = function (request) {
|
|
113
|
-
var _a, _b, _c;
|
|
114
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/forget')
|
|
113
|
+
var _a, _b, _c, _d;
|
|
114
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/forget')
|
|
115
115
|
.replace('{service}', 'project')
|
|
116
116
|
.replace('{region}', this.session.region);
|
|
117
117
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -119,9 +119,9 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
119
119
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
120
120
|
}
|
|
121
121
|
var body = {
|
|
122
|
-
'contextStack': (
|
|
123
|
-
'email': (
|
|
124
|
-
'lang': (
|
|
122
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
123
|
+
'email': (_c = request.getEmail()) !== null && _c !== void 0 ? _c : null,
|
|
124
|
+
'lang': (_d = request.getLang()) !== null && _d !== void 0 ? _d : null,
|
|
125
125
|
};
|
|
126
126
|
return axios_1.default.post(url, body, {
|
|
127
127
|
headers: headers,
|
|
@@ -137,8 +137,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
139
|
Gs2ProjectRestClient.prototype.issuePassword = function (request) {
|
|
140
|
-
var _a, _b;
|
|
141
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/password/issue')
|
|
140
|
+
var _a, _b, _c;
|
|
141
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/password/issue')
|
|
142
142
|
.replace('{service}', 'project')
|
|
143
143
|
.replace('{region}', this.session.region);
|
|
144
144
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -146,8 +146,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
146
146
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
147
147
|
}
|
|
148
148
|
var body = {
|
|
149
|
-
'contextStack': (
|
|
150
|
-
'issuePasswordToken': (
|
|
149
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
150
|
+
'issuePasswordToken': (_c = request.getIssuePasswordToken()) !== null && _c !== void 0 ? _c : null,
|
|
151
151
|
};
|
|
152
152
|
return axios_1.default.post(url, body, {
|
|
153
153
|
headers: headers,
|
|
@@ -163,8 +163,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
165
|
Gs2ProjectRestClient.prototype.updateAccount = function (request) {
|
|
166
|
-
var _a, _b, _c, _d, _e, _f;
|
|
167
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account')
|
|
166
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
167
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account')
|
|
168
168
|
.replace('{service}', 'project')
|
|
169
169
|
.replace('{region}', this.session.region);
|
|
170
170
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -172,12 +172,12 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
172
172
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
173
173
|
}
|
|
174
174
|
var body = {
|
|
175
|
-
'contextStack': (
|
|
176
|
-
'email': (
|
|
177
|
-
'fullName': (
|
|
178
|
-
'companyName': (
|
|
179
|
-
'password': (
|
|
180
|
-
'accountToken': (
|
|
175
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
176
|
+
'email': (_c = request.getEmail()) !== null && _c !== void 0 ? _c : null,
|
|
177
|
+
'fullName': (_d = request.getFullName()) !== null && _d !== void 0 ? _d : null,
|
|
178
|
+
'companyName': (_e = request.getCompanyName()) !== null && _e !== void 0 ? _e : null,
|
|
179
|
+
'password': (_f = request.getPassword()) !== null && _f !== void 0 ? _f : null,
|
|
180
|
+
'accountToken': (_g = request.getAccountToken()) !== null && _g !== void 0 ? _g : null,
|
|
181
181
|
};
|
|
182
182
|
return axios_1.default.put(url, body, {
|
|
183
183
|
headers: headers,
|
|
@@ -193,8 +193,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
193
193
|
});
|
|
194
194
|
};
|
|
195
195
|
Gs2ProjectRestClient.prototype.enableMfa = function (request) {
|
|
196
|
-
var _a, _b;
|
|
197
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/mfa')
|
|
196
|
+
var _a, _b, _c;
|
|
197
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/mfa')
|
|
198
198
|
.replace('{service}', 'project')
|
|
199
199
|
.replace('{region}', this.session.region);
|
|
200
200
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -202,8 +202,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
202
202
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
203
203
|
}
|
|
204
204
|
var body = {
|
|
205
|
-
'contextStack': (
|
|
206
|
-
'accountToken': (
|
|
205
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
206
|
+
'accountToken': (_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null,
|
|
207
207
|
};
|
|
208
208
|
return axios_1.default.post(url, body, {
|
|
209
209
|
headers: headers,
|
|
@@ -219,8 +219,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
219
219
|
});
|
|
220
220
|
};
|
|
221
221
|
Gs2ProjectRestClient.prototype.challengeMfa = function (request) {
|
|
222
|
-
var _a, _b, _c;
|
|
223
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/mfa/challenge')
|
|
222
|
+
var _a, _b, _c, _d;
|
|
223
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/mfa/challenge')
|
|
224
224
|
.replace('{service}', 'project')
|
|
225
225
|
.replace('{region}', this.session.region);
|
|
226
226
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -228,9 +228,9 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
228
228
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
229
229
|
}
|
|
230
230
|
var body = {
|
|
231
|
-
'contextStack': (
|
|
232
|
-
'accountToken': (
|
|
233
|
-
'passcode': (
|
|
231
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
232
|
+
'accountToken': (_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null,
|
|
233
|
+
'passcode': (_d = request.getPasscode()) !== null && _d !== void 0 ? _d : null,
|
|
234
234
|
};
|
|
235
235
|
return axios_1.default.post(url, body, {
|
|
236
236
|
headers: headers,
|
|
@@ -246,8 +246,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
246
246
|
});
|
|
247
247
|
};
|
|
248
248
|
Gs2ProjectRestClient.prototype.disableMfa = function (request) {
|
|
249
|
-
var _a, _b;
|
|
250
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/mfa')
|
|
249
|
+
var _a, _b, _c;
|
|
250
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/mfa')
|
|
251
251
|
.replace('{service}', 'project')
|
|
252
252
|
.replace('{region}', this.session.region);
|
|
253
253
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -255,8 +255,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
255
255
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
256
256
|
}
|
|
257
257
|
var params = {
|
|
258
|
-
'contextStack': (
|
|
259
|
-
'accountToken': String((
|
|
258
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
259
|
+
'accountToken': String((_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null),
|
|
260
260
|
};
|
|
261
261
|
return axios_1.default.delete(url, {
|
|
262
262
|
params: params,
|
|
@@ -268,8 +268,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
268
268
|
});
|
|
269
269
|
};
|
|
270
270
|
Gs2ProjectRestClient.prototype.deleteAccount = function (request) {
|
|
271
|
-
var _a, _b;
|
|
272
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account')
|
|
271
|
+
var _a, _b, _c;
|
|
272
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account')
|
|
273
273
|
.replace('{service}', 'project')
|
|
274
274
|
.replace('{region}', this.session.region);
|
|
275
275
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -277,8 +277,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
277
277
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
278
278
|
}
|
|
279
279
|
var params = {
|
|
280
|
-
'contextStack': (
|
|
281
|
-
'accountToken': String((
|
|
280
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
281
|
+
'accountToken': String((_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null),
|
|
282
282
|
};
|
|
283
283
|
return axios_1.default.delete(url, {
|
|
284
284
|
params: params,
|
|
@@ -290,8 +290,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
290
290
|
});
|
|
291
291
|
};
|
|
292
292
|
Gs2ProjectRestClient.prototype.getServiceVersion = function (request) {
|
|
293
|
-
var _a;
|
|
294
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
293
|
+
var _a, _b;
|
|
294
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
295
295
|
.replace('{service}', 'project')
|
|
296
296
|
.replace('{region}', this.session.region);
|
|
297
297
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -299,7 +299,7 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
299
299
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
300
300
|
}
|
|
301
301
|
var params = {
|
|
302
|
-
'contextStack': (
|
|
302
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
303
303
|
};
|
|
304
304
|
return axios_1.default.get(url, {
|
|
305
305
|
params: params,
|
|
@@ -311,8 +311,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
311
311
|
});
|
|
312
312
|
};
|
|
313
313
|
Gs2ProjectRestClient.prototype.describeProjects = function (request) {
|
|
314
|
-
var _a, _b, _c, _d;
|
|
315
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project')
|
|
314
|
+
var _a, _b, _c, _d, _e;
|
|
315
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project')
|
|
316
316
|
.replace('{service}', 'project')
|
|
317
317
|
.replace('{region}', this.session.region);
|
|
318
318
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -320,10 +320,10 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
320
320
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
321
321
|
}
|
|
322
322
|
var params = {
|
|
323
|
-
'contextStack': (
|
|
324
|
-
'accountToken': String((
|
|
325
|
-
'pageToken': String((
|
|
326
|
-
'limit': String((
|
|
323
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
324
|
+
'accountToken': String((_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null),
|
|
325
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
326
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
327
327
|
};
|
|
328
328
|
return axios_1.default.get(url, {
|
|
329
329
|
params: params,
|
|
@@ -335,8 +335,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
335
335
|
});
|
|
336
336
|
};
|
|
337
337
|
Gs2ProjectRestClient.prototype.createProject = function (request) {
|
|
338
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
339
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project')
|
|
338
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
339
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project')
|
|
340
340
|
.replace('{service}', 'project')
|
|
341
341
|
.replace('{region}', this.session.region);
|
|
342
342
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -344,17 +344,17 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
344
344
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
345
345
|
}
|
|
346
346
|
var body = {
|
|
347
|
-
'contextStack': (
|
|
348
|
-
'accountToken': (
|
|
349
|
-
'name': (
|
|
350
|
-
'description': (
|
|
351
|
-
'plan': (
|
|
352
|
-
'currency': (
|
|
353
|
-
'activateRegionName': (
|
|
354
|
-
'billingMethodName': (
|
|
355
|
-
'enableEventBridge': (
|
|
356
|
-
'eventBridgeAwsAccountId': (
|
|
357
|
-
'eventBridgeAwsRegion': (
|
|
347
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
348
|
+
'accountToken': (_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null,
|
|
349
|
+
'name': (_d = request.getName()) !== null && _d !== void 0 ? _d : null,
|
|
350
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
351
|
+
'plan': (_f = request.getPlan()) !== null && _f !== void 0 ? _f : null,
|
|
352
|
+
'currency': (_g = request.getCurrency()) !== null && _g !== void 0 ? _g : null,
|
|
353
|
+
'activateRegionName': (_h = request.getActivateRegionName()) !== null && _h !== void 0 ? _h : null,
|
|
354
|
+
'billingMethodName': (_j = request.getBillingMethodName()) !== null && _j !== void 0 ? _j : null,
|
|
355
|
+
'enableEventBridge': (_k = request.getEnableEventBridge()) !== null && _k !== void 0 ? _k : null,
|
|
356
|
+
'eventBridgeAwsAccountId': (_l = request.getEventBridgeAwsAccountId()) !== null && _l !== void 0 ? _l : null,
|
|
357
|
+
'eventBridgeAwsRegion': (_m = request.getEventBridgeAwsRegion()) !== null && _m !== void 0 ? _m : null,
|
|
358
358
|
};
|
|
359
359
|
return axios_1.default.post(url, body, {
|
|
360
360
|
headers: headers,
|
|
@@ -370,18 +370,18 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
370
370
|
});
|
|
371
371
|
};
|
|
372
372
|
Gs2ProjectRestClient.prototype.getProject = function (request) {
|
|
373
|
-
var _a, _b, _c, _d;
|
|
374
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/{projectName}')
|
|
373
|
+
var _a, _b, _c, _d, _e;
|
|
374
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/{projectName}')
|
|
375
375
|
.replace('{service}', 'project')
|
|
376
376
|
.replace('{region}', this.session.region)
|
|
377
|
-
.replace('{projectName}', String((
|
|
377
|
+
.replace('{projectName}', String((_b = request.getProjectName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getProjectName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
378
378
|
var headers = this.createAuthorizedHeaders();
|
|
379
379
|
if (request.getRequestId()) {
|
|
380
380
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
381
381
|
}
|
|
382
382
|
var params = {
|
|
383
|
-
'contextStack': (
|
|
384
|
-
'accountToken': String((
|
|
383
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
384
|
+
'accountToken': String((_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null),
|
|
385
385
|
};
|
|
386
386
|
return axios_1.default.get(url, {
|
|
387
387
|
params: params,
|
|
@@ -393,18 +393,18 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
393
393
|
});
|
|
394
394
|
};
|
|
395
395
|
Gs2ProjectRestClient.prototype.getProjectToken = function (request) {
|
|
396
|
-
var _a, _b, _c, _d;
|
|
397
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/project/{projectName}/projectToken')
|
|
396
|
+
var _a, _b, _c, _d, _e;
|
|
397
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/project/{projectName}/projectToken')
|
|
398
398
|
.replace('{service}', 'project')
|
|
399
399
|
.replace('{region}', this.session.region)
|
|
400
|
-
.replace('{projectName}', String((
|
|
400
|
+
.replace('{projectName}', String((_b = request.getProjectName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getProjectName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
401
401
|
var headers = this.createAuthorizedHeaders();
|
|
402
402
|
if (request.getRequestId()) {
|
|
403
403
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
404
404
|
}
|
|
405
405
|
var body = {
|
|
406
|
-
'contextStack': (
|
|
407
|
-
'accountToken': (
|
|
406
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
407
|
+
'accountToken': (_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null,
|
|
408
408
|
};
|
|
409
409
|
return axios_1.default.post(url, body, {
|
|
410
410
|
headers: headers,
|
|
@@ -420,21 +420,21 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
420
420
|
});
|
|
421
421
|
};
|
|
422
422
|
Gs2ProjectRestClient.prototype.getProjectTokenByIdentifier = function (request) {
|
|
423
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
424
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/{accountName}/project/{projectName}/user/{userName}/projectToken')
|
|
423
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
424
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/{accountName}/project/{projectName}/user/{userName}/projectToken')
|
|
425
425
|
.replace('{service}', 'project')
|
|
426
426
|
.replace('{region}', this.session.region)
|
|
427
|
-
.replace('{accountName}', String((
|
|
428
|
-
.replace('{projectName}', String((
|
|
429
|
-
.replace('{userName}', String((
|
|
427
|
+
.replace('{accountName}', String((_b = request.getAccountName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getAccountName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
428
|
+
.replace('{projectName}', String((_d = request.getProjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getProjectName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
429
|
+
.replace('{userName}', String((_f = request.getUserName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
430
430
|
var headers = this.createAuthorizedHeaders();
|
|
431
431
|
if (request.getRequestId()) {
|
|
432
432
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
433
433
|
}
|
|
434
434
|
var body = {
|
|
435
|
-
'contextStack': (
|
|
436
|
-
'password': (
|
|
437
|
-
'otp': (
|
|
435
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
436
|
+
'password': (_j = request.getPassword()) !== null && _j !== void 0 ? _j : null,
|
|
437
|
+
'otp': (_k = request.getOtp()) !== null && _k !== void 0 ? _k : null,
|
|
438
438
|
};
|
|
439
439
|
return axios_1.default.post(url, body, {
|
|
440
440
|
headers: headers,
|
|
@@ -450,24 +450,24 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
450
450
|
});
|
|
451
451
|
};
|
|
452
452
|
Gs2ProjectRestClient.prototype.updateProject = function (request) {
|
|
453
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
454
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/{projectName}')
|
|
453
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
454
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/{projectName}')
|
|
455
455
|
.replace('{service}', 'project')
|
|
456
456
|
.replace('{region}', this.session.region)
|
|
457
|
-
.replace('{projectName}', String((
|
|
457
|
+
.replace('{projectName}', String((_b = request.getProjectName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getProjectName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
458
458
|
var headers = this.createAuthorizedHeaders();
|
|
459
459
|
if (request.getRequestId()) {
|
|
460
460
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
461
461
|
}
|
|
462
462
|
var body = {
|
|
463
|
-
'contextStack': (
|
|
464
|
-
'accountToken': (
|
|
465
|
-
'description': (
|
|
466
|
-
'plan': (
|
|
467
|
-
'billingMethodName': (
|
|
468
|
-
'enableEventBridge': (
|
|
469
|
-
'eventBridgeAwsAccountId': (
|
|
470
|
-
'eventBridgeAwsRegion': (
|
|
463
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
464
|
+
'accountToken': (_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null,
|
|
465
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
466
|
+
'plan': (_g = request.getPlan()) !== null && _g !== void 0 ? _g : null,
|
|
467
|
+
'billingMethodName': (_h = request.getBillingMethodName()) !== null && _h !== void 0 ? _h : null,
|
|
468
|
+
'enableEventBridge': (_j = request.getEnableEventBridge()) !== null && _j !== void 0 ? _j : null,
|
|
469
|
+
'eventBridgeAwsAccountId': (_k = request.getEventBridgeAwsAccountId()) !== null && _k !== void 0 ? _k : null,
|
|
470
|
+
'eventBridgeAwsRegion': (_l = request.getEventBridgeAwsRegion()) !== null && _l !== void 0 ? _l : null,
|
|
471
471
|
};
|
|
472
472
|
return axios_1.default.put(url, body, {
|
|
473
473
|
headers: headers,
|
|
@@ -483,19 +483,19 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
483
483
|
});
|
|
484
484
|
};
|
|
485
485
|
Gs2ProjectRestClient.prototype.activateRegion = function (request) {
|
|
486
|
-
var _a, _b, _c, _d, _e, _f;
|
|
487
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/{projectName}/region/{regionName}/activate')
|
|
486
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
487
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/{projectName}/region/{regionName}/activate')
|
|
488
488
|
.replace('{service}', 'project')
|
|
489
489
|
.replace('{region}', this.session.region)
|
|
490
|
-
.replace('{projectName}', String((
|
|
491
|
-
.replace('{regionName}', String((
|
|
490
|
+
.replace('{projectName}', String((_b = request.getProjectName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getProjectName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
491
|
+
.replace('{regionName}', String((_d = request.getRegionName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getRegionName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
492
492
|
var headers = this.createAuthorizedHeaders();
|
|
493
493
|
if (request.getRequestId()) {
|
|
494
494
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
495
495
|
}
|
|
496
496
|
var body = {
|
|
497
|
-
'contextStack': (
|
|
498
|
-
'accountToken': (
|
|
497
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
498
|
+
'accountToken': (_g = request.getAccountToken()) !== null && _g !== void 0 ? _g : null,
|
|
499
499
|
};
|
|
500
500
|
return axios_1.default.put(url, body, {
|
|
501
501
|
headers: headers,
|
|
@@ -511,19 +511,19 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
511
511
|
});
|
|
512
512
|
};
|
|
513
513
|
Gs2ProjectRestClient.prototype.waitActivateRegion = function (request) {
|
|
514
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
515
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/region/{regionName}/activate/wait')
|
|
514
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
515
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/region/{regionName}/activate/wait')
|
|
516
516
|
.replace('{service}', 'project')
|
|
517
517
|
.replace('{region}', this.session.region)
|
|
518
|
-
.replace('{ownerId}', String((
|
|
519
|
-
.replace('{projectName}', String((
|
|
520
|
-
.replace('{regionName}', String((
|
|
518
|
+
.replace('{ownerId}', String((_b = request.getOwnerId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getOwnerId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
519
|
+
.replace('{projectName}', String((_d = request.getProjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getProjectName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
520
|
+
.replace('{regionName}', String((_f = request.getRegionName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getRegionName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
521
521
|
var headers = this.createAuthorizedHeaders();
|
|
522
522
|
if (request.getRequestId()) {
|
|
523
523
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
524
524
|
}
|
|
525
525
|
var body = {
|
|
526
|
-
'contextStack': (
|
|
526
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
527
527
|
};
|
|
528
528
|
return axios_1.default.put(url, body, {
|
|
529
529
|
headers: headers,
|
|
@@ -539,18 +539,18 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
539
539
|
});
|
|
540
540
|
};
|
|
541
541
|
Gs2ProjectRestClient.prototype.deleteProject = function (request) {
|
|
542
|
-
var _a, _b, _c, _d;
|
|
543
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/{projectName}')
|
|
542
|
+
var _a, _b, _c, _d, _e;
|
|
543
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/{projectName}')
|
|
544
544
|
.replace('{service}', 'project')
|
|
545
545
|
.replace('{region}', this.session.region)
|
|
546
|
-
.replace('{projectName}', String((
|
|
546
|
+
.replace('{projectName}', String((_b = request.getProjectName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getProjectName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
547
547
|
var headers = this.createAuthorizedHeaders();
|
|
548
548
|
if (request.getRequestId()) {
|
|
549
549
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
550
550
|
}
|
|
551
551
|
var params = {
|
|
552
|
-
'contextStack': (
|
|
553
|
-
'accountToken': String((
|
|
552
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
553
|
+
'accountToken': String((_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null),
|
|
554
554
|
};
|
|
555
555
|
return axios_1.default.delete(url, {
|
|
556
556
|
params: params,
|
|
@@ -562,8 +562,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
562
562
|
});
|
|
563
563
|
};
|
|
564
564
|
Gs2ProjectRestClient.prototype.describeBillingMethods = function (request) {
|
|
565
|
-
var _a, _b, _c, _d;
|
|
566
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod')
|
|
565
|
+
var _a, _b, _c, _d, _e;
|
|
566
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod')
|
|
567
567
|
.replace('{service}', 'project')
|
|
568
568
|
.replace('{region}', this.session.region);
|
|
569
569
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -571,10 +571,10 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
571
571
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
572
572
|
}
|
|
573
573
|
var params = {
|
|
574
|
-
'contextStack': (
|
|
575
|
-
'accountToken': String((
|
|
576
|
-
'pageToken': String((
|
|
577
|
-
'limit': String((
|
|
574
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
575
|
+
'accountToken': String((_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null),
|
|
576
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
577
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
578
578
|
};
|
|
579
579
|
return axios_1.default.get(url, {
|
|
580
580
|
params: params,
|
|
@@ -586,8 +586,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
586
586
|
});
|
|
587
587
|
};
|
|
588
588
|
Gs2ProjectRestClient.prototype.createBillingMethod = function (request) {
|
|
589
|
-
var _a, _b, _c, _d, _e, _f;
|
|
590
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod')
|
|
589
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
590
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod')
|
|
591
591
|
.replace('{service}', 'project')
|
|
592
592
|
.replace('{region}', this.session.region);
|
|
593
593
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -595,12 +595,12 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
595
595
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
596
596
|
}
|
|
597
597
|
var body = {
|
|
598
|
-
'contextStack': (
|
|
599
|
-
'accountToken': (
|
|
600
|
-
'description': (
|
|
601
|
-
'methodType': (
|
|
602
|
-
'cardCustomerId': (
|
|
603
|
-
'partnerId': (
|
|
598
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
599
|
+
'accountToken': (_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null,
|
|
600
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
601
|
+
'methodType': (_e = request.getMethodType()) !== null && _e !== void 0 ? _e : null,
|
|
602
|
+
'cardCustomerId': (_f = request.getCardCustomerId()) !== null && _f !== void 0 ? _f : null,
|
|
603
|
+
'partnerId': (_g = request.getPartnerId()) !== null && _g !== void 0 ? _g : null,
|
|
604
604
|
};
|
|
605
605
|
return axios_1.default.post(url, body, {
|
|
606
606
|
headers: headers,
|
|
@@ -616,18 +616,18 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
616
616
|
});
|
|
617
617
|
};
|
|
618
618
|
Gs2ProjectRestClient.prototype.getBillingMethod = function (request) {
|
|
619
|
-
var _a, _b, _c, _d;
|
|
620
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod/{billingMethodName}')
|
|
619
|
+
var _a, _b, _c, _d, _e;
|
|
620
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod/{billingMethodName}')
|
|
621
621
|
.replace('{service}', 'project')
|
|
622
622
|
.replace('{region}', this.session.region)
|
|
623
|
-
.replace('{billingMethodName}', String((
|
|
623
|
+
.replace('{billingMethodName}', String((_b = request.getBillingMethodName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getBillingMethodName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
624
624
|
var headers = this.createAuthorizedHeaders();
|
|
625
625
|
if (request.getRequestId()) {
|
|
626
626
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
627
627
|
}
|
|
628
628
|
var params = {
|
|
629
|
-
'contextStack': (
|
|
630
|
-
'accountToken': String((
|
|
629
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
630
|
+
'accountToken': String((_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null),
|
|
631
631
|
};
|
|
632
632
|
return axios_1.default.get(url, {
|
|
633
633
|
params: params,
|
|
@@ -639,19 +639,19 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
639
639
|
});
|
|
640
640
|
};
|
|
641
641
|
Gs2ProjectRestClient.prototype.updateBillingMethod = function (request) {
|
|
642
|
-
var _a, _b, _c, _d, _e;
|
|
643
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod/{billingMethodName}')
|
|
642
|
+
var _a, _b, _c, _d, _e, _f;
|
|
643
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod/{billingMethodName}')
|
|
644
644
|
.replace('{service}', 'project')
|
|
645
645
|
.replace('{region}', this.session.region)
|
|
646
|
-
.replace('{billingMethodName}', String((
|
|
646
|
+
.replace('{billingMethodName}', String((_b = request.getBillingMethodName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getBillingMethodName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
647
647
|
var headers = this.createAuthorizedHeaders();
|
|
648
648
|
if (request.getRequestId()) {
|
|
649
649
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
650
650
|
}
|
|
651
651
|
var body = {
|
|
652
|
-
'contextStack': (
|
|
653
|
-
'accountToken': (
|
|
654
|
-
'description': (
|
|
652
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
653
|
+
'accountToken': (_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null,
|
|
654
|
+
'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
|
|
655
655
|
};
|
|
656
656
|
return axios_1.default.put(url, body, {
|
|
657
657
|
headers: headers,
|
|
@@ -667,18 +667,18 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
667
667
|
});
|
|
668
668
|
};
|
|
669
669
|
Gs2ProjectRestClient.prototype.deleteBillingMethod = function (request) {
|
|
670
|
-
var _a, _b, _c, _d;
|
|
671
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod/{billingMethodName}')
|
|
670
|
+
var _a, _b, _c, _d, _e;
|
|
671
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billingMethod/{billingMethodName}')
|
|
672
672
|
.replace('{service}', 'project')
|
|
673
673
|
.replace('{region}', this.session.region)
|
|
674
|
-
.replace('{billingMethodName}', String((
|
|
674
|
+
.replace('{billingMethodName}', String((_b = request.getBillingMethodName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getBillingMethodName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
675
675
|
var headers = this.createAuthorizedHeaders();
|
|
676
676
|
if (request.getRequestId()) {
|
|
677
677
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
678
678
|
}
|
|
679
679
|
var params = {
|
|
680
|
-
'contextStack': (
|
|
681
|
-
'accountToken': String((
|
|
680
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
681
|
+
'accountToken': String((_e = request.getAccountToken()) !== null && _e !== void 0 ? _e : null),
|
|
682
682
|
};
|
|
683
683
|
return axios_1.default.delete(url, {
|
|
684
684
|
params: params,
|
|
@@ -690,8 +690,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
690
690
|
});
|
|
691
691
|
};
|
|
692
692
|
Gs2ProjectRestClient.prototype.describeReceipts = function (request) {
|
|
693
|
-
var _a, _b, _c, _d;
|
|
694
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/receipt')
|
|
693
|
+
var _a, _b, _c, _d, _e;
|
|
694
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/receipt')
|
|
695
695
|
.replace('{service}', 'project')
|
|
696
696
|
.replace('{region}', this.session.region);
|
|
697
697
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -699,10 +699,10 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
699
699
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
700
700
|
}
|
|
701
701
|
var params = {
|
|
702
|
-
'contextStack': (
|
|
703
|
-
'accountToken': String((
|
|
704
|
-
'pageToken': String((
|
|
705
|
-
'limit': String((
|
|
702
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
703
|
+
'accountToken': String((_c = request.getAccountToken()) !== null && _c !== void 0 ? _c : null),
|
|
704
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
705
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
706
706
|
};
|
|
707
707
|
return axios_1.default.get(url, {
|
|
708
708
|
params: params,
|
|
@@ -714,22 +714,22 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
714
714
|
});
|
|
715
715
|
};
|
|
716
716
|
Gs2ProjectRestClient.prototype.describeBillings = function (request) {
|
|
717
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
718
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billing/{projectName}/{year}/{month}')
|
|
717
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
718
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/billing/{projectName}/{year}/{month}')
|
|
719
719
|
.replace('{service}', 'project')
|
|
720
720
|
.replace('{region}', this.session.region)
|
|
721
|
-
.replace('{projectName}', String((
|
|
722
|
-
.replace('{year}', String((
|
|
723
|
-
.replace('{month}', String((
|
|
721
|
+
.replace('{projectName}', String((_b = request.getProjectName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getProjectName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
722
|
+
.replace('{year}', String((_d = request.getYear()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getYear()) !== null && _e !== void 0 ? _e : 'null'))
|
|
723
|
+
.replace('{month}', String((_f = request.getMonth()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getMonth()) !== null && _g !== void 0 ? _g : 'null'));
|
|
724
724
|
var headers = this.createAuthorizedHeaders();
|
|
725
725
|
if (request.getRequestId()) {
|
|
726
726
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
727
727
|
}
|
|
728
728
|
var params = {
|
|
729
|
-
'contextStack': (
|
|
730
|
-
'accountToken': String((
|
|
731
|
-
'region': String((
|
|
732
|
-
'service': String((
|
|
729
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
730
|
+
'accountToken': String((_j = request.getAccountToken()) !== null && _j !== void 0 ? _j : null),
|
|
731
|
+
'region': String((_k = request.getRegion()) !== null && _k !== void 0 ? _k : null),
|
|
732
|
+
'service': String((_l = request.getService()) !== null && _l !== void 0 ? _l : null),
|
|
733
733
|
};
|
|
734
734
|
return axios_1.default.get(url, {
|
|
735
735
|
params: params,
|
|
@@ -741,8 +741,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
741
741
|
});
|
|
742
742
|
};
|
|
743
743
|
Gs2ProjectRestClient.prototype.describeDumpProgresses = function (request) {
|
|
744
|
-
var _a, _b, _c;
|
|
745
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/dump/progress')
|
|
744
|
+
var _a, _b, _c, _d;
|
|
745
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/dump/progress')
|
|
746
746
|
.replace('{service}', 'project')
|
|
747
747
|
.replace('{region}', this.session.region);
|
|
748
748
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -750,9 +750,9 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
750
750
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
751
751
|
}
|
|
752
752
|
var params = {
|
|
753
|
-
'contextStack': (
|
|
754
|
-
'pageToken': String((
|
|
755
|
-
'limit': String((
|
|
753
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
754
|
+
'pageToken': String((_c = request.getPageToken()) !== null && _c !== void 0 ? _c : null),
|
|
755
|
+
'limit': String((_d = request.getLimit()) !== null && _d !== void 0 ? _d : null),
|
|
756
756
|
};
|
|
757
757
|
return axios_1.default.get(url, {
|
|
758
758
|
params: params,
|
|
@@ -764,17 +764,17 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
764
764
|
});
|
|
765
765
|
};
|
|
766
766
|
Gs2ProjectRestClient.prototype.getDumpProgress = function (request) {
|
|
767
|
-
var _a, _b, _c;
|
|
768
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/dump/progress/{transactionId}')
|
|
767
|
+
var _a, _b, _c, _d;
|
|
768
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/dump/progress/{transactionId}')
|
|
769
769
|
.replace('{service}', 'project')
|
|
770
770
|
.replace('{region}', this.session.region)
|
|
771
|
-
.replace('{transactionId}', String((
|
|
771
|
+
.replace('{transactionId}', String((_b = request.getTransactionId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getTransactionId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
772
772
|
var headers = this.createAuthorizedHeaders();
|
|
773
773
|
if (request.getRequestId()) {
|
|
774
774
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
775
775
|
}
|
|
776
776
|
var params = {
|
|
777
|
-
'contextStack': (
|
|
777
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
778
778
|
};
|
|
779
779
|
return axios_1.default.get(url, {
|
|
780
780
|
params: params,
|
|
@@ -786,26 +786,26 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
786
786
|
});
|
|
787
787
|
};
|
|
788
788
|
Gs2ProjectRestClient.prototype.waitDumpUserData = function (request) {
|
|
789
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
790
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/dump/progress/{transactionId}/wait')
|
|
789
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
790
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/dump/progress/{transactionId}/wait')
|
|
791
791
|
.replace('{service}', 'project')
|
|
792
792
|
.replace('{region}', this.session.region)
|
|
793
|
-
.replace('{ownerId}', String((
|
|
794
|
-
.replace('{transactionId}', String((
|
|
793
|
+
.replace('{ownerId}', String((_b = request.getOwnerId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getOwnerId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
794
|
+
.replace('{transactionId}', String((_d = request.getTransactionId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getTransactionId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
795
795
|
var headers = this.createAuthorizedHeaders();
|
|
796
796
|
if (request.getRequestId()) {
|
|
797
797
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
798
798
|
}
|
|
799
799
|
if (request.getDuplicationAvoider()) {
|
|
800
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
800
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
801
801
|
}
|
|
802
802
|
if (request.getTimeOffsetToken()) {
|
|
803
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
803
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
804
804
|
}
|
|
805
805
|
var body = {
|
|
806
|
-
'contextStack': (
|
|
807
|
-
'userId': (
|
|
808
|
-
'microserviceName': (
|
|
806
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
807
|
+
'userId': (_j = request.getUserId()) !== null && _j !== void 0 ? _j : null,
|
|
808
|
+
'microserviceName': (_k = request.getMicroserviceName()) !== null && _k !== void 0 ? _k : null,
|
|
809
809
|
};
|
|
810
810
|
return axios_1.default.post(url, body, {
|
|
811
811
|
headers: headers,
|
|
@@ -821,18 +821,18 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
821
821
|
});
|
|
822
822
|
};
|
|
823
823
|
Gs2ProjectRestClient.prototype.archiveDumpUserData = function (request) {
|
|
824
|
-
var _a, _b, _c, _d, _e;
|
|
825
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/dump/progress/{transactionId}/archive')
|
|
824
|
+
var _a, _b, _c, _d, _e, _f;
|
|
825
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/dump/progress/{transactionId}/archive')
|
|
826
826
|
.replace('{service}', 'project')
|
|
827
827
|
.replace('{region}', this.session.region)
|
|
828
|
-
.replace('{ownerId}', String((
|
|
829
|
-
.replace('{transactionId}', String((
|
|
828
|
+
.replace('{ownerId}', String((_b = request.getOwnerId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getOwnerId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
829
|
+
.replace('{transactionId}', String((_d = request.getTransactionId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getTransactionId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
830
830
|
var headers = this.createAuthorizedHeaders();
|
|
831
831
|
if (request.getRequestId()) {
|
|
832
832
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
833
833
|
}
|
|
834
834
|
var body = {
|
|
835
|
-
'contextStack': (
|
|
835
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
836
836
|
};
|
|
837
837
|
return axios_1.default.post(url, body, {
|
|
838
838
|
headers: headers,
|
|
@@ -848,23 +848,23 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
848
848
|
});
|
|
849
849
|
};
|
|
850
850
|
Gs2ProjectRestClient.prototype.dumpUserData = function (request) {
|
|
851
|
-
var _a, _b, _c, _d, _e;
|
|
852
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/dump/{userId}')
|
|
851
|
+
var _a, _b, _c, _d, _e, _f;
|
|
852
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/dump/{userId}')
|
|
853
853
|
.replace('{service}', 'project')
|
|
854
854
|
.replace('{region}', this.session.region)
|
|
855
|
-
.replace('{userId}', String((
|
|
855
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
856
856
|
var headers = this.createAuthorizedHeaders();
|
|
857
857
|
if (request.getRequestId()) {
|
|
858
858
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
859
859
|
}
|
|
860
860
|
if (request.getDuplicationAvoider()) {
|
|
861
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
861
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_d = request.getDuplicationAvoider()) !== null && _d !== void 0 ? _d : null;
|
|
862
862
|
}
|
|
863
863
|
if (request.getTimeOffsetToken()) {
|
|
864
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
864
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_e = request.getTimeOffsetToken()) !== null && _e !== void 0 ? _e : null;
|
|
865
865
|
}
|
|
866
866
|
var body = {
|
|
867
|
-
'contextStack': (
|
|
867
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
868
868
|
};
|
|
869
869
|
return axios_1.default.post(url, body, {
|
|
870
870
|
headers: headers,
|
|
@@ -880,17 +880,17 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
880
880
|
});
|
|
881
881
|
};
|
|
882
882
|
Gs2ProjectRestClient.prototype.getDumpUserData = function (request) {
|
|
883
|
-
var _a, _b, _c;
|
|
884
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/dump/{transactionId}')
|
|
883
|
+
var _a, _b, _c, _d;
|
|
884
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/dump/{transactionId}')
|
|
885
885
|
.replace('{service}', 'project')
|
|
886
886
|
.replace('{region}', this.session.region)
|
|
887
|
-
.replace('{transactionId}', String((
|
|
887
|
+
.replace('{transactionId}', String((_b = request.getTransactionId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getTransactionId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
888
888
|
var headers = this.createAuthorizedHeaders();
|
|
889
889
|
if (request.getRequestId()) {
|
|
890
890
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
891
891
|
}
|
|
892
892
|
var params = {
|
|
893
|
-
'contextStack': (
|
|
893
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
894
894
|
};
|
|
895
895
|
return axios_1.default.get(url, {
|
|
896
896
|
params: params,
|
|
@@ -902,8 +902,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
902
902
|
});
|
|
903
903
|
};
|
|
904
904
|
Gs2ProjectRestClient.prototype.describeCleanProgresses = function (request) {
|
|
905
|
-
var _a, _b, _c;
|
|
906
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/clean/progress')
|
|
905
|
+
var _a, _b, _c, _d;
|
|
906
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/clean/progress')
|
|
907
907
|
.replace('{service}', 'project')
|
|
908
908
|
.replace('{region}', this.session.region);
|
|
909
909
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -911,9 +911,9 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
911
911
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
912
912
|
}
|
|
913
913
|
var params = {
|
|
914
|
-
'contextStack': (
|
|
915
|
-
'pageToken': String((
|
|
916
|
-
'limit': String((
|
|
914
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
915
|
+
'pageToken': String((_c = request.getPageToken()) !== null && _c !== void 0 ? _c : null),
|
|
916
|
+
'limit': String((_d = request.getLimit()) !== null && _d !== void 0 ? _d : null),
|
|
917
917
|
};
|
|
918
918
|
return axios_1.default.get(url, {
|
|
919
919
|
params: params,
|
|
@@ -925,17 +925,17 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
925
925
|
});
|
|
926
926
|
};
|
|
927
927
|
Gs2ProjectRestClient.prototype.getCleanProgress = function (request) {
|
|
928
|
-
var _a, _b, _c;
|
|
929
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/clean/progress/{transactionId}')
|
|
928
|
+
var _a, _b, _c, _d;
|
|
929
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/clean/progress/{transactionId}')
|
|
930
930
|
.replace('{service}', 'project')
|
|
931
931
|
.replace('{region}', this.session.region)
|
|
932
|
-
.replace('{transactionId}', String((
|
|
932
|
+
.replace('{transactionId}', String((_b = request.getTransactionId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getTransactionId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
933
933
|
var headers = this.createAuthorizedHeaders();
|
|
934
934
|
if (request.getRequestId()) {
|
|
935
935
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
936
936
|
}
|
|
937
937
|
var params = {
|
|
938
|
-
'contextStack': (
|
|
938
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
939
939
|
};
|
|
940
940
|
return axios_1.default.get(url, {
|
|
941
941
|
params: params,
|
|
@@ -947,26 +947,26 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
947
947
|
});
|
|
948
948
|
};
|
|
949
949
|
Gs2ProjectRestClient.prototype.waitCleanUserData = function (request) {
|
|
950
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
951
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/clean/progress/{transactionId}/wait')
|
|
950
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
951
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/clean/progress/{transactionId}/wait')
|
|
952
952
|
.replace('{service}', 'project')
|
|
953
953
|
.replace('{region}', this.session.region)
|
|
954
|
-
.replace('{ownerId}', String((
|
|
955
|
-
.replace('{transactionId}', String((
|
|
954
|
+
.replace('{ownerId}', String((_b = request.getOwnerId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getOwnerId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
955
|
+
.replace('{transactionId}', String((_d = request.getTransactionId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getTransactionId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
956
956
|
var headers = this.createAuthorizedHeaders();
|
|
957
957
|
if (request.getRequestId()) {
|
|
958
958
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
959
959
|
}
|
|
960
960
|
if (request.getDuplicationAvoider()) {
|
|
961
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
961
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
962
962
|
}
|
|
963
963
|
if (request.getTimeOffsetToken()) {
|
|
964
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
964
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
965
965
|
}
|
|
966
966
|
var body = {
|
|
967
|
-
'contextStack': (
|
|
968
|
-
'userId': (
|
|
969
|
-
'microserviceName': (
|
|
967
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
968
|
+
'userId': (_j = request.getUserId()) !== null && _j !== void 0 ? _j : null,
|
|
969
|
+
'microserviceName': (_k = request.getMicroserviceName()) !== null && _k !== void 0 ? _k : null,
|
|
970
970
|
};
|
|
971
971
|
return axios_1.default.post(url, body, {
|
|
972
972
|
headers: headers,
|
|
@@ -982,23 +982,23 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
982
982
|
});
|
|
983
983
|
};
|
|
984
984
|
Gs2ProjectRestClient.prototype.cleanUserData = function (request) {
|
|
985
|
-
var _a, _b, _c, _d, _e;
|
|
986
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/clean/{userId}')
|
|
985
|
+
var _a, _b, _c, _d, _e, _f;
|
|
986
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/clean/{userId}')
|
|
987
987
|
.replace('{service}', 'project')
|
|
988
988
|
.replace('{region}', this.session.region)
|
|
989
|
-
.replace('{userId}', String((
|
|
989
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
990
990
|
var headers = this.createAuthorizedHeaders();
|
|
991
991
|
if (request.getRequestId()) {
|
|
992
992
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
993
993
|
}
|
|
994
994
|
if (request.getDuplicationAvoider()) {
|
|
995
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
995
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_d = request.getDuplicationAvoider()) !== null && _d !== void 0 ? _d : null;
|
|
996
996
|
}
|
|
997
997
|
if (request.getTimeOffsetToken()) {
|
|
998
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
998
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_e = request.getTimeOffsetToken()) !== null && _e !== void 0 ? _e : null;
|
|
999
999
|
}
|
|
1000
1000
|
var body = {
|
|
1001
|
-
'contextStack': (
|
|
1001
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1002
1002
|
};
|
|
1003
1003
|
return axios_1.default.post(url, body, {
|
|
1004
1004
|
headers: headers,
|
|
@@ -1014,8 +1014,8 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1014
1014
|
});
|
|
1015
1015
|
};
|
|
1016
1016
|
Gs2ProjectRestClient.prototype.describeImportProgresses = function (request) {
|
|
1017
|
-
var _a, _b, _c;
|
|
1018
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/progress')
|
|
1017
|
+
var _a, _b, _c, _d;
|
|
1018
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/progress')
|
|
1019
1019
|
.replace('{service}', 'project')
|
|
1020
1020
|
.replace('{region}', this.session.region);
|
|
1021
1021
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -1023,9 +1023,9 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1023
1023
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1024
1024
|
}
|
|
1025
1025
|
var params = {
|
|
1026
|
-
'contextStack': (
|
|
1027
|
-
'pageToken': String((
|
|
1028
|
-
'limit': String((
|
|
1026
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
1027
|
+
'pageToken': String((_c = request.getPageToken()) !== null && _c !== void 0 ? _c : null),
|
|
1028
|
+
'limit': String((_d = request.getLimit()) !== null && _d !== void 0 ? _d : null),
|
|
1029
1029
|
};
|
|
1030
1030
|
return axios_1.default.get(url, {
|
|
1031
1031
|
params: params,
|
|
@@ -1037,17 +1037,17 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1037
1037
|
});
|
|
1038
1038
|
};
|
|
1039
1039
|
Gs2ProjectRestClient.prototype.getImportProgress = function (request) {
|
|
1040
|
-
var _a, _b, _c;
|
|
1041
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/progress/{transactionId}')
|
|
1040
|
+
var _a, _b, _c, _d;
|
|
1041
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/progress/{transactionId}')
|
|
1042
1042
|
.replace('{service}', 'project')
|
|
1043
1043
|
.replace('{region}', this.session.region)
|
|
1044
|
-
.replace('{transactionId}', String((
|
|
1044
|
+
.replace('{transactionId}', String((_b = request.getTransactionId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getTransactionId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1045
1045
|
var headers = this.createAuthorizedHeaders();
|
|
1046
1046
|
if (request.getRequestId()) {
|
|
1047
1047
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1048
1048
|
}
|
|
1049
1049
|
var params = {
|
|
1050
|
-
'contextStack': (
|
|
1050
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1051
1051
|
};
|
|
1052
1052
|
return axios_1.default.get(url, {
|
|
1053
1053
|
params: params,
|
|
@@ -1059,26 +1059,26 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1059
1059
|
});
|
|
1060
1060
|
};
|
|
1061
1061
|
Gs2ProjectRestClient.prototype.waitImportUserData = function (request) {
|
|
1062
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1063
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/import/progress/{transactionId}/wait')
|
|
1062
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1063
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/{ownerId}/project/import/progress/{transactionId}/wait')
|
|
1064
1064
|
.replace('{service}', 'project')
|
|
1065
1065
|
.replace('{region}', this.session.region)
|
|
1066
|
-
.replace('{ownerId}', String((
|
|
1067
|
-
.replace('{transactionId}', String((
|
|
1066
|
+
.replace('{ownerId}', String((_b = request.getOwnerId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getOwnerId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1067
|
+
.replace('{transactionId}', String((_d = request.getTransactionId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getTransactionId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1068
1068
|
var headers = this.createAuthorizedHeaders();
|
|
1069
1069
|
if (request.getRequestId()) {
|
|
1070
1070
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1071
1071
|
}
|
|
1072
1072
|
if (request.getDuplicationAvoider()) {
|
|
1073
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1073
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
1074
1074
|
}
|
|
1075
1075
|
if (request.getTimeOffsetToken()) {
|
|
1076
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1076
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
1077
1077
|
}
|
|
1078
1078
|
var body = {
|
|
1079
|
-
'contextStack': (
|
|
1080
|
-
'userId': (
|
|
1081
|
-
'microserviceName': (
|
|
1079
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1080
|
+
'userId': (_j = request.getUserId()) !== null && _j !== void 0 ? _j : null,
|
|
1081
|
+
'microserviceName': (_k = request.getMicroserviceName()) !== null && _k !== void 0 ? _k : null,
|
|
1082
1082
|
};
|
|
1083
1083
|
return axios_1.default.post(url, body, {
|
|
1084
1084
|
headers: headers,
|
|
@@ -1094,23 +1094,23 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1094
1094
|
});
|
|
1095
1095
|
};
|
|
1096
1096
|
Gs2ProjectRestClient.prototype.prepareImportUserData = function (request) {
|
|
1097
|
-
var _a, _b, _c, _d, _e;
|
|
1098
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/{userId}/prepare')
|
|
1097
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1098
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/{userId}/prepare')
|
|
1099
1099
|
.replace('{service}', 'project')
|
|
1100
1100
|
.replace('{region}', this.session.region)
|
|
1101
|
-
.replace('{userId}', String((
|
|
1101
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1102
1102
|
var headers = this.createAuthorizedHeaders();
|
|
1103
1103
|
if (request.getRequestId()) {
|
|
1104
1104
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1105
1105
|
}
|
|
1106
1106
|
if (request.getDuplicationAvoider()) {
|
|
1107
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1107
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_d = request.getDuplicationAvoider()) !== null && _d !== void 0 ? _d : null;
|
|
1108
1108
|
}
|
|
1109
1109
|
if (request.getTimeOffsetToken()) {
|
|
1110
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1110
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_e = request.getTimeOffsetToken()) !== null && _e !== void 0 ? _e : null;
|
|
1111
1111
|
}
|
|
1112
1112
|
var body = {
|
|
1113
|
-
'contextStack': (
|
|
1113
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1114
1114
|
};
|
|
1115
1115
|
return axios_1.default.post(url, body, {
|
|
1116
1116
|
headers: headers,
|
|
@@ -1126,24 +1126,24 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1126
1126
|
});
|
|
1127
1127
|
};
|
|
1128
1128
|
Gs2ProjectRestClient.prototype.importUserData = function (request) {
|
|
1129
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1130
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/{userId}')
|
|
1129
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1130
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/{userId}')
|
|
1131
1131
|
.replace('{service}', 'project')
|
|
1132
1132
|
.replace('{region}', this.session.region)
|
|
1133
|
-
.replace('{userId}', String((
|
|
1133
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1134
1134
|
var headers = this.createAuthorizedHeaders();
|
|
1135
1135
|
if (request.getRequestId()) {
|
|
1136
1136
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1137
1137
|
}
|
|
1138
1138
|
if (request.getDuplicationAvoider()) {
|
|
1139
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1139
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_d = request.getDuplicationAvoider()) !== null && _d !== void 0 ? _d : null;
|
|
1140
1140
|
}
|
|
1141
1141
|
if (request.getTimeOffsetToken()) {
|
|
1142
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1142
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_e = request.getTimeOffsetToken()) !== null && _e !== void 0 ? _e : null;
|
|
1143
1143
|
}
|
|
1144
1144
|
var body = {
|
|
1145
|
-
'contextStack': (
|
|
1146
|
-
'uploadToken': (
|
|
1145
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1146
|
+
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1147
1147
|
};
|
|
1148
1148
|
return axios_1.default.post(url, body, {
|
|
1149
1149
|
headers: headers,
|
|
@@ -1159,19 +1159,19 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1159
1159
|
});
|
|
1160
1160
|
};
|
|
1161
1161
|
Gs2ProjectRestClient.prototype.describeImportErrorLogs = function (request) {
|
|
1162
|
-
var _a, _b, _c, _d, _e;
|
|
1163
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/progress/{transactionId}/log')
|
|
1162
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1163
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/progress/{transactionId}/log')
|
|
1164
1164
|
.replace('{service}', 'project')
|
|
1165
1165
|
.replace('{region}', this.session.region)
|
|
1166
|
-
.replace('{transactionId}', String((
|
|
1166
|
+
.replace('{transactionId}', String((_b = request.getTransactionId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getTransactionId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1167
1167
|
var headers = this.createAuthorizedHeaders();
|
|
1168
1168
|
if (request.getRequestId()) {
|
|
1169
1169
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1170
1170
|
}
|
|
1171
1171
|
var params = {
|
|
1172
|
-
'contextStack': (
|
|
1173
|
-
'pageToken': String((
|
|
1174
|
-
'limit': String((
|
|
1172
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1173
|
+
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
1174
|
+
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
1175
1175
|
};
|
|
1176
1176
|
return axios_1.default.get(url, {
|
|
1177
1177
|
params: params,
|
|
@@ -1183,18 +1183,18 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1183
1183
|
});
|
|
1184
1184
|
};
|
|
1185
1185
|
Gs2ProjectRestClient.prototype.getImportErrorLog = function (request) {
|
|
1186
|
-
var _a, _b, _c, _d, _e;
|
|
1187
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/progress/{transactionId}/log/{errorLogName}')
|
|
1186
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1187
|
+
var url = ((_a = Gs2ProjectRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/account/me/project/import/progress/{transactionId}/log/{errorLogName}')
|
|
1188
1188
|
.replace('{service}', 'project')
|
|
1189
1189
|
.replace('{region}', this.session.region)
|
|
1190
|
-
.replace('{transactionId}', String((
|
|
1191
|
-
.replace('{errorLogName}', String((
|
|
1190
|
+
.replace('{transactionId}', String((_b = request.getTransactionId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getTransactionId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1191
|
+
.replace('{errorLogName}', String((_d = request.getErrorLogName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getErrorLogName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1192
1192
|
var headers = this.createAuthorizedHeaders();
|
|
1193
1193
|
if (request.getRequestId()) {
|
|
1194
1194
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1195
1195
|
}
|
|
1196
1196
|
var params = {
|
|
1197
|
-
'contextStack': (
|
|
1197
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1198
1198
|
};
|
|
1199
1199
|
return axios_1.default.get(url, {
|
|
1200
1200
|
params: params,
|
|
@@ -1205,6 +1205,7 @@ var Gs2ProjectRestClient = /** @class */ (function (_super) {
|
|
|
1205
1205
|
throw JSON.parse(error.response.data.message);
|
|
1206
1206
|
});
|
|
1207
1207
|
};
|
|
1208
|
+
Gs2ProjectRestClient.ENDPOINT_HOST = null;
|
|
1208
1209
|
return Gs2ProjectRestClient;
|
|
1209
1210
|
}(AbstractGs2RestClient_1.default));
|
|
1210
1211
|
exports.default = Gs2ProjectRestClient;
|