gs2 1.3.171 → 1.3.173

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 (62) hide show
  1. package/deploy/model/ChangeSet.d.ts +21 -0
  2. package/deploy/model/ChangeSet.js +76 -0
  3. package/deploy/model/ChangeSet.js.map +1 -0
  4. package/deploy/model/ChangeSet.ts +74 -0
  5. package/deploy/model/index.d.ts +3 -2
  6. package/deploy/model/index.js +5 -3
  7. package/deploy/model/index.js.map +1 -1
  8. package/deploy/model/index.ts +4 -2
  9. package/deploy/request/ChangeSetRequest.d.ts +25 -0
  10. package/deploy/request/ChangeSetRequest.js +83 -0
  11. package/deploy/request/ChangeSetRequest.js.map +1 -0
  12. package/deploy/request/ChangeSetRequest.ts +90 -0
  13. package/deploy/request/index.d.ts +2 -1
  14. package/deploy/request/index.js +3 -1
  15. package/deploy/request/index.js.map +1 -1
  16. package/deploy/request/index.ts +2 -0
  17. package/deploy/rest.d.ts +1 -0
  18. package/deploy/rest.js +27 -0
  19. package/deploy/rest.js.map +1 -1
  20. package/deploy/rest.ts +31 -0
  21. package/deploy/result/ChangeSetResult.d.ts +14 -0
  22. package/deploy/result/ChangeSetResult.js +53 -0
  23. package/deploy/result/ChangeSetResult.js.map +1 -0
  24. package/deploy/result/ChangeSetResult.ts +56 -0
  25. package/deploy/result/index.d.ts +2 -1
  26. package/deploy/result/index.js +3 -1
  27. package/deploy/result/index.js.map +1 -1
  28. package/deploy/result/index.ts +2 -0
  29. package/package.json +1 -1
  30. package/version/model/ScheduleVersion.d.ts +26 -0
  31. package/version/model/ScheduleVersion.js +93 -0
  32. package/version/model/ScheduleVersion.js.map +1 -0
  33. package/version/model/ScheduleVersion.ts +89 -0
  34. package/version/model/Status.js.map +1 -1
  35. package/version/model/Status.ts +1 -0
  36. package/version/model/TargetVersion.d.ts +4 -4
  37. package/version/model/TargetVersion.js +15 -15
  38. package/version/model/TargetVersion.js.map +1 -1
  39. package/version/model/TargetVersion.ts +15 -15
  40. package/version/model/VersionModel.d.ts +17 -8
  41. package/version/model/VersionModel.js +59 -24
  42. package/version/model/VersionModel.js.map +1 -1
  43. package/version/model/VersionModel.ts +60 -23
  44. package/version/model/VersionModelMaster.d.ts +17 -8
  45. package/version/model/VersionModelMaster.js +59 -24
  46. package/version/model/VersionModelMaster.js.map +1 -1
  47. package/version/model/VersionModelMaster.ts +60 -23
  48. package/version/model/index.d.ts +3 -2
  49. package/version/model/index.js +5 -3
  50. package/version/model/index.js.map +1 -1
  51. package/version/model/index.ts +4 -2
  52. package/version/request/CreateVersionModelMasterRequest.d.ts +16 -8
  53. package/version/request/CreateVersionModelMasterRequest.js +58 -24
  54. package/version/request/CreateVersionModelMasterRequest.js.map +1 -1
  55. package/version/request/CreateVersionModelMasterRequest.ts +59 -23
  56. package/version/request/UpdateVersionModelMasterRequest.d.ts +16 -8
  57. package/version/request/UpdateVersionModelMasterRequest.js +58 -24
  58. package/version/request/UpdateVersionModelMasterRequest.js.map +1 -1
  59. package/version/request/UpdateVersionModelMasterRequest.ts +59 -23
  60. package/version/rest.js +18 -14
  61. package/version/rest.js.map +1 -1
  62. package/version/rest.ts +8 -4
package/deploy/rest.ts CHANGED
@@ -232,6 +232,37 @@ export default class Gs2DeployRestClient extends AbstractGs2RestClient {
232
232
  });
233
233
  }
234
234
 
235
+ public changeSet(request: Request.ChangeSetRequest): Promise<Result.ChangeSetResult> {
236
+ const url = (Gs2Constant.ENDPOINT_HOST + '/stack/{stackName}')
237
+ .replace('{service}', 'deploy')
238
+ .replace('{region}', this.session.region)
239
+ .replace('{stackName}', String(request.getStackName() ?? 'null') === "" ? "null" : String(request.getStackName() ?? 'null'));
240
+
241
+ const headers = this.createAuthorizedHeaders();
242
+ if (request.getRequestId()) {
243
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
244
+ }
245
+ const body: {[key: string]: any} = {
246
+ 'contextStack': request.getContextStack() ?? null,
247
+ 'template': request.getTemplate() ?? null,
248
+ };
249
+ return axios.post(
250
+ url,
251
+ body,
252
+ {
253
+ headers,
254
+ },
255
+ ).then((response: any) => {
256
+ return Result.ChangeSetResult.fromDict(response.data);
257
+ }).catch((error: any) => {
258
+ if (error.response) {
259
+ throw JSON.parse(error.response.data.message);
260
+ } else {
261
+ throw [];
262
+ }
263
+ });
264
+ }
265
+
235
266
  public updateStackFromGitHub(request: Request.UpdateStackFromGitHubRequest): Promise<Result.UpdateStackFromGitHubResult> {
236
267
  const url = (Gs2Constant.ENDPOINT_HOST + '/stack/{stackName}/from_git_hub')
237
268
  .replace('{service}', 'deploy')
@@ -0,0 +1,14 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Deploy from '../model';
3
+ export default class ChangeSetResult implements IResult {
4
+ private items;
5
+ getItems(): Gs2Deploy.ChangeSet[] | null;
6
+ setItems(items: Gs2Deploy.ChangeSet[] | null): this;
7
+ withItems(items: Gs2Deploy.ChangeSet[] | null): this;
8
+ static fromDict(data: {
9
+ [key: string]: any;
10
+ }): ChangeSetResult;
11
+ toDict(): {
12
+ [key: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,53 @@
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 tslib_1 = require("tslib");
19
+ var Gs2Deploy = tslib_1.__importStar(require("../model"));
20
+ var ChangeSetResult = /** @class */ (function () {
21
+ function ChangeSetResult() {
22
+ this.items = null;
23
+ }
24
+ ChangeSetResult.prototype.getItems = function () {
25
+ return this.items;
26
+ };
27
+ ChangeSetResult.prototype.setItems = function (items) {
28
+ this.items = items;
29
+ return this;
30
+ };
31
+ ChangeSetResult.prototype.withItems = function (items) {
32
+ this.items = items;
33
+ return this;
34
+ };
35
+ ChangeSetResult.fromDict = function (data) {
36
+ return new ChangeSetResult()
37
+ .withItems(data.items ?
38
+ data.items.map(function (item) {
39
+ return Gs2Deploy.ChangeSet.fromDict(item);
40
+ }) : []);
41
+ };
42
+ ChangeSetResult.prototype.toDict = function () {
43
+ return {
44
+ "items": this.getItems() ?
45
+ this.getItems().map(function (item) {
46
+ return item.toDict();
47
+ }) : [],
48
+ };
49
+ };
50
+ return ChangeSetResult;
51
+ }());
52
+ exports.default = ChangeSetResult;
53
+ //# sourceMappingURL=ChangeSetResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangeSetResult.js","sourceRoot":"","sources":["ChangeSetResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,0DAAqC;AAErC;IAAA;QACY,UAAK,GAA+B,IAAI,CAAC;IAkCrD,CAAC;IAhCU,kCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,kCAAQ,GAAf,UAAgB,KAAiC;QAC7C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,mCAAS,GAAhB,UAAiB,KAAiC;QAC9C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,wBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,eAAe,EAAE;aACvB,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9C,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,gCAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAyB;oBAC3C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,sBAAC;AAAD,CAAC,AAnCD,IAmCC"}
@@ -0,0 +1,56 @@
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 IResult from '../../core/interface/IResult';
18
+
19
+ import * as Gs2Deploy from '../model'
20
+
21
+ export default class ChangeSetResult implements IResult {
22
+ private items: Gs2Deploy.ChangeSet[]|null = null;
23
+
24
+ public getItems(): Gs2Deploy.ChangeSet[]|null {
25
+ return this.items;
26
+ }
27
+
28
+ public setItems(items: Gs2Deploy.ChangeSet[]|null) {
29
+ this.items = items;
30
+ return this;
31
+ }
32
+
33
+ public withItems(items: Gs2Deploy.ChangeSet[]|null): this {
34
+ this.items = items;
35
+ return this;
36
+ }
37
+
38
+ public static fromDict(data: {[key: string]: any}): ChangeSetResult {
39
+ return new ChangeSetResult()
40
+ .withItems(data.items ?
41
+ data.items.map((item: {[key: string]: any}) => {
42
+ return Gs2Deploy.ChangeSet.fromDict(item);
43
+ }
44
+ ) : []);
45
+ }
46
+
47
+ public toDict(): {[key: string]: any} {
48
+ return {
49
+ "items": this.getItems() ?
50
+ this.getItems()!.map((item: Gs2Deploy.ChangeSet) => {
51
+ return item.toDict();
52
+ }
53
+ ) : [],
54
+ };
55
+ }
56
+ }
@@ -5,6 +5,7 @@ import ValidateResult from "./ValidateResult";
5
5
  import GetStackStatusResult from "./GetStackStatusResult";
6
6
  import GetStackResult from "./GetStackResult";
7
7
  import UpdateStackResult from "./UpdateStackResult";
8
+ import ChangeSetResult from "./ChangeSetResult";
8
9
  import UpdateStackFromGitHubResult from "./UpdateStackFromGitHubResult";
9
10
  import DeleteStackResult from "./DeleteStackResult";
10
11
  import ForceDeleteStackResult from "./ForceDeleteStackResult";
@@ -16,4 +17,4 @@ import DescribeEventsResult from "./DescribeEventsResult";
16
17
  import GetEventResult from "./GetEventResult";
17
18
  import DescribeOutputsResult from "./DescribeOutputsResult";
18
19
  import GetOutputResult from "./GetOutputResult";
19
- export { DescribeStacksResult, CreateStackResult, CreateStackFromGitHubResult, ValidateResult, GetStackStatusResult, GetStackResult, UpdateStackResult, UpdateStackFromGitHubResult, DeleteStackResult, ForceDeleteStackResult, DeleteStackResourcesResult, DeleteStackEntityResult, DescribeResourcesResult, GetResourceResult, DescribeEventsResult, GetEventResult, DescribeOutputsResult, GetOutputResult, };
20
+ export { DescribeStacksResult, CreateStackResult, CreateStackFromGitHubResult, ValidateResult, GetStackStatusResult, GetStackResult, UpdateStackResult, ChangeSetResult, UpdateStackFromGitHubResult, DeleteStackResult, ForceDeleteStackResult, DeleteStackResourcesResult, DeleteStackEntityResult, DescribeResourcesResult, GetResourceResult, DescribeEventsResult, GetEventResult, DescribeOutputsResult, GetOutputResult, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetOutputResult = exports.DescribeOutputsResult = exports.GetEventResult = exports.DescribeEventsResult = exports.GetResourceResult = exports.DescribeResourcesResult = exports.DeleteStackEntityResult = exports.DeleteStackResourcesResult = exports.ForceDeleteStackResult = exports.DeleteStackResult = exports.UpdateStackFromGitHubResult = exports.UpdateStackResult = exports.GetStackResult = exports.GetStackStatusResult = exports.ValidateResult = exports.CreateStackFromGitHubResult = exports.CreateStackResult = exports.DescribeStacksResult = void 0;
3
+ exports.GetOutputResult = exports.DescribeOutputsResult = exports.GetEventResult = exports.DescribeEventsResult = exports.GetResourceResult = exports.DescribeResourcesResult = exports.DeleteStackEntityResult = exports.DeleteStackResourcesResult = exports.ForceDeleteStackResult = exports.DeleteStackResult = exports.UpdateStackFromGitHubResult = exports.ChangeSetResult = exports.UpdateStackResult = exports.GetStackResult = exports.GetStackStatusResult = exports.ValidateResult = exports.CreateStackFromGitHubResult = exports.CreateStackResult = exports.DescribeStacksResult = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  /*
6
6
  Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
@@ -31,6 +31,8 @@ var GetStackResult_1 = tslib_1.__importDefault(require("./GetStackResult"));
31
31
  exports.GetStackResult = GetStackResult_1.default;
32
32
  var UpdateStackResult_1 = tslib_1.__importDefault(require("./UpdateStackResult"));
33
33
  exports.UpdateStackResult = UpdateStackResult_1.default;
34
+ var ChangeSetResult_1 = tslib_1.__importDefault(require("./ChangeSetResult"));
35
+ exports.ChangeSetResult = ChangeSetResult_1.default;
34
36
  var UpdateStackFromGitHubResult_1 = tslib_1.__importDefault(require("./UpdateStackFromGitHubResult"));
35
37
  exports.UpdateStackFromGitHubResult = UpdateStackFromGitHubResult_1.default;
36
38
  var DeleteStackResult_1 = tslib_1.__importDefault(require("./DeleteStackResult"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wFAAyD;AAoBrD,+BApBG,8BAAoB,CAoBH;AAnBxB,kFAAmD;AAoB/C,4BApBG,2BAAiB,CAoBH;AAnBrB,sGAAuE;AAoBnE,sCApBG,qCAA2B,CAoBH;AAnB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mD;AAqB/C,4BArBG,2BAAiB,CAqBH;AApBrB,4FAA6D;AAqBzD,iCArBG,gCAAsB,CAqBH;AApB1B,oGAAqE;AAqBjE,qCArBG,oCAA0B,CAqBH;AApB9B,8FAA+D;AAqB3D,kCArBG,iCAAuB,CAqBH;AApB3B,8FAA+D;AAqB3D,kCArBG,iCAAuB,CAqBH;AApB3B,kFAAmD;AAqB/C,4BArBG,2BAAiB,CAqBH;AApBrB,wFAAyD;AAqBrD,+BArBG,8BAAoB,CAqBH;AApBxB,4EAA6C;AAqBzC,yBArBG,wBAAc,CAqBH;AApBlB,0FAA2D;AAqBvD,gCArBG,+BAAqB,CAqBH;AApBzB,8EAA+C;AAqB3C,0BArBG,yBAAe,CAqBH"}
@@ -20,6 +20,7 @@ import ValidateResult from "./ValidateResult"
20
20
  import GetStackStatusResult from "./GetStackStatusResult"
21
21
  import GetStackResult from "./GetStackResult"
22
22
  import UpdateStackResult from "./UpdateStackResult"
23
+ import ChangeSetResult from "./ChangeSetResult"
23
24
  import UpdateStackFromGitHubResult from "./UpdateStackFromGitHubResult"
24
25
  import DeleteStackResult from "./DeleteStackResult"
25
26
  import ForceDeleteStackResult from "./ForceDeleteStackResult"
@@ -40,6 +41,7 @@ export {
40
41
  GetStackStatusResult,
41
42
  GetStackResult,
42
43
  UpdateStackResult,
44
+ ChangeSetResult,
43
45
  UpdateStackFromGitHubResult,
44
46
  DeleteStackResult,
45
47
  ForceDeleteStackResult,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2",
3
- "version": "1.3.171",
3
+ "version": "1.3.173",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -0,0 +1,26 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ import Version from './Version';
3
+ export default class ScheduleVersion implements IModel {
4
+ private currentVersion;
5
+ private warningVersion;
6
+ private errorVersion;
7
+ private scheduleEventId;
8
+ getCurrentVersion(): Version | null;
9
+ setCurrentVersion(currentVersion: Version | null): this;
10
+ withCurrentVersion(currentVersion: Version | null): this;
11
+ getWarningVersion(): Version | null;
12
+ setWarningVersion(warningVersion: Version | null): this;
13
+ withWarningVersion(warningVersion: Version | null): this;
14
+ getErrorVersion(): Version | null;
15
+ setErrorVersion(errorVersion: Version | null): this;
16
+ withErrorVersion(errorVersion: Version | null): this;
17
+ getScheduleEventId(): string | null;
18
+ setScheduleEventId(scheduleEventId: string | null): this;
19
+ withScheduleEventId(scheduleEventId: string | null): this;
20
+ static fromDict(data: {
21
+ [key: string]: any;
22
+ }): ScheduleVersion | null;
23
+ toDict(): {
24
+ [key: string]: any;
25
+ };
26
+ }
@@ -0,0 +1,93 @@
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 tslib_1 = require("tslib");
19
+ var Version_1 = tslib_1.__importDefault(require("./Version"));
20
+ var ScheduleVersion = /** @class */ (function () {
21
+ function ScheduleVersion() {
22
+ this.currentVersion = null;
23
+ this.warningVersion = null;
24
+ this.errorVersion = null;
25
+ this.scheduleEventId = null;
26
+ }
27
+ ScheduleVersion.prototype.getCurrentVersion = function () {
28
+ return this.currentVersion;
29
+ };
30
+ ScheduleVersion.prototype.setCurrentVersion = function (currentVersion) {
31
+ this.currentVersion = currentVersion;
32
+ return this;
33
+ };
34
+ ScheduleVersion.prototype.withCurrentVersion = function (currentVersion) {
35
+ this.currentVersion = currentVersion;
36
+ return this;
37
+ };
38
+ ScheduleVersion.prototype.getWarningVersion = function () {
39
+ return this.warningVersion;
40
+ };
41
+ ScheduleVersion.prototype.setWarningVersion = function (warningVersion) {
42
+ this.warningVersion = warningVersion;
43
+ return this;
44
+ };
45
+ ScheduleVersion.prototype.withWarningVersion = function (warningVersion) {
46
+ this.warningVersion = warningVersion;
47
+ return this;
48
+ };
49
+ ScheduleVersion.prototype.getErrorVersion = function () {
50
+ return this.errorVersion;
51
+ };
52
+ ScheduleVersion.prototype.setErrorVersion = function (errorVersion) {
53
+ this.errorVersion = errorVersion;
54
+ return this;
55
+ };
56
+ ScheduleVersion.prototype.withErrorVersion = function (errorVersion) {
57
+ this.errorVersion = errorVersion;
58
+ return this;
59
+ };
60
+ ScheduleVersion.prototype.getScheduleEventId = function () {
61
+ return this.scheduleEventId;
62
+ };
63
+ ScheduleVersion.prototype.setScheduleEventId = function (scheduleEventId) {
64
+ this.scheduleEventId = scheduleEventId;
65
+ return this;
66
+ };
67
+ ScheduleVersion.prototype.withScheduleEventId = function (scheduleEventId) {
68
+ this.scheduleEventId = scheduleEventId;
69
+ return this;
70
+ };
71
+ ScheduleVersion.fromDict = function (data) {
72
+ if (data == undefined || data == null) {
73
+ return null;
74
+ }
75
+ return new ScheduleVersion()
76
+ .withCurrentVersion(Version_1.default.fromDict(data["currentVersion"]))
77
+ .withWarningVersion(Version_1.default.fromDict(data["warningVersion"]))
78
+ .withErrorVersion(Version_1.default.fromDict(data["errorVersion"]))
79
+ .withScheduleEventId(data["scheduleEventId"]);
80
+ };
81
+ ScheduleVersion.prototype.toDict = function () {
82
+ var _a, _b, _c;
83
+ return {
84
+ "currentVersion": (_a = this.getCurrentVersion()) === null || _a === void 0 ? void 0 : _a.toDict(),
85
+ "warningVersion": (_b = this.getWarningVersion()) === null || _b === void 0 ? void 0 : _b.toDict(),
86
+ "errorVersion": (_c = this.getErrorVersion()) === null || _c === void 0 ? void 0 : _c.toDict(),
87
+ "scheduleEventId": this.getScheduleEventId(),
88
+ };
89
+ };
90
+ return ScheduleVersion;
91
+ }());
92
+ exports.default = ScheduleVersion;
93
+ //# sourceMappingURL=ScheduleVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScheduleVersion.js","sourceRoot":"","sources":["ScheduleVersion.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,8DAAgC;AAEhC;IAAA;QACY,mBAAc,GAAiB,IAAI,CAAC;QACpC,mBAAc,GAAiB,IAAI,CAAC;QACpC,iBAAY,GAAiB,IAAI,CAAC;QAClC,oBAAe,GAAgB,IAAI,CAAC;IAiEhD,CAAC;IAhEU,2CAAiB,GAAxB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IACM,2CAAiB,GAAxB,UAAyB,cAA4B;QACjD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,4CAAkB,GAAzB,UAA0B,cAA4B;QAClD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,2CAAiB,GAAxB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IACM,2CAAiB,GAAxB,UAAyB,cAA4B;QACjD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,4CAAkB,GAAzB,UAA0B,cAA4B;QAClD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IACM,yCAAe,GAAtB,UAAuB,YAA0B;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,0CAAgB,GAAvB,UAAwB,YAA0B;QAC9C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,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
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
+ import Version from './Version';
19
+
20
+ export default class ScheduleVersion implements IModel {
21
+ private currentVersion: Version|null = null;
22
+ private warningVersion: Version|null = null;
23
+ private errorVersion: Version|null = null;
24
+ private scheduleEventId: string|null = null;
25
+ public getCurrentVersion(): Version|null {
26
+ return this.currentVersion;
27
+ }
28
+ public setCurrentVersion(currentVersion: Version|null) {
29
+ this.currentVersion = currentVersion;
30
+ return this;
31
+ }
32
+ public withCurrentVersion(currentVersion: Version|null): this {
33
+ this.currentVersion = currentVersion;
34
+ return this;
35
+ }
36
+ public getWarningVersion(): Version|null {
37
+ return this.warningVersion;
38
+ }
39
+ public setWarningVersion(warningVersion: Version|null) {
40
+ this.warningVersion = warningVersion;
41
+ return this;
42
+ }
43
+ public withWarningVersion(warningVersion: Version|null): this {
44
+ this.warningVersion = warningVersion;
45
+ return this;
46
+ }
47
+ public getErrorVersion(): Version|null {
48
+ return this.errorVersion;
49
+ }
50
+ public setErrorVersion(errorVersion: Version|null) {
51
+ this.errorVersion = errorVersion;
52
+ return this;
53
+ }
54
+ public withErrorVersion(errorVersion: Version|null): this {
55
+ this.errorVersion = errorVersion;
56
+ return this;
57
+ }
58
+ public getScheduleEventId(): string|null {
59
+ return this.scheduleEventId;
60
+ }
61
+ public setScheduleEventId(scheduleEventId: string|null) {
62
+ this.scheduleEventId = scheduleEventId;
63
+ return this;
64
+ }
65
+ public withScheduleEventId(scheduleEventId: string|null): this {
66
+ this.scheduleEventId = scheduleEventId;
67
+ return this;
68
+ }
69
+
70
+ public static fromDict(data: {[key: string]: any}): ScheduleVersion|null {
71
+ if (data == undefined || data == null) {
72
+ return null;
73
+ }
74
+ return new ScheduleVersion()
75
+ .withCurrentVersion(Version.fromDict(data["currentVersion"]))
76
+ .withWarningVersion(Version.fromDict(data["warningVersion"]))
77
+ .withErrorVersion(Version.fromDict(data["errorVersion"]))
78
+ .withScheduleEventId(data["scheduleEventId"]);
79
+ }
80
+
81
+ public toDict(): {[key: string]: any} {
82
+ return {
83
+ "currentVersion": this.getCurrentVersion()?.toDict(),
84
+ "warningVersion": this.getWarningVersion()?.toDict(),
85
+ "errorVersion": this.getErrorVersion()?.toDict(),
86
+ "scheduleEventId": this.getScheduleEventId(),
87
+ };
88
+ }
89
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"Status.js","sourceRoot":"","sources":["Status.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,8DAAgC;AAChC,wEAA0C;AAE1C;IAAA;QACY,iBAAY,GAAsB,IAAI,CAAC;QACvC,mBAAc,GAAiB,IAAI,CAAC;IAuChD,CAAC;IAtCU,gCAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IACM,gCAAe,GAAtB,UAAuB,YAA+B;QAClD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,iCAAgB,GAAvB,UAAwB,YAA+B;QACnD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAiB,GAAxB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IACM,kCAAiB,GAAxB,UAAyB,cAA4B;QACjD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mCAAkB,GAAzB,UAA0B,cAA4B;QAClD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,OAA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GAAG,cAAc,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mCAAkB,GAAzB,UAA0B,cAA4B;QAClD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,eAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,MAAM,EAAE;aACd,gBAAgB,CAAC,sBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;aAC7D,kBAAkB,CAAC,iBAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACtE,CAAC;IAEM,uBAAM,GAAb;;QACI,OAAO;YACH,cAAc,EAAE,MAAA,IAAI,CAAC,eAAe,EAAE,0CAAE,MAAM,EAAE;YAChD,gBAAgB,EAAE,MAAA,IAAI,CAAC,iBAAiB,EAAE,0CAAE,MAAM,EAAE;SACvD,CAAC;IACN,CAAC;IACL,aAAC;AAAD,CAAC,AAzCD,IAyCC"}
@@ -16,6 +16,7 @@ permissions and limitations under the License.
16
16
 
17
17
  import IModel from '../../core/interface/IModel';
18
18
  import Version from './Version';
19
+ import ScheduleVersion from './ScheduleVersion';
19
20
  import VersionModel from './VersionModel';
20
21
 
21
22
  export default class Status implements IModel {
@@ -2,21 +2,21 @@ import IModel from '../../core/interface/IModel';
2
2
  import Version from './Version';
3
3
  export default class TargetVersion implements IModel {
4
4
  private versionName;
5
- private version;
6
5
  private body;
7
6
  private signature;
7
+ private version;
8
8
  getVersionName(): string | null;
9
9
  setVersionName(versionName: string | null): this;
10
10
  withVersionName(versionName: string | null): this;
11
- getVersion(): Version | null;
12
- setVersion(version: Version | null): this;
13
- withVersion(version: Version | null): this;
14
11
  getBody(): string | null;
15
12
  setBody(body: string | null): this;
16
13
  withBody(body: string | null): this;
17
14
  getSignature(): string | null;
18
15
  setSignature(signature: string | null): this;
19
16
  withSignature(signature: string | null): this;
17
+ getVersion(): Version | null;
18
+ setVersion(version: Version | null): this;
19
+ withVersion(version: Version | null): this;
20
20
  static fromDict(data: {
21
21
  [key: string]: any;
22
22
  }): TargetVersion | null;
@@ -20,9 +20,9 @@ var Version_1 = tslib_1.__importDefault(require("./Version"));
20
20
  var TargetVersion = /** @class */ (function () {
21
21
  function TargetVersion() {
22
22
  this.versionName = null;
23
- this.version = null;
24
23
  this.body = null;
25
24
  this.signature = null;
25
+ this.version = null;
26
26
  }
27
27
  TargetVersion.prototype.getVersionName = function () {
28
28
  return this.versionName;
@@ -35,17 +35,6 @@ var TargetVersion = /** @class */ (function () {
35
35
  this.versionName = versionName;
36
36
  return this;
37
37
  };
38
- TargetVersion.prototype.getVersion = function () {
39
- return this.version;
40
- };
41
- TargetVersion.prototype.setVersion = function (version) {
42
- this.version = version;
43
- return this;
44
- };
45
- TargetVersion.prototype.withVersion = function (version) {
46
- this.version = version;
47
- return this;
48
- };
49
38
  TargetVersion.prototype.getBody = function () {
50
39
  return this.body;
51
40
  };
@@ -68,23 +57,34 @@ var TargetVersion = /** @class */ (function () {
68
57
  this.signature = signature;
69
58
  return this;
70
59
  };
60
+ TargetVersion.prototype.getVersion = function () {
61
+ return this.version;
62
+ };
63
+ TargetVersion.prototype.setVersion = function (version) {
64
+ this.version = version;
65
+ return this;
66
+ };
67
+ TargetVersion.prototype.withVersion = function (version) {
68
+ this.version = version;
69
+ return this;
70
+ };
71
71
  TargetVersion.fromDict = function (data) {
72
72
  if (data == undefined || data == null) {
73
73
  return null;
74
74
  }
75
75
  return new TargetVersion()
76
76
  .withVersionName(data["versionName"])
77
- .withVersion(Version_1.default.fromDict(data["version"]))
78
77
  .withBody(data["body"])
79
- .withSignature(data["signature"]);
78
+ .withSignature(data["signature"])
79
+ .withVersion(Version_1.default.fromDict(data["version"]));
80
80
  };
81
81
  TargetVersion.prototype.toDict = function () {
82
82
  var _a;
83
83
  return {
84
84
  "versionName": this.getVersionName(),
85
- "version": (_a = this.getVersion()) === null || _a === void 0 ? void 0 : _a.toDict(),
86
85
  "body": this.getBody(),
87
86
  "signature": this.getSignature(),
87
+ "version": (_a = this.getVersion()) === null || _a === void 0 ? void 0 : _a.toDict(),
88
88
  };
89
89
  };
90
90
  return TargetVersion;
@@ -1 +1 @@
1
- {"version":3,"file":"TargetVersion.js","sourceRoot":"","sources":["TargetVersion.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,8DAAgC;AAEhC;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,YAAO,GAAiB,IAAI,CAAC;QAC7B,SAAI,GAAgB,IAAI,CAAC;QACzB,cAAS,GAAgB,IAAI,CAAC;IAiE1C,CAAC;IAhEU,sCAAc,GAArB;QACI,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IACM,sCAAc,GAArB,UAAsB,WAAwB;QAC1C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,uCAAe,GAAtB,UAAuB,WAAwB;QAC3C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAU,GAAjB;QACI,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACM,kCAAU,GAAjB,UAAkB,OAAqB;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mCAAW,GAAlB,UAAmB,OAAqB;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,+BAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAA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,mCAAW,GAAlB,UAAmB,OAAqB;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,aAAa,EAAE;aACrB,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAChC,WAAW,CAAC,iBAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACxD,CAAC;IAEM,8BAAM,GAAb;;QACI,OAAO;YACH,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,SAAS,EAAE,MAAA,IAAI,CAAC,UAAU,EAAE,0CAAE,MAAM,EAAE;SACzC,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AArED,IAqEC"}
@@ -19,9 +19,9 @@ import Version from './Version';
19
19
 
20
20
  export default class TargetVersion implements IModel {
21
21
  private versionName: string|null = null;
22
- private version: Version|null = null;
23
22
  private body: string|null = null;
24
23
  private signature: string|null = null;
24
+ private version: Version|null = null;
25
25
  public getVersionName(): string|null {
26
26
  return this.versionName;
27
27
  }
@@ -33,17 +33,6 @@ export default class TargetVersion implements IModel {
33
33
  this.versionName = versionName;
34
34
  return this;
35
35
  }
36
- public getVersion(): Version|null {
37
- return this.version;
38
- }
39
- public setVersion(version: Version|null) {
40
- this.version = version;
41
- return this;
42
- }
43
- public withVersion(version: Version|null): this {
44
- this.version = version;
45
- return this;
46
- }
47
36
  public getBody(): string|null {
48
37
  return this.body;
49
38
  }
@@ -66,6 +55,17 @@ export default class TargetVersion implements IModel {
66
55
  this.signature = signature;
67
56
  return this;
68
57
  }
58
+ public getVersion(): Version|null {
59
+ return this.version;
60
+ }
61
+ public setVersion(version: Version|null) {
62
+ this.version = version;
63
+ return this;
64
+ }
65
+ public withVersion(version: Version|null): this {
66
+ this.version = version;
67
+ return this;
68
+ }
69
69
 
70
70
  public static fromDict(data: {[key: string]: any}): TargetVersion|null {
71
71
  if (data == undefined || data == null) {
@@ -73,17 +73,17 @@ export default class TargetVersion implements IModel {
73
73
  }
74
74
  return new TargetVersion()
75
75
  .withVersionName(data["versionName"])
76
- .withVersion(Version.fromDict(data["version"]))
77
76
  .withBody(data["body"])
78
- .withSignature(data["signature"]);
77
+ .withSignature(data["signature"])
78
+ .withVersion(Version.fromDict(data["version"]));
79
79
  }
80
80
 
81
81
  public toDict(): {[key: string]: any} {
82
82
  return {
83
83
  "versionName": this.getVersionName(),
84
- "version": this.getVersion()?.toDict(),
85
84
  "body": this.getBody(),
86
85
  "signature": this.getSignature(),
86
+ "version": this.getVersion()?.toDict(),
87
87
  };
88
88
  }
89
89
  }