gs2 1.4.77 → 1.4.79

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 (113) hide show
  1. package/freeze/index.d.ts +5 -0
  2. package/freeze/index.js +28 -0
  3. package/freeze/index.js.map +1 -0
  4. package/freeze/index.ts +27 -0
  5. package/freeze/model/Microservice.d.ts +17 -0
  6. package/freeze/model/Microservice.js +62 -0
  7. package/freeze/model/Microservice.js.map +1 -0
  8. package/freeze/model/Microservice.ts +62 -0
  9. package/freeze/model/Output.d.ts +35 -0
  10. package/freeze/model/Output.js +171 -0
  11. package/freeze/model/Output.js.map +1 -0
  12. package/freeze/model/Output.ts +186 -0
  13. package/freeze/model/Stage.d.ts +46 -0
  14. package/freeze/model/Stage.js +195 -0
  15. package/freeze/model/Stage.js.map +1 -0
  16. package/freeze/model/Stage.ts +207 -0
  17. package/freeze/model/index.d.ts +4 -0
  18. package/freeze/model/index.js +26 -0
  19. package/freeze/model/index.js.map +1 -0
  20. package/freeze/model/index.ts +24 -0
  21. package/freeze/request/DescribeOutputsRequest.d.ts +29 -0
  22. package/freeze/request/DescribeOutputsRequest.js +97 -0
  23. package/freeze/request/DescribeOutputsRequest.js.map +1 -0
  24. package/freeze/request/DescribeOutputsRequest.ts +104 -0
  25. package/freeze/request/DescribeStagesRequest.d.ts +17 -0
  26. package/freeze/request/DescribeStagesRequest.js +54 -0
  27. package/freeze/request/DescribeStagesRequest.js.map +1 -0
  28. package/freeze/request/DescribeStagesRequest.ts +62 -0
  29. package/freeze/request/GetOutputRequest.d.ts +25 -0
  30. package/freeze/request/GetOutputRequest.js +83 -0
  31. package/freeze/request/GetOutputRequest.js.map +1 -0
  32. package/freeze/request/GetOutputRequest.ts +90 -0
  33. package/freeze/request/GetStageRequest.d.ts +21 -0
  34. package/freeze/request/GetStageRequest.js +69 -0
  35. package/freeze/request/GetStageRequest.js.map +1 -0
  36. package/freeze/request/GetStageRequest.ts +76 -0
  37. package/freeze/request/PromoteStageRequest.d.ts +21 -0
  38. package/freeze/request/PromoteStageRequest.js +69 -0
  39. package/freeze/request/PromoteStageRequest.js.map +1 -0
  40. package/freeze/request/PromoteStageRequest.ts +76 -0
  41. package/freeze/request/RollbackStageRequest.d.ts +21 -0
  42. package/freeze/request/RollbackStageRequest.js +69 -0
  43. package/freeze/request/RollbackStageRequest.js.map +1 -0
  44. package/freeze/request/RollbackStageRequest.ts +76 -0
  45. package/freeze/request/index.d.ts +7 -0
  46. package/freeze/request/index.js +32 -0
  47. package/freeze/request/index.js.map +1 -0
  48. package/freeze/request/index.ts +30 -0
  49. package/freeze/rest.d.ts +13 -0
  50. package/freeze/rest.js +173 -0
  51. package/freeze/rest.js.map +1 -0
  52. package/freeze/rest.ts +195 -0
  53. package/freeze/result/DescribeOutputsResult.d.ts +18 -0
  54. package/freeze/result/DescribeOutputsResult.js +67 -0
  55. package/freeze/result/DescribeOutputsResult.js.map +1 -0
  56. package/freeze/result/DescribeOutputsResult.ts +72 -0
  57. package/freeze/result/DescribeStagesResult.d.ts +14 -0
  58. package/freeze/result/DescribeStagesResult.js +53 -0
  59. package/freeze/result/DescribeStagesResult.js.map +1 -0
  60. package/freeze/result/DescribeStagesResult.ts +55 -0
  61. package/freeze/result/GetOutputResult.d.ts +14 -0
  62. package/freeze/result/GetOutputResult.js +48 -0
  63. package/freeze/result/GetOutputResult.js.map +1 -0
  64. package/freeze/result/GetOutputResult.ts +47 -0
  65. package/freeze/result/GetStageResult.d.ts +22 -0
  66. package/freeze/result/GetStageResult.js +88 -0
  67. package/freeze/result/GetStageResult.js.map +1 -0
  68. package/freeze/result/GetStageResult.ts +97 -0
  69. package/freeze/result/PromoteStageResult.d.ts +14 -0
  70. package/freeze/result/PromoteStageResult.js +48 -0
  71. package/freeze/result/PromoteStageResult.js.map +1 -0
  72. package/freeze/result/PromoteStageResult.ts +47 -0
  73. package/freeze/result/RollbackStageResult.d.ts +14 -0
  74. package/freeze/result/RollbackStageResult.js +48 -0
  75. package/freeze/result/RollbackStageResult.js.map +1 -0
  76. package/freeze/result/RollbackStageResult.ts +47 -0
  77. package/freeze/result/index.d.ts +7 -0
  78. package/freeze/result/index.js +32 -0
  79. package/freeze/result/index.js.map +1 -0
  80. package/freeze/result/index.ts +30 -0
  81. package/friend/request/AddFriendByUserIdRequest.d.ts +37 -0
  82. package/friend/request/AddFriendByUserIdRequest.js +123 -0
  83. package/friend/request/AddFriendByUserIdRequest.js.map +1 -0
  84. package/friend/request/AddFriendByUserIdRequest.ts +133 -0
  85. package/friend/request/AddFriendRequest.d.ts +33 -0
  86. package/friend/request/AddFriendRequest.js +109 -0
  87. package/friend/request/AddFriendRequest.js.map +1 -0
  88. package/friend/request/AddFriendRequest.ts +119 -0
  89. package/friend/request/index.d.ts +3 -1
  90. package/friend/request/index.js +6 -2
  91. package/friend/request/index.js.map +1 -1
  92. package/friend/request/index.ts +4 -0
  93. package/friend/rest.d.ts +2 -0
  94. package/friend/rest.js +67 -0
  95. package/friend/rest.js.map +1 -1
  96. package/friend/rest.ts +75 -0
  97. package/friend/result/AddFriendByUserIdResult.d.ts +14 -0
  98. package/friend/result/AddFriendByUserIdResult.js +48 -0
  99. package/friend/result/AddFriendByUserIdResult.js.map +1 -0
  100. package/friend/result/AddFriendByUserIdResult.ts +47 -0
  101. package/friend/result/AddFriendResult.d.ts +14 -0
  102. package/friend/result/AddFriendResult.js +48 -0
  103. package/friend/result/AddFriendResult.js.map +1 -0
  104. package/friend/result/AddFriendResult.ts +47 -0
  105. package/friend/result/index.d.ts +3 -1
  106. package/friend/result/index.js +6 -2
  107. package/friend/result/index.js.map +1 -1
  108. package/friend/result/index.ts +4 -0
  109. package/index.d.ts +2 -1
  110. package/index.js +4 -2
  111. package/index.js.map +1 -1
  112. package/index.ts +2 -0
  113. package/package.json +1 -1
@@ -0,0 +1,195 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var grnFormat = "grn:gs2:{region}:{ownerId}:freeze:{stageName}";
19
+ var Stage = /** @class */ (function () {
20
+ function Stage() {
21
+ this.stageId = null;
22
+ this.name = null;
23
+ this.sourceStageName = null;
24
+ this.sortNumber = null;
25
+ this.status = null;
26
+ this.createdAt = null;
27
+ this.updatedAt = null;
28
+ this.revision = null;
29
+ }
30
+ Stage.getRegion = function (grn) {
31
+ var match = grn.match(grnFormat
32
+ .replace('{region}', '(.*)')
33
+ .replace('{ownerId}', '.*')
34
+ .replace('{stageName}', '.*'));
35
+ if (match) {
36
+ return match[1];
37
+ }
38
+ return null;
39
+ };
40
+ Stage.getOwnerId = function (grn) {
41
+ var match = grn.match(grnFormat
42
+ .replace('{region}', '.*')
43
+ .replace('{ownerId}', '(.*)')
44
+ .replace('{stageName}', '.*'));
45
+ if (match) {
46
+ return match[1];
47
+ }
48
+ return null;
49
+ };
50
+ Stage.getStageName = function (grn) {
51
+ var match = grn.match(grnFormat
52
+ .replace('{region}', '.*')
53
+ .replace('{ownerId}', '.*')
54
+ .replace('{stageName}', '(.*)'));
55
+ if (match) {
56
+ return match[1];
57
+ }
58
+ return null;
59
+ };
60
+ Stage.isValid = function (grn) {
61
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
62
+ return false;
63
+ }
64
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
65
+ return false;
66
+ }
67
+ if (this.getStageName(grn) == null || this.getStageName(grn) === '') {
68
+ return false;
69
+ }
70
+ return true;
71
+ };
72
+ Stage.createGrn = function (region, ownerId, stageName) {
73
+ return grnFormat
74
+ .replace('{region}', region !== null && region !== void 0 ? region : '')
75
+ .replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
76
+ .replace('{stageName}', stageName !== null && stageName !== void 0 ? stageName : '');
77
+ };
78
+ Stage.prototype.getStageId = function () {
79
+ return this.stageId;
80
+ };
81
+ Stage.prototype.setStageId = function (stageId) {
82
+ this.stageId = stageId;
83
+ return this;
84
+ };
85
+ Stage.prototype.withStageId = function (stageId) {
86
+ this.stageId = stageId;
87
+ return this;
88
+ };
89
+ Stage.prototype.getName = function () {
90
+ return this.name;
91
+ };
92
+ Stage.prototype.setName = function (name) {
93
+ this.name = name;
94
+ return this;
95
+ };
96
+ Stage.prototype.withName = function (name) {
97
+ this.name = name;
98
+ return this;
99
+ };
100
+ Stage.prototype.getSourceStageName = function () {
101
+ return this.sourceStageName;
102
+ };
103
+ Stage.prototype.setSourceStageName = function (sourceStageName) {
104
+ this.sourceStageName = sourceStageName;
105
+ return this;
106
+ };
107
+ Stage.prototype.withSourceStageName = function (sourceStageName) {
108
+ this.sourceStageName = sourceStageName;
109
+ return this;
110
+ };
111
+ Stage.prototype.getSortNumber = function () {
112
+ return this.sortNumber;
113
+ };
114
+ Stage.prototype.setSortNumber = function (sortNumber) {
115
+ this.sortNumber = sortNumber;
116
+ return this;
117
+ };
118
+ Stage.prototype.withSortNumber = function (sortNumber) {
119
+ this.sortNumber = sortNumber;
120
+ return this;
121
+ };
122
+ Stage.prototype.getStatus = function () {
123
+ return this.status;
124
+ };
125
+ Stage.prototype.setStatus = function (status) {
126
+ this.status = status;
127
+ return this;
128
+ };
129
+ Stage.prototype.withStatus = function (status) {
130
+ this.status = status;
131
+ return this;
132
+ };
133
+ Stage.prototype.getCreatedAt = function () {
134
+ return this.createdAt;
135
+ };
136
+ Stage.prototype.setCreatedAt = function (createdAt) {
137
+ this.createdAt = createdAt;
138
+ return this;
139
+ };
140
+ Stage.prototype.withCreatedAt = function (createdAt) {
141
+ this.createdAt = createdAt;
142
+ return this;
143
+ };
144
+ Stage.prototype.getUpdatedAt = function () {
145
+ return this.updatedAt;
146
+ };
147
+ Stage.prototype.setUpdatedAt = function (updatedAt) {
148
+ this.updatedAt = updatedAt;
149
+ return this;
150
+ };
151
+ Stage.prototype.withUpdatedAt = function (updatedAt) {
152
+ this.updatedAt = updatedAt;
153
+ return this;
154
+ };
155
+ Stage.prototype.getRevision = function () {
156
+ return this.revision;
157
+ };
158
+ Stage.prototype.setRevision = function (revision) {
159
+ this.revision = revision;
160
+ return this;
161
+ };
162
+ Stage.prototype.withRevision = function (revision) {
163
+ this.revision = revision;
164
+ return this;
165
+ };
166
+ Stage.fromDict = function (data) {
167
+ if (data == undefined || data == null) {
168
+ return null;
169
+ }
170
+ return new Stage()
171
+ .withStageId(data["stageId"])
172
+ .withName(data["name"])
173
+ .withSourceStageName(data["sourceStageName"])
174
+ .withSortNumber(data["sortNumber"])
175
+ .withStatus(data["status"])
176
+ .withCreatedAt(data["createdAt"])
177
+ .withUpdatedAt(data["updatedAt"])
178
+ .withRevision(data["revision"]);
179
+ };
180
+ Stage.prototype.toDict = function () {
181
+ return {
182
+ "stageId": this.getStageId(),
183
+ "name": this.getName(),
184
+ "sourceStageName": this.getSourceStageName(),
185
+ "sortNumber": this.getSortNumber(),
186
+ "status": this.getStatus(),
187
+ "createdAt": this.getCreatedAt(),
188
+ "updatedAt": this.getUpdatedAt(),
189
+ "revision": this.getRevision(),
190
+ };
191
+ };
192
+ return Stage;
193
+ }());
194
+ exports.default = Stage;
195
+ //# sourceMappingURL=Stage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stage.js","sourceRoot":"","sources":["Stage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAKH,IAAM,SAAS,GAAW,+CAA+C,CAAC;AAE1E;IAAA;QACY,YAAO,GAAgB,IAAI,CAAC;QAC5B,SAAI,GAAgB,IAAI,CAAC;QACzB,oBAAe,GAAg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;IACxC,CAAC;IAEM,sBAAM,GAAb;QACI,OAAO;YACH,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;YAC5B,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;YAC5C,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,YAAC;AAAD,CAAC,AAzLD,IAyLC"}
@@ -0,0 +1,207 @@
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
+ import * as Gs2Freeze from '../../freeze/model'
20
+ const grnFormat: string = "grn:gs2:{region}:{ownerId}:freeze:{stageName}";
21
+
22
+ export default class Stage implements IModel {
23
+ private stageId: string|null = null;
24
+ private name: string|null = null;
25
+ private sourceStageName: string|null = null;
26
+ private sortNumber: number|null = null;
27
+ private status: string|null = null;
28
+ private createdAt: number|null = null;
29
+ private updatedAt: number|null = null;
30
+ private revision: number|null = null;
31
+
32
+ public static getRegion(grn: string): string|null {
33
+ const match = grn.match(grnFormat
34
+ .replace('{region}', '(.*)')
35
+ .replace('{ownerId}', '.*')
36
+ .replace('{stageName}', '.*')
37
+ );
38
+ if (match) {
39
+ return match[1];
40
+ }
41
+ return null;
42
+ }
43
+
44
+ public static getOwnerId(grn: string): string|null {
45
+ const match = grn.match(grnFormat
46
+ .replace('{region}', '.*')
47
+ .replace('{ownerId}', '(.*)')
48
+ .replace('{stageName}', '.*')
49
+ );
50
+ if (match) {
51
+ return match[1];
52
+ }
53
+ return null;
54
+ }
55
+
56
+ public static getStageName(grn: string): string|null {
57
+ const match = grn.match(grnFormat
58
+ .replace('{region}', '.*')
59
+ .replace('{ownerId}', '.*')
60
+ .replace('{stageName}', '(.*)')
61
+ );
62
+ if (match) {
63
+ return match[1];
64
+ }
65
+ return null;
66
+ }
67
+
68
+ public static isValid(grn: string): boolean {
69
+ if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
70
+ return false;
71
+ }
72
+ if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
73
+ return false;
74
+ }
75
+ if (this.getStageName(grn) == null || this.getStageName(grn) === '') {
76
+ return false;
77
+ }
78
+ return true;
79
+ }
80
+
81
+ public static createGrn(
82
+ region: string|null,
83
+ ownerId: string|null,
84
+ stageName: string|null,
85
+ ): string|null {
86
+ return grnFormat
87
+ .replace('{region}', region ?? '')
88
+ .replace('{ownerId}', ownerId ?? '')
89
+ .replace('{stageName}', stageName ?? '');
90
+ }
91
+ public getStageId(): string|null {
92
+ return this.stageId;
93
+ }
94
+ public setStageId(stageId: string|null) {
95
+ this.stageId = stageId;
96
+ return this;
97
+ }
98
+ public withStageId(stageId: string|null): this {
99
+ this.stageId = stageId;
100
+ return this;
101
+ }
102
+ public getName(): string|null {
103
+ return this.name;
104
+ }
105
+ public setName(name: string|null) {
106
+ this.name = name;
107
+ return this;
108
+ }
109
+ public withName(name: string|null): this {
110
+ this.name = name;
111
+ return this;
112
+ }
113
+ public getSourceStageName(): string|null {
114
+ return this.sourceStageName;
115
+ }
116
+ public setSourceStageName(sourceStageName: string|null) {
117
+ this.sourceStageName = sourceStageName;
118
+ return this;
119
+ }
120
+ public withSourceStageName(sourceStageName: string|null): this {
121
+ this.sourceStageName = sourceStageName;
122
+ return this;
123
+ }
124
+ public getSortNumber(): number|null {
125
+ return this.sortNumber;
126
+ }
127
+ public setSortNumber(sortNumber: number|null) {
128
+ this.sortNumber = sortNumber;
129
+ return this;
130
+ }
131
+ public withSortNumber(sortNumber: number|null): this {
132
+ this.sortNumber = sortNumber;
133
+ return this;
134
+ }
135
+ public getStatus(): string|null {
136
+ return this.status;
137
+ }
138
+ public setStatus(status: string|null) {
139
+ this.status = status;
140
+ return this;
141
+ }
142
+ public withStatus(status: string|null): this {
143
+ this.status = status;
144
+ return this;
145
+ }
146
+ public getCreatedAt(): number|null {
147
+ return this.createdAt;
148
+ }
149
+ public setCreatedAt(createdAt: number|null) {
150
+ this.createdAt = createdAt;
151
+ return this;
152
+ }
153
+ public withCreatedAt(createdAt: number|null): this {
154
+ this.createdAt = createdAt;
155
+ return this;
156
+ }
157
+ public getUpdatedAt(): number|null {
158
+ return this.updatedAt;
159
+ }
160
+ public setUpdatedAt(updatedAt: number|null) {
161
+ this.updatedAt = updatedAt;
162
+ return this;
163
+ }
164
+ public withUpdatedAt(updatedAt: number|null): this {
165
+ this.updatedAt = updatedAt;
166
+ return this;
167
+ }
168
+ public getRevision(): number|null {
169
+ return this.revision;
170
+ }
171
+ public setRevision(revision: number|null) {
172
+ this.revision = revision;
173
+ return this;
174
+ }
175
+ public withRevision(revision: number|null): this {
176
+ this.revision = revision;
177
+ return this;
178
+ }
179
+
180
+ public static fromDict(data: {[key: string]: any}): Stage|null {
181
+ if (data == undefined || data == null) {
182
+ return null;
183
+ }
184
+ return new Stage()
185
+ .withStageId(data["stageId"])
186
+ .withName(data["name"])
187
+ .withSourceStageName(data["sourceStageName"])
188
+ .withSortNumber(data["sortNumber"])
189
+ .withStatus(data["status"])
190
+ .withCreatedAt(data["createdAt"])
191
+ .withUpdatedAt(data["updatedAt"])
192
+ .withRevision(data["revision"]);
193
+ }
194
+
195
+ public toDict(): {[key: string]: any} {
196
+ return {
197
+ "stageId": this.getStageId(),
198
+ "name": this.getName(),
199
+ "sourceStageName": this.getSourceStageName(),
200
+ "sortNumber": this.getSortNumber(),
201
+ "status": this.getStatus(),
202
+ "createdAt": this.getCreatedAt(),
203
+ "updatedAt": this.getUpdatedAt(),
204
+ "revision": this.getRevision(),
205
+ };
206
+ }
207
+ }
@@ -0,0 +1,4 @@
1
+ import Stage from "./Stage";
2
+ import Output from "./Output";
3
+ import Microservice from "./Microservice";
4
+ export { Stage, Output, Microservice, };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Microservice = exports.Output = exports.Stage = void 0;
4
+ var tslib_1 = require("tslib");
5
+ /*
6
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
7
+ Reserved.
8
+
9
+ Licensed under the Apache License, Version 2.0 (the "License").
10
+ You may not use this file except in compliance with the License.
11
+ A copy of the License is located at
12
+
13
+ http://www.apache.org/licenses/LICENSE-2.0
14
+
15
+ or in the "license" file accompanying this file. This file is distributed
16
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17
+ express or implied. See the License for the specific language governing
18
+ permissions and limitations under the License.
19
+ */
20
+ var Stage_1 = tslib_1.__importDefault(require("./Stage"));
21
+ exports.Stage = Stage_1.default;
22
+ var Output_1 = tslib_1.__importDefault(require("./Output"));
23
+ exports.Output = Output_1.default;
24
+ var Microservice_1 = tslib_1.__importDefault(require("./Microservice"));
25
+ exports.Microservice = Microservice_1.default;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0DAA2B;AAKvB,gBALG,eAAK,CAKH;AAJT,4DAA6B;AAKzB,iBALG,gBAAM,CAKH;AAJV,wEAAyC;AAKrC,uBALG,sBAAY,CAKH"}
@@ -0,0 +1,24 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+ import Stage from "./Stage"
17
+ import Output from "./Output"
18
+ import Microservice from "./Microservice"
19
+
20
+ export {
21
+ Stage,
22
+ Output,
23
+ Microservice,
24
+ };
@@ -0,0 +1,29 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ export default class DescribeOutputsRequest implements IRequest {
3
+ private requestId;
4
+ private contextStack;
5
+ private stageName;
6
+ private pageToken;
7
+ private limit;
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
+ getStageName(): string | null;
15
+ setStageName(stageName: string | null): this;
16
+ withStageName(stageName: string | null): this;
17
+ getPageToken(): string | null;
18
+ setPageToken(pageToken: string | null): this;
19
+ withPageToken(pageToken: string | null): this;
20
+ getLimit(): number | null;
21
+ setLimit(limit: number | null): this;
22
+ withLimit(limit: number | null): this;
23
+ static fromDict(data: {
24
+ [key: string]: any;
25
+ }): DescribeOutputsRequest;
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 DescribeOutputsRequest = /** @class */ (function () {
19
+ function DescribeOutputsRequest() {
20
+ this.requestId = null;
21
+ this.contextStack = null;
22
+ this.stageName = null;
23
+ this.pageToken = null;
24
+ this.limit = null;
25
+ }
26
+ DescribeOutputsRequest.prototype.getRequestId = function () {
27
+ return this.requestId;
28
+ };
29
+ DescribeOutputsRequest.prototype.setRequestId = function (requestId) {
30
+ this.requestId = requestId;
31
+ return this;
32
+ };
33
+ DescribeOutputsRequest.prototype.withRequestId = function (requestId) {
34
+ this.requestId = requestId;
35
+ return this;
36
+ };
37
+ DescribeOutputsRequest.prototype.getContextStack = function () {
38
+ return this.contextStack;
39
+ };
40
+ DescribeOutputsRequest.prototype.setContextStack = function (contextStack) {
41
+ this.contextStack = contextStack;
42
+ return this;
43
+ };
44
+ DescribeOutputsRequest.prototype.withContextStack = function (contextStack) {
45
+ this.contextStack = contextStack;
46
+ return this;
47
+ };
48
+ DescribeOutputsRequest.prototype.getStageName = function () {
49
+ return this.stageName;
50
+ };
51
+ DescribeOutputsRequest.prototype.setStageName = function (stageName) {
52
+ this.stageName = stageName;
53
+ return this;
54
+ };
55
+ DescribeOutputsRequest.prototype.withStageName = function (stageName) {
56
+ this.stageName = stageName;
57
+ return this;
58
+ };
59
+ DescribeOutputsRequest.prototype.getPageToken = function () {
60
+ return this.pageToken;
61
+ };
62
+ DescribeOutputsRequest.prototype.setPageToken = function (pageToken) {
63
+ this.pageToken = pageToken;
64
+ return this;
65
+ };
66
+ DescribeOutputsRequest.prototype.withPageToken = function (pageToken) {
67
+ this.pageToken = pageToken;
68
+ return this;
69
+ };
70
+ DescribeOutputsRequest.prototype.getLimit = function () {
71
+ return this.limit;
72
+ };
73
+ DescribeOutputsRequest.prototype.setLimit = function (limit) {
74
+ this.limit = limit;
75
+ return this;
76
+ };
77
+ DescribeOutputsRequest.prototype.withLimit = function (limit) {
78
+ this.limit = limit;
79
+ return this;
80
+ };
81
+ DescribeOutputsRequest.fromDict = function (data) {
82
+ return new DescribeOutputsRequest()
83
+ .withStageName(data["stageName"])
84
+ .withPageToken(data["pageToken"])
85
+ .withLimit(data["limit"]);
86
+ };
87
+ DescribeOutputsRequest.prototype.toDict = function () {
88
+ return {
89
+ "stageName": this.getStageName(),
90
+ "pageToken": this.getPageToken(),
91
+ "limit": this.getLimit(),
92
+ };
93
+ };
94
+ return DescribeOutputsRequest;
95
+ }());
96
+ exports.default = DescribeOutputsRequest;
97
+ //# sourceMappingURL=DescribeOutputsRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescribeOutputsRequest.js","sourceRoot":"","sources":["DescribeOutputsRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,cAAS,GAAgB,IAAI,CAAC;QAC9B,cAAS,GAAgB,IAAI,CAAC;QAC9B,UAAK,GAAgB,IAAI,CAAC;IA6EtC,CAAC;IA3EU,6CAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,6CAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8CAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gDAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,gDAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YA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