gs2 1.3.122 → 1.3.123

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.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/project/model/Gs2Region.d.ts +17 -0
  3. package/project/model/Gs2Region.js +62 -0
  4. package/project/model/Gs2Region.js.map +1 -0
  5. package/project/model/Gs2Region.ts +60 -0
  6. package/project/model/Project.d.ts +9 -0
  7. package/project/model/Project.js +36 -0
  8. package/project/model/Project.js.map +1 -1
  9. package/project/model/Project.ts +37 -0
  10. package/project/model/index.d.ts +2 -1
  11. package/project/model/index.js +3 -1
  12. package/project/model/index.js.map +1 -1
  13. package/project/model/index.ts +2 -0
  14. package/project/request/ActivateRegionRequest.d.ts +29 -0
  15. package/project/request/ActivateRegionRequest.js +97 -0
  16. package/project/request/ActivateRegionRequest.js.map +1 -0
  17. package/project/request/ActivateRegionRequest.ts +104 -0
  18. package/project/request/CreateProjectRequest.d.ts +8 -0
  19. package/project/request/CreateProjectRequest.js +28 -0
  20. package/project/request/CreateProjectRequest.js.map +1 -1
  21. package/project/request/CreateProjectRequest.ts +28 -0
  22. package/project/request/index.d.ts +2 -1
  23. package/project/request/index.js +3 -1
  24. package/project/request/index.js.map +1 -1
  25. package/project/request/index.ts +2 -0
  26. package/project/rest.d.ts +1 -0
  27. package/project/rest.js +35 -5
  28. package/project/rest.js.map +1 -1
  29. package/project/rest.ts +34 -0
  30. package/project/result/ActivateRegionResult.d.ts +14 -0
  31. package/project/result/ActivateRegionResult.js +48 -0
  32. package/project/result/ActivateRegionResult.js.map +1 -0
  33. package/project/result/ActivateRegionResult.ts +48 -0
  34. package/project/result/index.d.ts +2 -1
  35. package/project/result/index.js +3 -1
  36. package/project/result/index.js.map +1 -1
  37. package/project/result/index.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2",
3
- "version": "1.3.122",
3
+ "version": "1.3.123",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -0,0 +1,17 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ export default class Gs2Region implements IModel {
3
+ private regionName;
4
+ private status;
5
+ getRegionName(): string | null;
6
+ setRegionName(regionName: string | null): this;
7
+ withRegionName(regionName: string | null): this;
8
+ getStatus(): string | null;
9
+ setStatus(status: string | null): this;
10
+ withStatus(status: string | null): this;
11
+ static fromDict(data: {
12
+ [key: string]: any;
13
+ }): Gs2Region | null;
14
+ toDict(): {
15
+ [key: string]: any;
16
+ };
17
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var Gs2Region = /** @class */ (function () {
19
+ function Gs2Region() {
20
+ this.regionName = null;
21
+ this.status = null;
22
+ }
23
+ Gs2Region.prototype.getRegionName = function () {
24
+ return this.regionName;
25
+ };
26
+ Gs2Region.prototype.setRegionName = function (regionName) {
27
+ this.regionName = regionName;
28
+ return this;
29
+ };
30
+ Gs2Region.prototype.withRegionName = function (regionName) {
31
+ this.regionName = regionName;
32
+ return this;
33
+ };
34
+ Gs2Region.prototype.getStatus = function () {
35
+ return this.status;
36
+ };
37
+ Gs2Region.prototype.setStatus = function (status) {
38
+ this.status = status;
39
+ return this;
40
+ };
41
+ Gs2Region.prototype.withStatus = function (status) {
42
+ this.status = status;
43
+ return this;
44
+ };
45
+ Gs2Region.fromDict = function (data) {
46
+ if (data == undefined || data == null) {
47
+ return null;
48
+ }
49
+ return new Gs2Region()
50
+ .withRegionName(data["regionName"])
51
+ .withStatus(data["status"]);
52
+ };
53
+ Gs2Region.prototype.toDict = function () {
54
+ return {
55
+ "regionName": this.getRegionName(),
56
+ "status": this.getStatus(),
57
+ };
58
+ };
59
+ return Gs2Region;
60
+ }());
61
+ exports.default = Gs2Region;
62
+ //# sourceMappingURL=Gs2Region.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gs2Region.js","sourceRoot":"","sources":["Gs2Region.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,eAAU,GAAgB,IAAI,CAAC;QAC/B,WAAM,GAAgB,IAAI,CAAC;IAuCvC,CAAC;IAtCU,iCAAa,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IACM,iCAAa,GAApB,UAAqB,UAAuB;QACxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAc,GAArB,UAAsB,UAAuB;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6BAAS,GAAhB;QACI,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACM,6BAAS,GAAhB,UAAiB,MAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8BAAU,GAAjB,UAAkB,MAAmB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,kBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,SAAS,EAAE;aACjB,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aAClC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpC,CAAC;IAEM,0BAAM,GAAb;QACI,OAAO;YACH,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;SAC7B,CAAC;IACN,CAAC;IACL,gBAAC;AAAD,CAAC,AAzCD,IAyCC"}
@@ -0,0 +1,60 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IModel from '../../core/interface/IModel';
18
+
19
+ export default class Gs2Region implements IModel {
20
+ private regionName: string|null = null;
21
+ private status: string|null = null;
22
+ public getRegionName(): string|null {
23
+ return this.regionName;
24
+ }
25
+ public setRegionName(regionName: string|null) {
26
+ this.regionName = regionName;
27
+ return this;
28
+ }
29
+ public withRegionName(regionName: string|null): this {
30
+ this.regionName = regionName;
31
+ return this;
32
+ }
33
+ public getStatus(): string|null {
34
+ return this.status;
35
+ }
36
+ public setStatus(status: string|null) {
37
+ this.status = status;
38
+ return this;
39
+ }
40
+ public withStatus(status: string|null): this {
41
+ this.status = status;
42
+ return this;
43
+ }
44
+
45
+ public static fromDict(data: {[key: string]: any}): Gs2Region|null {
46
+ if (data == undefined || data == null) {
47
+ return null;
48
+ }
49
+ return new Gs2Region()
50
+ .withRegionName(data["regionName"])
51
+ .withStatus(data["status"]);
52
+ }
53
+
54
+ public toDict(): {[key: string]: any} {
55
+ return {
56
+ "regionName": this.getRegionName(),
57
+ "status": this.getStatus(),
58
+ };
59
+ }
60
+ }
@@ -1,12 +1,15 @@
1
1
  import IModel from '../../core/interface/IModel';
2
+ import Gs2Region from './Gs2Region';
2
3
  export default class Project implements IModel {
3
4
  private projectId;
4
5
  private accountName;
5
6
  private name;
6
7
  private description;
7
8
  private plan;
9
+ private regions;
8
10
  private billingMethodName;
9
11
  private enableEventBridge;
12
+ private currency;
10
13
  private eventBridgeAwsAccountId;
11
14
  private eventBridgeAwsRegion;
12
15
  private createdAt;
@@ -30,12 +33,18 @@ export default class Project implements IModel {
30
33
  getPlan(): string | null;
31
34
  setPlan(plan: string | null): this;
32
35
  withPlan(plan: string | null): this;
36
+ getRegions(): Gs2Region[] | null;
37
+ setRegions(regions: Gs2Region[] | null): this;
38
+ withRegions(regions: Gs2Region[] | null): this;
33
39
  getBillingMethodName(): string | null;
34
40
  setBillingMethodName(billingMethodName: string | null): this;
35
41
  withBillingMethodName(billingMethodName: string | null): this;
36
42
  getEnableEventBridge(): string | null;
37
43
  setEnableEventBridge(enableEventBridge: string | null): this;
38
44
  withEnableEventBridge(enableEventBridge: string | null): this;
45
+ getCurrency(): string | null;
46
+ setCurrency(currency: string | null): this;
47
+ withCurrency(currency: string | null): this;
39
48
  getEventBridgeAwsAccountId(): string | null;
40
49
  setEventBridgeAwsAccountId(eventBridgeAwsAccountId: string | null): this;
41
50
  withEventBridgeAwsAccountId(eventBridgeAwsAccountId: string | null): this;
@@ -15,6 +15,8 @@ express or implied. See the License for the specific language governing
15
15
  permissions and limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var Gs2Region_1 = tslib_1.__importDefault(require("./Gs2Region"));
18
20
  var grnFormat = "grn:gs2:::gs2:account:{accountName}:project:{projectName}";
19
21
  var Project = /** @class */ (function () {
20
22
  function Project() {
@@ -23,8 +25,10 @@ var Project = /** @class */ (function () {
23
25
  this.name = null;
24
26
  this.description = null;
25
27
  this.plan = null;
28
+ this.regions = null;
26
29
  this.billingMethodName = null;
27
30
  this.enableEventBridge = null;
31
+ this.currency = null;
28
32
  this.eventBridgeAwsAccountId = null;
29
33
  this.eventBridgeAwsRegion = null;
30
34
  this.createdAt = null;
@@ -117,6 +121,17 @@ var Project = /** @class */ (function () {
117
121
  this.plan = plan;
118
122
  return this;
119
123
  };
124
+ Project.prototype.getRegions = function () {
125
+ return this.regions;
126
+ };
127
+ Project.prototype.setRegions = function (regions) {
128
+ this.regions = regions;
129
+ return this;
130
+ };
131
+ Project.prototype.withRegions = function (regions) {
132
+ this.regions = regions;
133
+ return this;
134
+ };
120
135
  Project.prototype.getBillingMethodName = function () {
121
136
  return this.billingMethodName;
122
137
  };
@@ -139,6 +154,17 @@ var Project = /** @class */ (function () {
139
154
  this.enableEventBridge = enableEventBridge;
140
155
  return this;
141
156
  };
157
+ Project.prototype.getCurrency = function () {
158
+ return this.currency;
159
+ };
160
+ Project.prototype.setCurrency = function (currency) {
161
+ this.currency = currency;
162
+ return this;
163
+ };
164
+ Project.prototype.withCurrency = function (currency) {
165
+ this.currency = currency;
166
+ return this;
167
+ };
142
168
  Project.prototype.getEventBridgeAwsAccountId = function () {
143
169
  return this.eventBridgeAwsAccountId;
144
170
  };
@@ -193,8 +219,13 @@ var Project = /** @class */ (function () {
193
219
  .withName(data["name"])
194
220
  .withDescription(data["description"])
195
221
  .withPlan(data["plan"])
222
+ .withRegions(data.regions ?
223
+ data.regions.map(function (item) {
224
+ return Gs2Region_1.default.fromDict(item);
225
+ }) : [])
196
226
  .withBillingMethodName(data["billingMethodName"])
197
227
  .withEnableEventBridge(data["enableEventBridge"])
228
+ .withCurrency(data["currency"])
198
229
  .withEventBridgeAwsAccountId(data["eventBridgeAwsAccountId"])
199
230
  .withEventBridgeAwsRegion(data["eventBridgeAwsRegion"])
200
231
  .withCreatedAt(data["createdAt"])
@@ -207,8 +238,13 @@ var Project = /** @class */ (function () {
207
238
  "name": this.getName(),
208
239
  "description": this.getDescription(),
209
240
  "plan": this.getPlan(),
241
+ "regions": this.getRegions() ?
242
+ this.getRegions().map(function (item) {
243
+ return item.toDict();
244
+ }) : [],
210
245
  "billingMethodName": this.getBillingMethodName(),
211
246
  "enableEventBridge": this.getEnableEventBridge(),
247
+ "currency": this.getCurrency(),
212
248
  "eventBridgeAwsAccountId": this.getEventBridgeAwsAccountId(),
213
249
  "eventBridgeAwsRegion": this.getEventBridgeAwsRegion(),
214
250
  "createdAt": this.getCreatedAt(),
@@ -1 +1 @@
1
- {"version":3,"file":"Project.js","sourceRoot":"","sources":["Project.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAGH,IAAM,SAAS,GAAW,2DAA2D,CAAC;AAEtF;IAAA;QACY,cAAS,GAAgB,IAAI,CAAC;QAC9B,gBAAW,GAAgB,IAAI,CAAC;QAChC,SAAI,GAAgB,IAAI,CAAC;QACzB,gBAAW,GAAgB,IAAI,CAAC;QAChC,SAAI,GAAgB,IAAI,CAAC;QACzB,sBAAiB,GAAgB,IAAI,CAAC;QACtC,sBAAiB,GAAgB,IAAI,CAAC;QACtC,4BAAuB,GAAgB,IAAI,CAAC;QAC5C,yBAAoB,GAAgB,IAAI,CAAC;QACzC,cAAS,GAAgB,IAAI,CAAC;QAC9B,cAAS,GAAgB,IAAI,CAAC;IAqM1C,CAAC;IAnMiB,sBAAc,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,CAClC,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sBAAc,GAA5B,UAA6B,GAAW;QACpC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,eAAe,EAAE,IAAI,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,CAAC,UAAC,IAAe;oBACnC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,mBAAmB,EAAE,IAAI,CAAC,oBAAoB,EAAE;YAChD,mBAAmB,EAAE,IAAI,CAAC,oBAAoB,EAAE;YAChD,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,yBAAyB,EAAE,IAAI,CAAC,0BAA0B,EAAE;YAC5D,sBAAsB,EAAE,IAAI,CAAC,uBAAuB,EAAE;YACtD,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;SACnC,CAAC;IACN,CAAC;IACL,cAAC;AAAD,CAAC,AApPD,IAoPC"}
@@ -15,6 +15,7 @@ permissions and limitations under the License.
15
15
  */
16
16
 
17
17
  import IModel from '../../core/interface/IModel';
18
+ import Gs2Region from './Gs2Region';
18
19
  const grnFormat: string = "grn:gs2:::gs2:account:{accountName}:project:{projectName}";
19
20
 
20
21
  export default class Project implements IModel {
@@ -23,8 +24,10 @@ export default class Project implements IModel {
23
24
  private name: string|null = null;
24
25
  private description: string|null = null;
25
26
  private plan: string|null = null;
27
+ private regions: Gs2Region[]|null = null;
26
28
  private billingMethodName: string|null = null;
27
29
  private enableEventBridge: string|null = null;
30
+ private currency: string|null = null;
28
31
  private eventBridgeAwsAccountId: string|null = null;
29
32
  private eventBridgeAwsRegion: string|null = null;
30
33
  private createdAt: number|null = null;
@@ -125,6 +128,17 @@ export default class Project implements IModel {
125
128
  this.plan = plan;
126
129
  return this;
127
130
  }
131
+ public getRegions(): Gs2Region[]|null {
132
+ return this.regions;
133
+ }
134
+ public setRegions(regions: Gs2Region[]|null) {
135
+ this.regions = regions;
136
+ return this;
137
+ }
138
+ public withRegions(regions: Gs2Region[]|null): this {
139
+ this.regions = regions;
140
+ return this;
141
+ }
128
142
  public getBillingMethodName(): string|null {
129
143
  return this.billingMethodName;
130
144
  }
@@ -147,6 +161,17 @@ export default class Project implements IModel {
147
161
  this.enableEventBridge = enableEventBridge;
148
162
  return this;
149
163
  }
164
+ public getCurrency(): string|null {
165
+ return this.currency;
166
+ }
167
+ public setCurrency(currency: string|null) {
168
+ this.currency = currency;
169
+ return this;
170
+ }
171
+ public withCurrency(currency: string|null): this {
172
+ this.currency = currency;
173
+ return this;
174
+ }
150
175
  public getEventBridgeAwsAccountId(): string|null {
151
176
  return this.eventBridgeAwsAccountId;
152
177
  }
@@ -202,8 +227,14 @@ export default class Project implements IModel {
202
227
  .withName(data["name"])
203
228
  .withDescription(data["description"])
204
229
  .withPlan(data["plan"])
230
+ .withRegions(data.regions ?
231
+ data.regions.map((item: {[key: string]: any}) => {
232
+ return Gs2Region.fromDict(item);
233
+ }
234
+ ) : [])
205
235
  .withBillingMethodName(data["billingMethodName"])
206
236
  .withEnableEventBridge(data["enableEventBridge"])
237
+ .withCurrency(data["currency"])
207
238
  .withEventBridgeAwsAccountId(data["eventBridgeAwsAccountId"])
208
239
  .withEventBridgeAwsRegion(data["eventBridgeAwsRegion"])
209
240
  .withCreatedAt(data["createdAt"])
@@ -217,8 +248,14 @@ export default class Project implements IModel {
217
248
  "name": this.getName(),
218
249
  "description": this.getDescription(),
219
250
  "plan": this.getPlan(),
251
+ "regions": this.getRegions() ?
252
+ this.getRegions()!.map((item: Gs2Region) => {
253
+ return item.toDict();
254
+ }
255
+ ) : [],
220
256
  "billingMethodName": this.getBillingMethodName(),
221
257
  "enableEventBridge": this.getEnableEventBridge(),
258
+ "currency": this.getCurrency(),
222
259
  "eventBridgeAwsAccountId": this.getEventBridgeAwsAccountId(),
223
260
  "eventBridgeAwsRegion": this.getEventBridgeAwsRegion(),
224
261
  "createdAt": this.getCreatedAt(),
@@ -1,6 +1,7 @@
1
1
  import Account from "./Account";
2
2
  import Project from "./Project";
3
+ import Gs2Region from "./Gs2Region";
3
4
  import BillingMethod from "./BillingMethod";
4
5
  import Receipt from "./Receipt";
5
6
  import Billing from "./Billing";
6
- export { Account, Project, BillingMethod, Receipt, Billing, };
7
+ export { Account, Project, Gs2Region, BillingMethod, Receipt, Billing, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Billing = exports.Receipt = exports.BillingMethod = exports.Project = exports.Account = void 0;
3
+ exports.Billing = exports.Receipt = exports.BillingMethod = exports.Gs2Region = exports.Project = exports.Account = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  /*
6
6
  Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
@@ -21,6 +21,8 @@ var Account_1 = tslib_1.__importDefault(require("./Account"));
21
21
  exports.Account = Account_1.default;
22
22
  var Project_1 = tslib_1.__importDefault(require("./Project"));
23
23
  exports.Project = Project_1.default;
24
+ var Gs2Region_1 = tslib_1.__importDefault(require("./Gs2Region"));
25
+ exports.Gs2Region = Gs2Region_1.default;
24
26
  var BillingMethod_1 = tslib_1.__importDefault(require("./BillingMethod"));
25
27
  exports.BillingMethod = BillingMethod_1.default;
26
28
  var Receipt_1 = tslib_1.__importDefault(require("./Receipt"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,8DAA+B;AAO3B,kBAPG,iBAAO,CAOH;AANX,8DAA+B;AAO3B,kBAPG,iBAAO,CAOH;AANX,0EAA2C;AAOvC,wBAPG,uBAAa,CAOH;AANjB,8DAA+B;AAO3B,kBAPG,iBAAO,CAOH;AANX,8DAA+B;AAO3B,kBAPG,iBAAO,CAOH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,8DAA+B;AAQ3B,kBARG,iBAAO,CAQH;AAPX,8DAA+B;AAQ3B,kBARG,iBAAO,CAQH;AAPX,kEAAmC;AAQ/B,oBARG,mBAAS,CAQH;AAPb,0EAA2C;AAQvC,wBARG,uBAAa,CAQH;AAPjB,8DAA+B;AAQ3B,kBARG,iBAAO,CAQH;AAPX,8DAA+B;AAQ3B,kBARG,iBAAO,CAQH"}
@@ -15,6 +15,7 @@ permissions and limitations under the License.
15
15
  */
16
16
  import Account from "./Account"
17
17
  import Project from "./Project"
18
+ import Gs2Region from "./Gs2Region"
18
19
  import BillingMethod from "./BillingMethod"
19
20
  import Receipt from "./Receipt"
20
21
  import Billing from "./Billing"
@@ -22,6 +23,7 @@ import Billing from "./Billing"
22
23
  export {
23
24
  Account,
24
25
  Project,
26
+ Gs2Region,
25
27
  BillingMethod,
26
28
  Receipt,
27
29
  Billing,
@@ -0,0 +1,29 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ export default class ActivateRegionRequest implements IRequest {
3
+ private requestId;
4
+ private contextStack;
5
+ private accountToken;
6
+ private projectName;
7
+ private regionName;
8
+ getRequestId(): string | null;
9
+ setRequestId(requestId: string | null): this;
10
+ withRequestId(requestId: string | null): this;
11
+ getContextStack(): string | null;
12
+ setContextStack(contextStack: string | null): this;
13
+ withContextStack(contextStack: string | null): this;
14
+ getAccountToken(): string | null;
15
+ setAccountToken(accountToken: string | null): this;
16
+ withAccountToken(accountToken: string | null): this;
17
+ getProjectName(): string | null;
18
+ setProjectName(projectName: string | null): this;
19
+ withProjectName(projectName: string | null): this;
20
+ getRegionName(): string | null;
21
+ setRegionName(regionName: string | null): this;
22
+ withRegionName(regionName: string | null): this;
23
+ static fromDict(data: {
24
+ [key: string]: any;
25
+ }): ActivateRegionRequest;
26
+ toDict(): {
27
+ [key: string]: any;
28
+ };
29
+ }
@@ -0,0 +1,97 @@
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 ActivateRegionRequest = /** @class */ (function () {
19
+ function ActivateRegionRequest() {
20
+ this.requestId = null;
21
+ this.contextStack = null;
22
+ this.accountToken = null;
23
+ this.projectName = null;
24
+ this.regionName = null;
25
+ }
26
+ ActivateRegionRequest.prototype.getRequestId = function () {
27
+ return this.requestId;
28
+ };
29
+ ActivateRegionRequest.prototype.setRequestId = function (requestId) {
30
+ this.requestId = requestId;
31
+ return this;
32
+ };
33
+ ActivateRegionRequest.prototype.withRequestId = function (requestId) {
34
+ this.requestId = requestId;
35
+ return this;
36
+ };
37
+ ActivateRegionRequest.prototype.getContextStack = function () {
38
+ return this.contextStack;
39
+ };
40
+ ActivateRegionRequest.prototype.setContextStack = function (contextStack) {
41
+ this.contextStack = contextStack;
42
+ return this;
43
+ };
44
+ ActivateRegionRequest.prototype.withContextStack = function (contextStack) {
45
+ this.contextStack = contextStack;
46
+ return this;
47
+ };
48
+ ActivateRegionRequest.prototype.getAccountToken = function () {
49
+ return this.accountToken;
50
+ };
51
+ ActivateRegionRequest.prototype.setAccountToken = function (accountToken) {
52
+ this.accountToken = accountToken;
53
+ return this;
54
+ };
55
+ ActivateRegionRequest.prototype.withAccountToken = function (accountToken) {
56
+ this.accountToken = accountToken;
57
+ return this;
58
+ };
59
+ ActivateRegionRequest.prototype.getProjectName = function () {
60
+ return this.projectName;
61
+ };
62
+ ActivateRegionRequest.prototype.setProjectName = function (projectName) {
63
+ this.projectName = projectName;
64
+ return this;
65
+ };
66
+ ActivateRegionRequest.prototype.withProjectName = function (projectName) {
67
+ this.projectName = projectName;
68
+ return this;
69
+ };
70
+ ActivateRegionRequest.prototype.getRegionName = function () {
71
+ return this.regionName;
72
+ };
73
+ ActivateRegionRequest.prototype.setRegionName = function (regionName) {
74
+ this.regionName = regionName;
75
+ return this;
76
+ };
77
+ ActivateRegionRequest.prototype.withRegionName = function (regionName) {
78
+ this.regionName = regionName;
79
+ return this;
80
+ };
81
+ ActivateRegionRequest.fromDict = function (data) {
82
+ return new ActivateRegionRequest()
83
+ .withAccountToken(data["accountToken"])
84
+ .withProjectName(data["projectName"])
85
+ .withRegionName(data["regionName"]);
86
+ };
87
+ ActivateRegionRequest.prototype.toDict = function () {
88
+ return {
89
+ "accountToken": this.getAccountToken(),
90
+ "projectName": this.getProjectName(),
91
+ "regionName": this.getRegionName(),
92
+ };
93
+ };
94
+ return ActivateRegionRequest;
95
+ }());
96
+ exports.default = ActivateRegionRequest;
97
+ //# sourceMappingURL=ActivateRegionRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivateRegionRequest.js","sourceRoot":"","sources":["ActivateRegionRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,iBAAY,GAAgB,IAAI,CAAC;QACjC,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAgB,IAAI,CAAC;IA6E3C,CAAC;IA3EU,4CAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,4CAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,6CAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+CAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,+CAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACj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