@huaweicloud/huaweicloud-sdk-codeartsbuild 3.1.46 → 3.1.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. package/huaweicloud-sdk-codeartsbuild.d.ts +3 -0
  2. package/huaweicloud-sdk-codeartsbuild.d.ts.map +1 -0
  3. package/huaweicloud-sdk-codeartsbuild.js +32 -0
  4. package/huaweicloud-sdk-codeartsbuild.js.map +1 -0
  5. package/package.json +8 -4
  6. package/v3/CodeArtsBuildClient.d.ts +271 -0
  7. package/v3/CodeArtsBuildClient.d.ts.map +1 -0
  8. package/v3/{CodeArtsBuildClient.ts → CodeArtsBuildClient.js} +152 -260
  9. package/v3/CodeArtsBuildClient.js.map +1 -0
  10. package/v3/CodeArtsBuildRegion.d.ts +16 -0
  11. package/v3/CodeArtsBuildRegion.d.ts.map +1 -0
  12. package/v3/CodeArtsBuildRegion.js +40 -0
  13. package/v3/CodeArtsBuildRegion.js.map +1 -0
  14. package/v3/model/BuildStep.d.ts +12 -0
  15. package/v3/model/BuildStep.d.ts.map +1 -0
  16. package/v3/model/BuildStep.js +27 -0
  17. package/v3/model/BuildStep.js.map +1 -0
  18. package/v3/model/DownloadKeystoreRequest.d.ts +12 -0
  19. package/v3/model/DownloadKeystoreRequest.d.ts.map +1 -0
  20. package/v3/model/DownloadKeystoreRequest.js +31 -0
  21. package/v3/model/DownloadKeystoreRequest.js.map +1 -0
  22. package/v3/model/DownloadKeystoreResponse.d.ts +5 -0
  23. package/v3/model/DownloadKeystoreResponse.d.ts.map +1 -0
  24. package/v3/model/DownloadKeystoreResponse.js +11 -0
  25. package/v3/model/DownloadKeystoreResponse.js.map +1 -0
  26. package/v3/model/HistoryRecord.d.ts +26 -0
  27. package/v3/model/HistoryRecord.d.ts.map +1 -0
  28. package/v3/model/HistoryRecord.js +63 -0
  29. package/v3/model/HistoryRecord.js.map +1 -0
  30. package/v3/model/HistoryRecord1.d.ts +42 -0
  31. package/v3/model/HistoryRecord1.d.ts.map +1 -0
  32. package/v3/model/HistoryRecord1.js +101 -0
  33. package/v3/model/HistoryRecord1.js.map +1 -0
  34. package/v3/model/Job.d.ts +66 -0
  35. package/v3/model/Job.d.ts.map +1 -0
  36. package/v3/model/Job.js +161 -0
  37. package/v3/model/Job.js.map +1 -0
  38. package/v3/model/ParameterItem.d.ts +8 -0
  39. package/v3/model/ParameterItem.d.ts.map +1 -0
  40. package/v3/model/ParameterItem.js +19 -0
  41. package/v3/model/ParameterItem.js.map +1 -0
  42. package/v3/model/RunJobRequest.d.ts +7 -0
  43. package/v3/model/RunJobRequest.d.ts.map +1 -0
  44. package/v3/model/RunJobRequest.js +13 -0
  45. package/v3/model/RunJobRequest.js.map +1 -0
  46. package/v3/model/RunJobRequestBody.d.ts +14 -0
  47. package/v3/model/RunJobRequestBody.d.ts.map +1 -0
  48. package/v3/model/RunJobRequestBody.js +28 -0
  49. package/v3/model/RunJobRequestBody.js.map +1 -0
  50. package/v3/model/RunJobResponse.d.ts +17 -0
  51. package/v3/model/RunJobResponse.d.ts.map +1 -0
  52. package/v3/model/RunJobResponse.js +41 -0
  53. package/v3/model/RunJobResponse.js.map +1 -0
  54. package/v3/model/Scm.d.ts +12 -0
  55. package/v3/model/Scm.d.ts.map +1 -0
  56. package/v3/model/Scm.js +29 -0
  57. package/v3/model/Scm.js.map +1 -0
  58. package/v3/model/ShowHistoryDetailsRequest.d.ts +12 -0
  59. package/v3/model/ShowHistoryDetailsRequest.d.ts.map +1 -0
  60. package/v3/model/ShowHistoryDetailsRequest.js +31 -0
  61. package/v3/model/ShowHistoryDetailsRequest.js.map +1 -0
  62. package/v3/model/ShowHistoryDetailsResponse.d.ts +32 -0
  63. package/v3/model/ShowHistoryDetailsResponse.d.ts.map +1 -0
  64. package/v3/model/ShowHistoryDetailsResponse.js +65 -0
  65. package/v3/model/ShowHistoryDetailsResponse.js.map +1 -0
  66. package/v3/model/ShowJobListByProjectIdRequest.d.ts +16 -0
  67. package/v3/model/ShowJobListByProjectIdRequest.d.ts.map +1 -0
  68. package/v3/model/ShowJobListByProjectIdRequest.js +42 -0
  69. package/v3/model/ShowJobListByProjectIdRequest.js.map +1 -0
  70. package/v3/model/ShowJobListByProjectIdResponse.d.ts +10 -0
  71. package/v3/model/ShowJobListByProjectIdResponse.d.ts.map +1 -0
  72. package/v3/model/ShowJobListByProjectIdResponse.js +19 -0
  73. package/v3/model/ShowJobListByProjectIdResponse.js.map +1 -0
  74. package/v3/model/ShowJobStatusRequest.d.ts +8 -0
  75. package/v3/model/ShowJobStatusRequest.d.ts.map +1 -0
  76. package/v3/model/ShowJobStatusRequest.js +20 -0
  77. package/v3/model/ShowJobStatusRequest.js.map +1 -0
  78. package/v3/model/ShowJobStatusResponse.d.ts +7 -0
  79. package/v3/model/ShowJobStatusResponse.d.ts.map +1 -0
  80. package/v3/model/ShowJobStatusResponse.js +15 -0
  81. package/v3/model/ShowJobStatusResponse.js.map +1 -0
  82. package/v3/model/ShowJobSuccessRatioRequest.d.ts +16 -0
  83. package/v3/model/ShowJobSuccessRatioRequest.d.ts.map +1 -0
  84. package/v3/model/ShowJobSuccessRatioRequest.js +42 -0
  85. package/v3/model/ShowJobSuccessRatioRequest.js.map +1 -0
  86. package/v3/model/ShowJobSuccessRatioResponse.d.ts +17 -0
  87. package/v3/model/ShowJobSuccessRatioResponse.d.ts.map +1 -0
  88. package/v3/model/ShowJobSuccessRatioResponse.js +41 -0
  89. package/v3/model/ShowJobSuccessRatioResponse.js.map +1 -0
  90. package/v3/model/ShowLastHistoryRequest.d.ts +12 -0
  91. package/v3/model/ShowLastHistoryRequest.d.ts.map +1 -0
  92. package/v3/model/ShowLastHistoryRequest.js +31 -0
  93. package/v3/model/ShowLastHistoryRequest.js.map +1 -0
  94. package/v3/model/ShowLastHistoryResponse.d.ts +35 -0
  95. package/v3/model/ShowLastHistoryResponse.d.ts.map +1 -0
  96. package/v3/model/ShowLastHistoryResponse.js +85 -0
  97. package/v3/model/ShowLastHistoryResponse.js.map +1 -0
  98. package/v3/model/ShowListHistoryRequest.d.ts +14 -0
  99. package/v3/model/ShowListHistoryRequest.d.ts.map +1 -0
  100. package/v3/model/ShowListHistoryRequest.js +35 -0
  101. package/v3/model/ShowListHistoryRequest.js.map +1 -0
  102. package/v3/model/ShowListHistoryResponse.d.ts +12 -0
  103. package/v3/model/ShowListHistoryResponse.d.ts.map +1 -0
  104. package/v3/model/ShowListHistoryResponse.js +25 -0
  105. package/v3/model/ShowListHistoryResponse.js.map +1 -0
  106. package/v3/model/ShowListPeriodHistoryRequest.d.ts +20 -0
  107. package/v3/model/ShowListPeriodHistoryRequest.d.ts.map +1 -0
  108. package/v3/model/ShowListPeriodHistoryRequest.js +52 -0
  109. package/v3/model/ShowListPeriodHistoryRequest.js.map +1 -0
  110. package/v3/model/ShowListPeriodHistoryResponse.d.ts +12 -0
  111. package/v3/model/ShowListPeriodHistoryResponse.d.ts.map +1 -0
  112. package/v3/model/ShowListPeriodHistoryResponse.js +25 -0
  113. package/v3/model/ShowListPeriodHistoryResponse.js.map +1 -0
  114. package/v3/{public-api.ts → public-api.d.ts} +1 -1
  115. package/v3/public-api.d.ts.map +1 -0
  116. package/v3/public-api.js +44 -0
  117. package/v3/public-api.js.map +1 -0
  118. package/huaweicloud-sdk-codeartsbuild.ts +0 -4
  119. package/v3/CodeArtsBuildRegion.ts +0 -44
  120. package/v3/model/BuildStep.ts +0 -27
  121. package/v3/model/DownloadKeystoreRequest.ts +0 -30
  122. package/v3/model/DownloadKeystoreResponse.ts +0 -8
  123. package/v3/model/HistoryRecord.ts +0 -66
  124. package/v3/model/HistoryRecord1.ts +0 -109
  125. package/v3/model/Job.ts +0 -175
  126. package/v3/model/ParameterItem.ts +0 -18
  127. package/v3/model/RunJobRequest.ts +0 -12
  128. package/v3/model/RunJobRequestBody.ts +0 -30
  129. package/v3/model/RunJobResponse.ts +0 -41
  130. package/v3/model/Scm.ts +0 -28
  131. package/v3/model/ShowHistoryDetailsRequest.ts +0 -30
  132. package/v3/model/ShowHistoryDetailsResponse.ts +0 -69
  133. package/v3/model/ShowJobListByProjectIdRequest.ts +0 -42
  134. package/v3/model/ShowJobListByProjectIdResponse.ts +0 -19
  135. package/v3/model/ShowJobStatusRequest.ts +0 -18
  136. package/v3/model/ShowJobStatusResponse.ts +0 -13
  137. package/v3/model/ShowJobSuccessRatioRequest.ts +0 -42
  138. package/v3/model/ShowJobSuccessRatioResponse.ts +0 -41
  139. package/v3/model/ShowLastHistoryRequest.ts +0 -30
  140. package/v3/model/ShowLastHistoryResponse.ts +0 -90
  141. package/v3/model/ShowListHistoryRequest.ts +0 -36
  142. package/v3/model/ShowListHistoryResponse.ts +0 -25
  143. package/v3/model/ShowListPeriodHistoryRequest.ts +0 -54
  144. package/v3/model/ShowListPeriodHistoryResponse.ts +0 -25
@@ -0,0 +1,12 @@
1
+ import { HistoryRecord1 } from './HistoryRecord1';
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+ export declare class ShowListPeriodHistoryResponse extends SdkResponse {
4
+ total?: number;
5
+ private 'history_records'?;
6
+ constructor();
7
+ withTotal(total: number): ShowListPeriodHistoryResponse;
8
+ withHistoryRecords(historyRecords: Array<HistoryRecord1>): ShowListPeriodHistoryResponse;
9
+ set historyRecords(historyRecords: Array<HistoryRecord1> | undefined);
10
+ get historyRecords(): Array<HistoryRecord1> | undefined;
11
+ }
12
+ //# sourceMappingURL=ShowListPeriodHistoryResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShowListPeriodHistoryResponse.d.ts","sourceRoot":"","sources":["../../../../../services/codeartsbuild/v3/model/ShowListPeriodHistoryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE5E,qBAAa,6BAA8B,SAAQ,WAAW;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,iBAAiB,CAAC,CAAwB;;IAI3C,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,6BAA6B;IAIvD,kBAAkB,CAAC,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,6BAA6B;IAI/F,IAAW,cAAc,CAAC,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,GAAI,SAAS,EAE3E;IACD,IAAW,cAAc,IAAI,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,CAE7D;CACJ"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShowListPeriodHistoryResponse = void 0;
4
+ const SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
5
+ class ShowListPeriodHistoryResponse extends SdkResponse_1.SdkResponse {
6
+ constructor() {
7
+ super();
8
+ }
9
+ withTotal(total) {
10
+ this['total'] = total;
11
+ return this;
12
+ }
13
+ withHistoryRecords(historyRecords) {
14
+ this['history_records'] = historyRecords;
15
+ return this;
16
+ }
17
+ set historyRecords(historyRecords) {
18
+ this['history_records'] = historyRecords;
19
+ }
20
+ get historyRecords() {
21
+ return this['history_records'];
22
+ }
23
+ }
24
+ exports.ShowListPeriodHistoryResponse = ShowListPeriodHistoryResponse;
25
+ //# sourceMappingURL=ShowListPeriodHistoryResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShowListPeriodHistoryResponse.js","sourceRoot":"","sources":["../../../../../services/codeartsbuild/v3/model/ShowListPeriodHistoryResponse.ts"],"names":[],"mappings":";;;AAEA,+EAA4E;AAE5E,MAAa,6BAA8B,SAAQ,yBAAW;IAG1D;QACI,KAAK,EAAE,CAAC;IACZ,CAAC;IACM,SAAS,CAAC,KAAa;QAC1B,IAAI,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;QACtB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kBAAkB,CAAC,cAAqC;QAC3D,IAAI,CAAC,iBAAiB,CAAC,GAAG,cAAc,CAAC;QACzC,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,IAAW,cAAc,CAAC,cAAkD;QACxE,IAAI,CAAC,iBAAiB,CAAC,GAAG,cAAc,CAAC;IAC7C,CAAC;IACD,IAAW,cAAc;QACrB,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACnC,CAAC;CACJ;AApBD,sEAoBC"}
@@ -1,5 +1,4 @@
1
1
  export * from './CodeArtsBuildClient';
2
-
3
2
  export * from './model/BuildStep';
4
3
  export * from './model/DownloadKeystoreRequest';
5
4
  export * from './model/DownloadKeystoreResponse';
@@ -26,3 +25,4 @@ export * from './model/ShowListHistoryResponse';
26
25
  export * from './model/ShowListPeriodHistoryRequest';
27
26
  export * from './model/ShowListPeriodHistoryResponse';
28
27
  export * from './CodeArtsBuildRegion';
28
+ //# sourceMappingURL=public-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../../services/codeartsbuild/v3/public-api.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AAEtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CodeArtsBuildClient"), exports);
18
+ __exportStar(require("./model/BuildStep"), exports);
19
+ __exportStar(require("./model/DownloadKeystoreRequest"), exports);
20
+ __exportStar(require("./model/DownloadKeystoreResponse"), exports);
21
+ __exportStar(require("./model/HistoryRecord"), exports);
22
+ __exportStar(require("./model/HistoryRecord1"), exports);
23
+ __exportStar(require("./model/Job"), exports);
24
+ __exportStar(require("./model/ParameterItem"), exports);
25
+ __exportStar(require("./model/RunJobRequest"), exports);
26
+ __exportStar(require("./model/RunJobRequestBody"), exports);
27
+ __exportStar(require("./model/RunJobResponse"), exports);
28
+ __exportStar(require("./model/Scm"), exports);
29
+ __exportStar(require("./model/ShowHistoryDetailsRequest"), exports);
30
+ __exportStar(require("./model/ShowHistoryDetailsResponse"), exports);
31
+ __exportStar(require("./model/ShowJobListByProjectIdRequest"), exports);
32
+ __exportStar(require("./model/ShowJobListByProjectIdResponse"), exports);
33
+ __exportStar(require("./model/ShowJobStatusRequest"), exports);
34
+ __exportStar(require("./model/ShowJobStatusResponse"), exports);
35
+ __exportStar(require("./model/ShowJobSuccessRatioRequest"), exports);
36
+ __exportStar(require("./model/ShowJobSuccessRatioResponse"), exports);
37
+ __exportStar(require("./model/ShowLastHistoryRequest"), exports);
38
+ __exportStar(require("./model/ShowLastHistoryResponse"), exports);
39
+ __exportStar(require("./model/ShowListHistoryRequest"), exports);
40
+ __exportStar(require("./model/ShowListHistoryResponse"), exports);
41
+ __exportStar(require("./model/ShowListPeriodHistoryRequest"), exports);
42
+ __exportStar(require("./model/ShowListPeriodHistoryResponse"), exports);
43
+ __exportStar(require("./CodeArtsBuildRegion"), exports);
44
+ //# sourceMappingURL=public-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../services/codeartsbuild/v3/public-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AAEtC,oDAAkC;AAClC,kEAAgD;AAChD,mEAAiD;AACjD,wDAAsC;AACtC,yDAAuC;AACvC,8CAA4B;AAC5B,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,8CAA4B;AAC5B,oEAAkD;AAClD,qEAAmD;AACnD,wEAAsD;AACtD,yEAAuD;AACvD,+DAA6C;AAC7C,gEAA8C;AAC9C,qEAAmD;AACnD,sEAAoD;AACpD,iEAA+C;AAC/C,kEAAgD;AAChD,iEAA+C;AAC/C,kEAAgD;AAChD,uEAAqD;AACrD,wEAAsD;AACtD,wDAAsC"}
@@ -1,4 +0,0 @@
1
- export * from './v3/public-api';
2
- export * as v3 from './v3/public-api';
3
- export * from './v3/public-api';
4
- export * as v3 from './v3/public-api';
@@ -1,44 +0,0 @@
1
- import { Region } from "@huaweicloud/huaweicloud-sdk-core/region/region";
2
-
3
-
4
- interface RegionMap {
5
- [key: string]: Region;
6
- }
7
-
8
- export class CodeArtsBuildRegion {
9
- public static CN_NORTH_4 = new Region("cn-north-4", ["https://cloudbuild-ext.cn-north-4.myhuaweicloud.com"]);
10
- public static CN_NORTH_1 = new Region("cn-north-1", ["https://cloudbuild-ext.cn-north-1.myhuaweicloud.com"]);
11
- public static CN_EAST_2 = new Region("cn-east-2", ["https://cloudbuild-ext.cn-east-2.myhuaweicloud.com"]);
12
- public static CN_SOUTH_1 = new Region("cn-south-1", ["https://cloudbuild-ext.cn-south-1.myhuaweicloud.com"]);
13
- public static CN_EAST_3 = new Region("cn-east-3", ["https://cloudbuild-ext.cn-east-3.myhuaweicloud.com"]);
14
- public static CN_SOUTH_2 = new Region("cn-south-2", ["https://cloudbuild-ext.cn-south-2.myhuaweicloud.com"]);
15
- public static CN_SOUTHWEST_2 = new Region("cn-southwest-2", ["https://cloudbuild-ext.cn-southwest-2.myhuaweicloud.com"]);
16
- public static AP_SOUTHEAST_3 = new Region("ap-southeast-3", ["https://cloudbuild-ext.ap-southeast-3.myhuaweicloud.com"]);
17
- public static SA_BRAZIL_1 = new Region("sa-brazil-1", ["https://cloudbuild-ext.sa-brazil-1.myhuaweicloud.com"]);
18
- public static LA_NORTH_2 = new Region("la-north-2", ["https://cloudbuild-ext.la-north-2.myhuaweicloud.com"]);
19
-
20
-
21
- private static REGION_MAP: RegionMap = {
22
- "cn-north-4":CodeArtsBuildRegion.CN_NORTH_4,
23
- "cn-north-1":CodeArtsBuildRegion.CN_NORTH_1,
24
- "cn-east-2":CodeArtsBuildRegion.CN_EAST_2,
25
- "cn-south-1":CodeArtsBuildRegion.CN_SOUTH_1,
26
- "cn-east-3":CodeArtsBuildRegion.CN_EAST_3,
27
- "cn-south-2":CodeArtsBuildRegion.CN_SOUTH_2,
28
- "cn-southwest-2":CodeArtsBuildRegion.CN_SOUTHWEST_2,
29
- "ap-southeast-3":CodeArtsBuildRegion.AP_SOUTHEAST_3,
30
- "sa-brazil-1":CodeArtsBuildRegion.SA_BRAZIL_1,
31
- "la-north-2":CodeArtsBuildRegion.LA_NORTH_2
32
- };
33
-
34
- public static valueOf(regionId: string) {
35
- if (!regionId) {
36
- throw new Error("Unexpected empty parameter: regionId.");
37
- }
38
- const result = this.REGION_MAP[regionId];
39
- if (result) {
40
- return result;
41
- }
42
- throw new Error(`Unexpected regionId: ${regionId}.`)
43
- }
44
- }
@@ -1,27 +0,0 @@
1
-
2
-
3
- export class BuildStep {
4
- public name?: string;
5
- public status?: string;
6
- private 'build_time'?: number | undefined;
7
- public constructor() {
8
- }
9
- public withName(name: string): BuildStep {
10
- this['name'] = name;
11
- return this;
12
- }
13
- public withStatus(status: string): BuildStep {
14
- this['status'] = status;
15
- return this;
16
- }
17
- public withBuildTime(buildTime: number): BuildStep {
18
- this['build_time'] = buildTime;
19
- return this;
20
- }
21
- public set buildTime(buildTime: number | undefined) {
22
- this['build_time'] = buildTime;
23
- }
24
- public get buildTime() {
25
- return this['build_time'];
26
- }
27
- }
@@ -1,30 +0,0 @@
1
-
2
-
3
- export class DownloadKeystoreRequest {
4
- private 'file_name': string | undefined;
5
- private 'domain_id': string | undefined;
6
- public constructor(fileName?: any, domainId?: any) {
7
- this['file_name'] = fileName;
8
- this['domain_id'] = domainId;
9
- }
10
- public withFileName(fileName: string): DownloadKeystoreRequest {
11
- this['file_name'] = fileName;
12
- return this;
13
- }
14
- public set fileName(fileName: string | undefined) {
15
- this['file_name'] = fileName;
16
- }
17
- public get fileName() {
18
- return this['file_name'];
19
- }
20
- public withDomainId(domainId: string): DownloadKeystoreRequest {
21
- this['domain_id'] = domainId;
22
- return this;
23
- }
24
- public set domainId(domainId: string | undefined) {
25
- this['domain_id'] = domainId;
26
- }
27
- public get domainId() {
28
- return this['domain_id'];
29
- }
30
- }
@@ -1,8 +0,0 @@
1
-
2
- import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
-
4
- export class DownloadKeystoreResponse extends SdkResponse {
5
- public constructor() {
6
- super();
7
- }
8
- }
@@ -1,66 +0,0 @@
1
-
2
-
3
- export class HistoryRecord {
4
- private 'record_id'?: string | undefined;
5
- private 'job_id'?: string | undefined;
6
- private 'build_number'?: number | undefined;
7
- private 'start_time'?: string | undefined;
8
- private 'end_time'?: string | undefined;
9
- public result?: string;
10
- public constructor() {
11
- }
12
- public withRecordId(recordId: string): HistoryRecord {
13
- this['record_id'] = recordId;
14
- return this;
15
- }
16
- public set recordId(recordId: string | undefined) {
17
- this['record_id'] = recordId;
18
- }
19
- public get recordId() {
20
- return this['record_id'];
21
- }
22
- public withJobId(jobId: string): HistoryRecord {
23
- this['job_id'] = jobId;
24
- return this;
25
- }
26
- public set jobId(jobId: string | undefined) {
27
- this['job_id'] = jobId;
28
- }
29
- public get jobId() {
30
- return this['job_id'];
31
- }
32
- public withBuildNumber(buildNumber: number): HistoryRecord {
33
- this['build_number'] = buildNumber;
34
- return this;
35
- }
36
- public set buildNumber(buildNumber: number | undefined) {
37
- this['build_number'] = buildNumber;
38
- }
39
- public get buildNumber() {
40
- return this['build_number'];
41
- }
42
- public withStartTime(startTime: string): HistoryRecord {
43
- this['start_time'] = startTime;
44
- return this;
45
- }
46
- public set startTime(startTime: string | undefined) {
47
- this['start_time'] = startTime;
48
- }
49
- public get startTime() {
50
- return this['start_time'];
51
- }
52
- public withEndTime(endTime: string): HistoryRecord {
53
- this['end_time'] = endTime;
54
- return this;
55
- }
56
- public set endTime(endTime: string | undefined) {
57
- this['end_time'] = endTime;
58
- }
59
- public get endTime() {
60
- return this['end_time'];
61
- }
62
- public withResult(result: string): HistoryRecord {
63
- this['result'] = result;
64
- return this;
65
- }
66
- }
@@ -1,109 +0,0 @@
1
-
2
-
3
- export class HistoryRecord1 {
4
- private 'record_id'?: string | undefined;
5
- private 'job_id'?: string | undefined;
6
- private 'build_number'?: number | undefined;
7
- private 'start_time'?: string | undefined;
8
- private 'end_time'?: string | undefined;
9
- public result?: string;
10
- public branch?: string;
11
- private 'commit_id'?: string | undefined;
12
- private 'commit_message'?: string | undefined;
13
- public executor?: string;
14
- private 'trigger_type'?: string | undefined;
15
- public constructor() {
16
- }
17
- public withRecordId(recordId: string): HistoryRecord1 {
18
- this['record_id'] = recordId;
19
- return this;
20
- }
21
- public set recordId(recordId: string | undefined) {
22
- this['record_id'] = recordId;
23
- }
24
- public get recordId() {
25
- return this['record_id'];
26
- }
27
- public withJobId(jobId: string): HistoryRecord1 {
28
- this['job_id'] = jobId;
29
- return this;
30
- }
31
- public set jobId(jobId: string | undefined) {
32
- this['job_id'] = jobId;
33
- }
34
- public get jobId() {
35
- return this['job_id'];
36
- }
37
- public withBuildNumber(buildNumber: number): HistoryRecord1 {
38
- this['build_number'] = buildNumber;
39
- return this;
40
- }
41
- public set buildNumber(buildNumber: number | undefined) {
42
- this['build_number'] = buildNumber;
43
- }
44
- public get buildNumber() {
45
- return this['build_number'];
46
- }
47
- public withStartTime(startTime: string): HistoryRecord1 {
48
- this['start_time'] = startTime;
49
- return this;
50
- }
51
- public set startTime(startTime: string | undefined) {
52
- this['start_time'] = startTime;
53
- }
54
- public get startTime() {
55
- return this['start_time'];
56
- }
57
- public withEndTime(endTime: string): HistoryRecord1 {
58
- this['end_time'] = endTime;
59
- return this;
60
- }
61
- public set endTime(endTime: string | undefined) {
62
- this['end_time'] = endTime;
63
- }
64
- public get endTime() {
65
- return this['end_time'];
66
- }
67
- public withResult(result: string): HistoryRecord1 {
68
- this['result'] = result;
69
- return this;
70
- }
71
- public withBranch(branch: string): HistoryRecord1 {
72
- this['branch'] = branch;
73
- return this;
74
- }
75
- public withCommitId(commitId: string): HistoryRecord1 {
76
- this['commit_id'] = commitId;
77
- return this;
78
- }
79
- public set commitId(commitId: string | undefined) {
80
- this['commit_id'] = commitId;
81
- }
82
- public get commitId() {
83
- return this['commit_id'];
84
- }
85
- public withCommitMessage(commitMessage: string): HistoryRecord1 {
86
- this['commit_message'] = commitMessage;
87
- return this;
88
- }
89
- public set commitMessage(commitMessage: string | undefined) {
90
- this['commit_message'] = commitMessage;
91
- }
92
- public get commitMessage() {
93
- return this['commit_message'];
94
- }
95
- public withExecutor(executor: string): HistoryRecord1 {
96
- this['executor'] = executor;
97
- return this;
98
- }
99
- public withTriggerType(triggerType: string): HistoryRecord1 {
100
- this['trigger_type'] = triggerType;
101
- return this;
102
- }
103
- public set triggerType(triggerType: string | undefined) {
104
- this['trigger_type'] = triggerType;
105
- }
106
- public get triggerType() {
107
- return this['trigger_type'];
108
- }
109
- }
package/v3/model/Job.ts DELETED
@@ -1,175 +0,0 @@
1
-
2
-
3
- export class Job {
4
- public id?: string;
5
- private 'job_name'?: string | undefined;
6
- private 'job_creator'?: string | undefined;
7
- private 'user_name'?: string | undefined;
8
- private 'last_build_time'?: number | undefined;
9
- private 'health_score'?: number | undefined;
10
- private 'source_code'?: string | undefined;
11
- private 'last_build_status'?: string | undefined;
12
- private 'is_finished'?: boolean | undefined;
13
- public disabled?: boolean;
14
- public favorite?: boolean;
15
- private 'is_modify'?: boolean | undefined;
16
- private 'is_delete'?: boolean | undefined;
17
- private 'is_execute'?: boolean | undefined;
18
- private 'is_copy'?: boolean | undefined;
19
- private 'is_forbidden'?: boolean | undefined;
20
- private 'is_view'?: boolean | undefined;
21
- public constructor() {
22
- }
23
- public withId(id: string): Job {
24
- this['id'] = id;
25
- return this;
26
- }
27
- public withJobName(jobName: string): Job {
28
- this['job_name'] = jobName;
29
- return this;
30
- }
31
- public set jobName(jobName: string | undefined) {
32
- this['job_name'] = jobName;
33
- }
34
- public get jobName() {
35
- return this['job_name'];
36
- }
37
- public withJobCreator(jobCreator: string): Job {
38
- this['job_creator'] = jobCreator;
39
- return this;
40
- }
41
- public set jobCreator(jobCreator: string | undefined) {
42
- this['job_creator'] = jobCreator;
43
- }
44
- public get jobCreator() {
45
- return this['job_creator'];
46
- }
47
- public withUserName(userName: string): Job {
48
- this['user_name'] = userName;
49
- return this;
50
- }
51
- public set userName(userName: string | undefined) {
52
- this['user_name'] = userName;
53
- }
54
- public get userName() {
55
- return this['user_name'];
56
- }
57
- public withLastBuildTime(lastBuildTime: number): Job {
58
- this['last_build_time'] = lastBuildTime;
59
- return this;
60
- }
61
- public set lastBuildTime(lastBuildTime: number | undefined) {
62
- this['last_build_time'] = lastBuildTime;
63
- }
64
- public get lastBuildTime() {
65
- return this['last_build_time'];
66
- }
67
- public withHealthScore(healthScore: number): Job {
68
- this['health_score'] = healthScore;
69
- return this;
70
- }
71
- public set healthScore(healthScore: number | undefined) {
72
- this['health_score'] = healthScore;
73
- }
74
- public get healthScore() {
75
- return this['health_score'];
76
- }
77
- public withSourceCode(sourceCode: string): Job {
78
- this['source_code'] = sourceCode;
79
- return this;
80
- }
81
- public set sourceCode(sourceCode: string | undefined) {
82
- this['source_code'] = sourceCode;
83
- }
84
- public get sourceCode() {
85
- return this['source_code'];
86
- }
87
- public withLastBuildStatus(lastBuildStatus: string): Job {
88
- this['last_build_status'] = lastBuildStatus;
89
- return this;
90
- }
91
- public set lastBuildStatus(lastBuildStatus: string | undefined) {
92
- this['last_build_status'] = lastBuildStatus;
93
- }
94
- public get lastBuildStatus() {
95
- return this['last_build_status'];
96
- }
97
- public withIsFinished(isFinished: boolean): Job {
98
- this['is_finished'] = isFinished;
99
- return this;
100
- }
101
- public set isFinished(isFinished: boolean | undefined) {
102
- this['is_finished'] = isFinished;
103
- }
104
- public get isFinished() {
105
- return this['is_finished'];
106
- }
107
- public withDisabled(disabled: boolean): Job {
108
- this['disabled'] = disabled;
109
- return this;
110
- }
111
- public withFavorite(favorite: boolean): Job {
112
- this['favorite'] = favorite;
113
- return this;
114
- }
115
- public withIsModify(isModify: boolean): Job {
116
- this['is_modify'] = isModify;
117
- return this;
118
- }
119
- public set isModify(isModify: boolean | undefined) {
120
- this['is_modify'] = isModify;
121
- }
122
- public get isModify() {
123
- return this['is_modify'];
124
- }
125
- public withIsDelete(isDelete: boolean): Job {
126
- this['is_delete'] = isDelete;
127
- return this;
128
- }
129
- public set isDelete(isDelete: boolean | undefined) {
130
- this['is_delete'] = isDelete;
131
- }
132
- public get isDelete() {
133
- return this['is_delete'];
134
- }
135
- public withIsExecute(isExecute: boolean): Job {
136
- this['is_execute'] = isExecute;
137
- return this;
138
- }
139
- public set isExecute(isExecute: boolean | undefined) {
140
- this['is_execute'] = isExecute;
141
- }
142
- public get isExecute() {
143
- return this['is_execute'];
144
- }
145
- public withIsCopy(isCopy: boolean): Job {
146
- this['is_copy'] = isCopy;
147
- return this;
148
- }
149
- public set isCopy(isCopy: boolean | undefined) {
150
- this['is_copy'] = isCopy;
151
- }
152
- public get isCopy() {
153
- return this['is_copy'];
154
- }
155
- public withIsForbidden(isForbidden: boolean): Job {
156
- this['is_forbidden'] = isForbidden;
157
- return this;
158
- }
159
- public set isForbidden(isForbidden: boolean | undefined) {
160
- this['is_forbidden'] = isForbidden;
161
- }
162
- public get isForbidden() {
163
- return this['is_forbidden'];
164
- }
165
- public withIsView(isView: boolean): Job {
166
- this['is_view'] = isView;
167
- return this;
168
- }
169
- public set isView(isView: boolean | undefined) {
170
- this['is_view'] = isView;
171
- }
172
- public get isView() {
173
- return this['is_view'];
174
- }
175
- }
@@ -1,18 +0,0 @@
1
-
2
-
3
- export class ParameterItem {
4
- public name: string;
5
- public value: string;
6
- public constructor(name?: any, value?: any) {
7
- this['name'] = name;
8
- this['value'] = value;
9
- }
10
- public withName(name: string): ParameterItem {
11
- this['name'] = name;
12
- return this;
13
- }
14
- public withValue(value: string): ParameterItem {
15
- this['value'] = value;
16
- return this;
17
- }
18
- }
@@ -1,12 +0,0 @@
1
- import { RunJobRequestBody } from './RunJobRequestBody';
2
-
3
-
4
- export class RunJobRequest {
5
- public body?: RunJobRequestBody;
6
- public constructor() {
7
- }
8
- public withBody(body: RunJobRequestBody): RunJobRequest {
9
- this['body'] = body;
10
- return this;
11
- }
12
- }
@@ -1,30 +0,0 @@
1
- import { ParameterItem } from './ParameterItem';
2
- import { Scm } from './Scm';
3
-
4
-
5
- export class RunJobRequestBody {
6
- private 'job_id': string | undefined;
7
- public parameter?: Array<ParameterItem>;
8
- public scm?: Scm;
9
- public constructor(jobId?: any) {
10
- this['job_id'] = jobId;
11
- }
12
- public withJobId(jobId: string): RunJobRequestBody {
13
- this['job_id'] = jobId;
14
- return this;
15
- }
16
- public set jobId(jobId: string | undefined) {
17
- this['job_id'] = jobId;
18
- }
19
- public get jobId() {
20
- return this['job_id'];
21
- }
22
- public withParameter(parameter: Array<ParameterItem>): RunJobRequestBody {
23
- this['parameter'] = parameter;
24
- return this;
25
- }
26
- public withScm(scm: Scm): RunJobRequestBody {
27
- this['scm'] = scm;
28
- return this;
29
- }
30
- }