@huaweicloud/huaweicloud-sdk-codeartsdeploy 3.1.45 → 3.1.46

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 (193) hide show
  1. package/huaweicloud-sdk-codeartsdeploy.ts +4 -0
  2. package/package.json +4 -4
  3. package/v2/{CodeArtsDeployClient.js → CodeArtsDeployClient.ts} +608 -388
  4. package/v2/CodeArtsDeployRegion.ts +40 -0
  5. package/v2/model/AppComponentDao.ts +82 -0
  6. package/v2/model/ConfigInfoDO.ts +73 -0
  7. package/v2/model/CreateDeployTaskByTemplateRequest.ts +33 -0
  8. package/v2/model/CreateDeployTaskByTemplateResponse.ts +30 -0
  9. package/v2/model/CreateDeploymentGroupRequest.ts +33 -0
  10. package/v2/model/CreateDeploymentGroupResponse.ts +19 -0
  11. package/v2/model/CreateDeploymentHostRequest.ts +45 -0
  12. package/v2/model/CreateDeploymentHostResponse.ts +19 -0
  13. package/v2/model/DeleteDeployTaskRequest.ts +39 -0
  14. package/v2/model/DeleteDeployTaskResponse.ts +19 -0
  15. package/v2/model/DeleteDeploymentGroupRequest.ts +39 -0
  16. package/v2/model/DeleteDeploymentGroupResponse.ts +19 -0
  17. package/v2/model/DeleteDeploymentHostRequest.ts +51 -0
  18. package/v2/model/DeleteDeploymentHostResponse.ts +19 -0
  19. package/v2/model/DeploymentGroup.ts +78 -0
  20. package/v2/model/DeploymentGroupDetail.ts +160 -0
  21. package/v2/model/DeploymentGroupUpdateRequest.ts +49 -0
  22. package/v2/model/DeploymentHost.ts +86 -0
  23. package/v2/model/DeploymentHostAuthorizationBody.ts +49 -0
  24. package/v2/model/DeploymentHostDetail.ts +270 -0
  25. package/v2/model/DeploymentHostInfo.ts +98 -0
  26. package/v2/model/DeploymentHostRequest.ts +77 -0
  27. package/v2/model/DeploymentUpdateHost.ts +71 -0
  28. package/v2/model/DynamicConfigInfo.ts +33 -0
  29. package/v2/model/EnvExecutionBody.ts +34 -0
  30. package/v2/model/ExecuteRecordV2Body.ts +75 -0
  31. package/v2/model/KeyValueDO.ts +16 -0
  32. package/v2/model/ListDeployTaskHistoryByDateRequest.ts +81 -0
  33. package/v2/model/ListDeployTaskHistoryByDateResponse.ts +25 -0
  34. package/v2/model/ListDeployTasksRequest.ts +51 -0
  35. package/v2/model/ListDeployTasksResponse.ts +25 -0
  36. package/v2/model/ListHostGroupsRequest.ts +88 -0
  37. package/v2/model/ListHostGroupsResponse.ts +25 -0
  38. package/v2/model/ListHostsRequest.ts +86 -0
  39. package/v2/model/ListHostsResponse.ts +30 -0
  40. package/v2/model/ListTaskSuccessRateRequest.ts +24 -0
  41. package/v2/model/ListTaskSuccessRateResponse.ts +64 -0
  42. package/v2/model/ParamTypeLimits.ts +11 -0
  43. package/v2/model/PermissionGroupDetail.ts +61 -0
  44. package/v2/model/PermissionHostDetail.ts +61 -0
  45. package/v2/model/ShowDeployTaskDetailRequest.ts +18 -0
  46. package/v2/model/ShowDeployTaskDetailResponse.ts +351 -0
  47. package/v2/model/ShowDeploymentGroupDetailRequest.ts +18 -0
  48. package/v2/model/ShowDeploymentGroupDetailResponse.ts +162 -0
  49. package/v2/model/ShowDeploymentHostDetailRequest.ts +30 -0
  50. package/v2/model/ShowDeploymentHostDetailResponse.ts +273 -0
  51. package/v2/model/ShowProjectSuccessRateRequest.ts +42 -0
  52. package/v2/model/ShowProjectSuccessRateResponse.ts +96 -0
  53. package/v2/model/StartDeployTaskRequest.ts +45 -0
  54. package/v2/model/StartDeployTaskResponse.ts +47 -0
  55. package/v2/model/Step.ts +26 -0
  56. package/v2/model/TaskInfo.ts +349 -0
  57. package/v2/model/TaskSuccessRate.ts +61 -0
  58. package/v2/model/TasksSuccessRateQuery.ts +42 -0
  59. package/v2/model/TemplateTaskRequestBody.ts +71 -0
  60. package/v2/model/UpdateDeploymentGroupRequest.ts +45 -0
  61. package/v2/model/UpdateDeploymentGroupResponse.ts +19 -0
  62. package/v2/model/UpdateDeploymentHostRequest.ts +57 -0
  63. package/v2/model/UpdateDeploymentHostResponse.ts +19 -0
  64. package/v2/model/UserInfo.ts +28 -0
  65. package/v2/{public-api.d.ts → public-api.ts} +1 -0
  66. package/LICENSE +0 -13
  67. package/README.md +0 -1
  68. package/huaweicloud-sdk-codeartsdeploy.d.ts +0 -2
  69. package/huaweicloud-sdk-codeartsdeploy.js +0 -31
  70. package/v2/CodeArtsDeployClient.d.ts +0 -538
  71. package/v2/CodeArtsDeployRegion.d.ts +0 -12
  72. package/v2/CodeArtsDeployRegion.js +0 -37
  73. package/v2/model/AppComponentDao.d.ts +0 -31
  74. package/v2/model/AppComponentDao.js +0 -101
  75. package/v2/model/ConfigInfoDO.d.ts +0 -40
  76. package/v2/model/ConfigInfoDO.js +0 -77
  77. package/v2/model/CreateDeployTaskByTemplateRequest.d.ts +0 -18
  78. package/v2/model/CreateDeployTaskByTemplateRequest.js +0 -37
  79. package/v2/model/CreateDeployTaskByTemplateResponse.d.ts +0 -12
  80. package/v2/model/CreateDeployTaskByTemplateResponse.js +0 -55
  81. package/v2/model/CreateDeploymentGroupRequest.d.ts +0 -18
  82. package/v2/model/CreateDeploymentGroupRequest.js +0 -37
  83. package/v2/model/CreateDeploymentGroupResponse.d.ts +0 -8
  84. package/v2/model/CreateDeploymentGroupResponse.js +0 -41
  85. package/v2/model/CreateDeploymentHostRequest.d.ts +0 -22
  86. package/v2/model/CreateDeploymentHostRequest.js +0 -52
  87. package/v2/model/CreateDeploymentHostResponse.d.ts +0 -8
  88. package/v2/model/CreateDeploymentHostResponse.js +0 -41
  89. package/v2/model/DeleteDeployTaskRequest.d.ts +0 -19
  90. package/v2/model/DeleteDeployTaskRequest.js +0 -48
  91. package/v2/model/DeleteDeployTaskResponse.d.ts +0 -8
  92. package/v2/model/DeleteDeployTaskResponse.js +0 -41
  93. package/v2/model/DeleteDeploymentGroupRequest.d.ts +0 -19
  94. package/v2/model/DeleteDeploymentGroupRequest.js +0 -48
  95. package/v2/model/DeleteDeploymentGroupResponse.d.ts +0 -8
  96. package/v2/model/DeleteDeploymentGroupResponse.js +0 -41
  97. package/v2/model/DeleteDeploymentHostRequest.d.ts +0 -23
  98. package/v2/model/DeleteDeploymentHostRequest.js +0 -63
  99. package/v2/model/DeleteDeploymentHostResponse.d.ts +0 -8
  100. package/v2/model/DeleteDeploymentHostResponse.js +0 -41
  101. package/v2/model/DeploymentGroup.d.ts +0 -33
  102. package/v2/model/DeploymentGroup.js +0 -90
  103. package/v2/model/DeploymentGroupDetail.d.ts +0 -61
  104. package/v2/model/DeploymentGroupDetail.js +0 -193
  105. package/v2/model/DeploymentGroupUpdateRequest.d.ts +0 -24
  106. package/v2/model/DeploymentGroupUpdateRequest.js +0 -56
  107. package/v2/model/DeploymentHost.d.ts +0 -36
  108. package/v2/model/DeploymentHost.js +0 -96
  109. package/v2/model/DeploymentHostAuthorizationBody.d.ts +0 -23
  110. package/v2/model/DeploymentHostAuthorizationBody.js +0 -56
  111. package/v2/model/DeploymentHostDetail.d.ts +0 -103
  112. package/v2/model/DeploymentHostDetail.js +0 -325
  113. package/v2/model/DeploymentHostInfo.d.ts +0 -40
  114. package/v2/model/DeploymentHostInfo.js +0 -111
  115. package/v2/model/DeploymentHostRequest.d.ts +0 -28
  116. package/v2/model/DeploymentHostRequest.js +0 -86
  117. package/v2/model/DeploymentUpdateHost.d.ts +0 -26
  118. package/v2/model/DeploymentUpdateHost.js +0 -82
  119. package/v2/model/DynamicConfigInfo.d.ts +0 -19
  120. package/v2/model/DynamicConfigInfo.js +0 -32
  121. package/v2/model/EnvExecutionBody.d.ts +0 -14
  122. package/v2/model/EnvExecutionBody.js +0 -41
  123. package/v2/model/ExecuteRecordV2Body.d.ts +0 -29
  124. package/v2/model/ExecuteRecordV2Body.js +0 -85
  125. package/v2/model/KeyValueDO.d.ts +0 -7
  126. package/v2/model/KeyValueDO.js +0 -17
  127. package/v2/model/ListDeployTaskHistoryByDateRequest.d.ts +0 -33
  128. package/v2/model/ListDeployTaskHistoryByDateRequest.js +0 -93
  129. package/v2/model/ListDeployTaskHistoryByDateResponse.d.ts +0 -11
  130. package/v2/model/ListDeployTaskHistoryByDateResponse.js +0 -45
  131. package/v2/model/ListDeployTasksRequest.d.ts +0 -23
  132. package/v2/model/ListDeployTasksRequest.js +0 -58
  133. package/v2/model/ListDeployTasksResponse.d.ts +0 -11
  134. package/v2/model/ListDeployTasksResponse.js +0 -45
  135. package/v2/model/ListHostGroupsRequest.d.ts +0 -43
  136. package/v2/model/ListHostGroupsRequest.js +0 -100
  137. package/v2/model/ListHostGroupsResponse.d.ts +0 -11
  138. package/v2/model/ListHostGroupsResponse.js +0 -45
  139. package/v2/model/ListHostsRequest.d.ts +0 -37
  140. package/v2/model/ListHostsRequest.js +0 -101
  141. package/v2/model/ListHostsResponse.d.ts +0 -13
  142. package/v2/model/ListHostsResponse.js +0 -49
  143. package/v2/model/ListTaskSuccessRateRequest.d.ts +0 -10
  144. package/v2/model/ListTaskSuccessRateRequest.js +0 -28
  145. package/v2/model/ListTaskSuccessRateResponse.d.ts +0 -25
  146. package/v2/model/ListTaskSuccessRateResponse.js +0 -97
  147. package/v2/model/ParamTypeLimits.d.ts +0 -5
  148. package/v2/model/ParamTypeLimits.js +0 -13
  149. package/v2/model/PermissionGroupDetail.d.ts +0 -23
  150. package/v2/model/PermissionGroupDetail.js +0 -79
  151. package/v2/model/PermissionHostDetail.d.ts +0 -23
  152. package/v2/model/PermissionHostDetail.js +0 -79
  153. package/v2/model/ShowDeployTaskDetailRequest.d.ts +0 -7
  154. package/v2/model/ShowDeployTaskDetailRequest.js +0 -24
  155. package/v2/model/ShowDeployTaskDetailResponse.d.ts +0 -140
  156. package/v2/model/ShowDeployTaskDetailResponse.js +0 -442
  157. package/v2/model/ShowDeploymentGroupDetailRequest.d.ts +0 -7
  158. package/v2/model/ShowDeploymentGroupDetailRequest.js +0 -24
  159. package/v2/model/ShowDeploymentGroupDetailResponse.d.ts +0 -62
  160. package/v2/model/ShowDeploymentGroupDetailResponse.js +0 -211
  161. package/v2/model/ShowDeploymentHostDetailRequest.d.ts +0 -11
  162. package/v2/model/ShowDeploymentHostDetailRequest.js +0 -39
  163. package/v2/model/ShowDeploymentHostDetailResponse.d.ts +0 -105
  164. package/v2/model/ShowDeploymentHostDetailResponse.js +0 -344
  165. package/v2/model/ShowProjectSuccessRateRequest.d.ts +0 -15
  166. package/v2/model/ShowProjectSuccessRateRequest.js +0 -54
  167. package/v2/model/ShowProjectSuccessRateResponse.d.ts +0 -36
  168. package/v2/model/ShowProjectSuccessRateResponse.js +0 -139
  169. package/v2/model/StartDeployTaskRequest.d.ts +0 -22
  170. package/v2/model/StartDeployTaskRequest.js +0 -52
  171. package/v2/model/StartDeployTaskResponse.d.ts +0 -19
  172. package/v2/model/StartDeployTaskResponse.js +0 -73
  173. package/v2/model/Step.d.ts +0 -15
  174. package/v2/model/Step.js +0 -25
  175. package/v2/model/TaskInfo.d.ts +0 -139
  176. package/v2/model/TaskInfo.js +0 -424
  177. package/v2/model/TaskSuccessRate.d.ts +0 -23
  178. package/v2/model/TaskSuccessRate.js +0 -79
  179. package/v2/model/TasksSuccessRateQuery.d.ts +0 -15
  180. package/v2/model/TasksSuccessRateQuery.js +0 -54
  181. package/v2/model/TemplateTaskRequestBody.d.ts +0 -26
  182. package/v2/model/TemplateTaskRequestBody.js +0 -87
  183. package/v2/model/UpdateDeploymentGroupRequest.d.ts +0 -22
  184. package/v2/model/UpdateDeploymentGroupRequest.js +0 -52
  185. package/v2/model/UpdateDeploymentGroupResponse.d.ts +0 -8
  186. package/v2/model/UpdateDeploymentGroupResponse.js +0 -41
  187. package/v2/model/UpdateDeploymentHostRequest.d.ts +0 -26
  188. package/v2/model/UpdateDeploymentHostRequest.js +0 -67
  189. package/v2/model/UpdateDeploymentHostResponse.d.ts +0 -8
  190. package/v2/model/UpdateDeploymentHostResponse.js +0 -41
  191. package/v2/model/UserInfo.d.ts +0 -11
  192. package/v2/model/UserInfo.js +0 -37
  193. package/v2/public-api.js +0 -78
@@ -0,0 +1,40 @@
1
+ import { Region } from "@huaweicloud/huaweicloud-sdk-core/region/region";
2
+
3
+
4
+ interface RegionMap {
5
+ [key: string]: Region;
6
+ }
7
+
8
+ export class CodeArtsDeployRegion {
9
+ public static AP_SOUTHEAST_3 = new Region("ap-southeast-3", ["https://codearts-deploy.ap-southeast-3.myhuaweicloud.com"]);
10
+ public static CN_SOUTH_1 = new Region("cn-south-1", ["https://codearts-deploy.cn-south-1.myhuaweicloud.com"]);
11
+ public static CN_EAST_3 = new Region("cn-east-3", ["https://codearts-deploy.cn-east-3.myhuaweicloud.com"]);
12
+ public static CN_EAST_2 = new Region("cn-east-2", ["https://codearts-deploy.cn-east-2.myhuaweicloud.com"]);
13
+ public static CN_NORTH_1 = new Region("cn-north-1", ["https://codearts-deploy.cn-north-1.myhuaweicloud.com"]);
14
+ public static CN_NORTH_4 = new Region("cn-north-4", ["https://codearts-deploy.cn-north-4.myhuaweicloud.com"]);
15
+ public static SA_BRAZIL_1 = new Region("sa-brazil-1", ["https://codearts-deploy.sa-brazil-1.myhuaweicloud.com"]);
16
+ public static LA_NORTH_2 = new Region("la-north-2", ["https://codearts-deploy.la-north-2.myhuaweicloud.com"]);
17
+
18
+
19
+ private static REGION_MAP: RegionMap = {
20
+ "ap-southeast-3":CodeArtsDeployRegion.AP_SOUTHEAST_3,
21
+ "cn-south-1":CodeArtsDeployRegion.CN_SOUTH_1,
22
+ "cn-east-3":CodeArtsDeployRegion.CN_EAST_3,
23
+ "cn-east-2":CodeArtsDeployRegion.CN_EAST_2,
24
+ "cn-north-1":CodeArtsDeployRegion.CN_NORTH_1,
25
+ "cn-north-4":CodeArtsDeployRegion.CN_NORTH_4,
26
+ "sa-brazil-1":CodeArtsDeployRegion.SA_BRAZIL_1,
27
+ "la-north-2":CodeArtsDeployRegion.LA_NORTH_2
28
+ };
29
+
30
+ public static valueOf(regionId: string) {
31
+ if (!regionId) {
32
+ throw new Error("Unexpected empty parameter: regionId.");
33
+ }
34
+ const result = this.REGION_MAP[regionId];
35
+ if (result) {
36
+ return result;
37
+ }
38
+ throw new Error(`Unexpected regionId: ${regionId}.`)
39
+ }
40
+ }
@@ -0,0 +1,82 @@
1
+
2
+
3
+ export class AppComponentDao {
4
+ private 'task_id'?: string | undefined;
5
+ private 'app_id'?: string | undefined;
6
+ private 'app_name'?: string | undefined;
7
+ private 'comp_id'?: string | undefined;
8
+ private 'comp_name'?: string | undefined;
9
+ private 'domain_id'?: string | undefined;
10
+ public region?: string;
11
+ public state?: string;
12
+ public constructor() {
13
+ }
14
+ public withTaskId(taskId: string): AppComponentDao {
15
+ this['task_id'] = taskId;
16
+ return this;
17
+ }
18
+ public set taskId(taskId: string | undefined) {
19
+ this['task_id'] = taskId;
20
+ }
21
+ public get taskId() {
22
+ return this['task_id'];
23
+ }
24
+ public withAppId(appId: string): AppComponentDao {
25
+ this['app_id'] = appId;
26
+ return this;
27
+ }
28
+ public set appId(appId: string | undefined) {
29
+ this['app_id'] = appId;
30
+ }
31
+ public get appId() {
32
+ return this['app_id'];
33
+ }
34
+ public withAppName(appName: string): AppComponentDao {
35
+ this['app_name'] = appName;
36
+ return this;
37
+ }
38
+ public set appName(appName: string | undefined) {
39
+ this['app_name'] = appName;
40
+ }
41
+ public get appName() {
42
+ return this['app_name'];
43
+ }
44
+ public withCompId(compId: string): AppComponentDao {
45
+ this['comp_id'] = compId;
46
+ return this;
47
+ }
48
+ public set compId(compId: string | undefined) {
49
+ this['comp_id'] = compId;
50
+ }
51
+ public get compId() {
52
+ return this['comp_id'];
53
+ }
54
+ public withCompName(compName: string): AppComponentDao {
55
+ this['comp_name'] = compName;
56
+ return this;
57
+ }
58
+ public set compName(compName: string | undefined) {
59
+ this['comp_name'] = compName;
60
+ }
61
+ public get compName() {
62
+ return this['comp_name'];
63
+ }
64
+ public withDomainId(domainId: string): AppComponentDao {
65
+ this['domain_id'] = domainId;
66
+ return this;
67
+ }
68
+ public set domainId(domainId: string | undefined) {
69
+ this['domain_id'] = domainId;
70
+ }
71
+ public get domainId() {
72
+ return this['domain_id'];
73
+ }
74
+ public withRegion(region: string): AppComponentDao {
75
+ this['region'] = region;
76
+ return this;
77
+ }
78
+ public withState(state: string): AppComponentDao {
79
+ this['state'] = state;
80
+ return this;
81
+ }
82
+ }
@@ -0,0 +1,73 @@
1
+ import { ParamTypeLimits } from './ParamTypeLimits';
2
+
3
+
4
+ export class ConfigInfoDO {
5
+ public name?: string;
6
+ public type?: ConfigInfoDOTypeEnum;
7
+ public description?: string;
8
+ public value?: string;
9
+ private 'task_id'?: string | undefined;
10
+ private 'static_status'?: ConfigInfoDOStaticStatusEnum | undefined;
11
+ public limits?: Array<ParamTypeLimits>;
12
+ public constructor() {
13
+ }
14
+ public withName(name: string): ConfigInfoDO {
15
+ this['name'] = name;
16
+ return this;
17
+ }
18
+ public withType(type: ConfigInfoDOTypeEnum): ConfigInfoDO {
19
+ this['type'] = type;
20
+ return this;
21
+ }
22
+ public withDescription(description: string): ConfigInfoDO {
23
+ this['description'] = description;
24
+ return this;
25
+ }
26
+ public withValue(value: string): ConfigInfoDO {
27
+ this['value'] = value;
28
+ return this;
29
+ }
30
+ public withTaskId(taskId: string): ConfigInfoDO {
31
+ this['task_id'] = taskId;
32
+ return this;
33
+ }
34
+ public set taskId(taskId: string | undefined) {
35
+ this['task_id'] = taskId;
36
+ }
37
+ public get taskId() {
38
+ return this['task_id'];
39
+ }
40
+ public withStaticStatus(staticStatus: ConfigInfoDOStaticStatusEnum): ConfigInfoDO {
41
+ this['static_status'] = staticStatus;
42
+ return this;
43
+ }
44
+ public set staticStatus(staticStatus: ConfigInfoDOStaticStatusEnum | undefined) {
45
+ this['static_status'] = staticStatus;
46
+ }
47
+ public get staticStatus() {
48
+ return this['static_status'];
49
+ }
50
+ public withLimits(limits: Array<ParamTypeLimits>): ConfigInfoDO {
51
+ this['limits'] = limits;
52
+ return this;
53
+ }
54
+ }
55
+
56
+ /**
57
+ * @export
58
+ * @enum {string}
59
+ */
60
+ export enum ConfigInfoDOTypeEnum {
61
+ TEXT = 'text',
62
+ HOST_GROUP = 'host_group',
63
+ ENUM = 'enum',
64
+ ENCRYPT = 'encrypt'
65
+ }
66
+ /**
67
+ * @export
68
+ * @enum {string}
69
+ */
70
+ export enum ConfigInfoDOStaticStatusEnum {
71
+ NUMBER_0 = 0,
72
+ NUMBER_1 = 1
73
+ }
@@ -0,0 +1,33 @@
1
+ import { TemplateTaskRequestBody } from './TemplateTaskRequestBody';
2
+
3
+
4
+ export class CreateDeployTaskByTemplateRequest {
5
+ private 'Content-Type': CreateDeployTaskByTemplateRequestContentTypeEnum | undefined;
6
+ public body?: TemplateTaskRequestBody;
7
+ public constructor(contentType?: any) {
8
+ this['Content-Type'] = contentType;
9
+ }
10
+ public withContentType(contentType: CreateDeployTaskByTemplateRequestContentTypeEnum): CreateDeployTaskByTemplateRequest {
11
+ this['Content-Type'] = contentType;
12
+ return this;
13
+ }
14
+ public set contentType(contentType: CreateDeployTaskByTemplateRequestContentTypeEnum | undefined) {
15
+ this['Content-Type'] = contentType;
16
+ }
17
+ public get contentType() {
18
+ return this['Content-Type'];
19
+ }
20
+ public withBody(body: TemplateTaskRequestBody): CreateDeployTaskByTemplateRequest {
21
+ this['body'] = body;
22
+ return this;
23
+ }
24
+ }
25
+
26
+ /**
27
+ * @export
28
+ * @enum {string}
29
+ */
30
+ export enum CreateDeployTaskByTemplateRequestContentTypeEnum {
31
+ APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
32
+ APPLICATION_JSON = 'application/json'
33
+ }
@@ -0,0 +1,30 @@
1
+
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+
4
+ export class CreateDeployTaskByTemplateResponse extends SdkResponse {
5
+ private 'task_name'?: string | undefined;
6
+ private 'task_id'?: string | undefined;
7
+ public constructor() {
8
+ super();
9
+ }
10
+ public withTaskName(taskName: string): CreateDeployTaskByTemplateResponse {
11
+ this['task_name'] = taskName;
12
+ return this;
13
+ }
14
+ public set taskName(taskName: string | undefined) {
15
+ this['task_name'] = taskName;
16
+ }
17
+ public get taskName() {
18
+ return this['task_name'];
19
+ }
20
+ public withTaskId(taskId: string): CreateDeployTaskByTemplateResponse {
21
+ this['task_id'] = taskId;
22
+ return this;
23
+ }
24
+ public set taskId(taskId: string | undefined) {
25
+ this['task_id'] = taskId;
26
+ }
27
+ public get taskId() {
28
+ return this['task_id'];
29
+ }
30
+ }
@@ -0,0 +1,33 @@
1
+ import { DeploymentGroup } from './DeploymentGroup';
2
+
3
+
4
+ export class CreateDeploymentGroupRequest {
5
+ private 'Content-Type': CreateDeploymentGroupRequestContentTypeEnum | undefined;
6
+ public body?: DeploymentGroup;
7
+ public constructor(contentType?: any) {
8
+ this['Content-Type'] = contentType;
9
+ }
10
+ public withContentType(contentType: CreateDeploymentGroupRequestContentTypeEnum): CreateDeploymentGroupRequest {
11
+ this['Content-Type'] = contentType;
12
+ return this;
13
+ }
14
+ public set contentType(contentType: CreateDeploymentGroupRequestContentTypeEnum | undefined) {
15
+ this['Content-Type'] = contentType;
16
+ }
17
+ public get contentType() {
18
+ return this['Content-Type'];
19
+ }
20
+ public withBody(body: DeploymentGroup): CreateDeploymentGroupRequest {
21
+ this['body'] = body;
22
+ return this;
23
+ }
24
+ }
25
+
26
+ /**
27
+ * @export
28
+ * @enum {string}
29
+ */
30
+ export enum CreateDeploymentGroupRequestContentTypeEnum {
31
+ APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
32
+ APPLICATION_JSON = 'application/json'
33
+ }
@@ -0,0 +1,19 @@
1
+
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+
4
+ export class CreateDeploymentGroupResponse extends SdkResponse {
5
+ private 'group_id'?: string | undefined;
6
+ public constructor() {
7
+ super();
8
+ }
9
+ public withGroupId(groupId: string): CreateDeploymentGroupResponse {
10
+ this['group_id'] = groupId;
11
+ return this;
12
+ }
13
+ public set groupId(groupId: string | undefined) {
14
+ this['group_id'] = groupId;
15
+ }
16
+ public get groupId() {
17
+ return this['group_id'];
18
+ }
19
+ }
@@ -0,0 +1,45 @@
1
+ import { DeploymentHost } from './DeploymentHost';
2
+
3
+
4
+ export class CreateDeploymentHostRequest {
5
+ private 'group_id': string | undefined;
6
+ private 'Content-Type': CreateDeploymentHostRequestContentTypeEnum | undefined;
7
+ public body?: DeploymentHost;
8
+ public constructor(groupId?: any, contentType?: any) {
9
+ this['group_id'] = groupId;
10
+ this['Content-Type'] = contentType;
11
+ }
12
+ public withGroupId(groupId: string): CreateDeploymentHostRequest {
13
+ this['group_id'] = groupId;
14
+ return this;
15
+ }
16
+ public set groupId(groupId: string | undefined) {
17
+ this['group_id'] = groupId;
18
+ }
19
+ public get groupId() {
20
+ return this['group_id'];
21
+ }
22
+ public withContentType(contentType: CreateDeploymentHostRequestContentTypeEnum): CreateDeploymentHostRequest {
23
+ this['Content-Type'] = contentType;
24
+ return this;
25
+ }
26
+ public set contentType(contentType: CreateDeploymentHostRequestContentTypeEnum | undefined) {
27
+ this['Content-Type'] = contentType;
28
+ }
29
+ public get contentType() {
30
+ return this['Content-Type'];
31
+ }
32
+ public withBody(body: DeploymentHost): CreateDeploymentHostRequest {
33
+ this['body'] = body;
34
+ return this;
35
+ }
36
+ }
37
+
38
+ /**
39
+ * @export
40
+ * @enum {string}
41
+ */
42
+ export enum CreateDeploymentHostRequestContentTypeEnum {
43
+ APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
44
+ APPLICATION_JSON = 'application/json'
45
+ }
@@ -0,0 +1,19 @@
1
+
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+
4
+ export class CreateDeploymentHostResponse extends SdkResponse {
5
+ private 'host_id'?: string | undefined;
6
+ public constructor() {
7
+ super();
8
+ }
9
+ public withHostId(hostId: string): CreateDeploymentHostResponse {
10
+ this['host_id'] = hostId;
11
+ return this;
12
+ }
13
+ public set hostId(hostId: string | undefined) {
14
+ this['host_id'] = hostId;
15
+ }
16
+ public get hostId() {
17
+ return this['host_id'];
18
+ }
19
+ }
@@ -0,0 +1,39 @@
1
+
2
+
3
+ export class DeleteDeployTaskRequest {
4
+ private 'task_id': string | undefined;
5
+ private 'Content-Type': DeleteDeployTaskRequestContentTypeEnum | undefined;
6
+ public constructor(taskId?: any, contentType?: any) {
7
+ this['task_id'] = taskId;
8
+ this['Content-Type'] = contentType;
9
+ }
10
+ public withTaskId(taskId: string): DeleteDeployTaskRequest {
11
+ this['task_id'] = taskId;
12
+ return this;
13
+ }
14
+ public set taskId(taskId: string | undefined) {
15
+ this['task_id'] = taskId;
16
+ }
17
+ public get taskId() {
18
+ return this['task_id'];
19
+ }
20
+ public withContentType(contentType: DeleteDeployTaskRequestContentTypeEnum): DeleteDeployTaskRequest {
21
+ this['Content-Type'] = contentType;
22
+ return this;
23
+ }
24
+ public set contentType(contentType: DeleteDeployTaskRequestContentTypeEnum | undefined) {
25
+ this['Content-Type'] = contentType;
26
+ }
27
+ public get contentType() {
28
+ return this['Content-Type'];
29
+ }
30
+ }
31
+
32
+ /**
33
+ * @export
34
+ * @enum {string}
35
+ */
36
+ export enum DeleteDeployTaskRequestContentTypeEnum {
37
+ APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
38
+ APPLICATION_JSON = 'application/json'
39
+ }
@@ -0,0 +1,19 @@
1
+
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+
4
+ export class DeleteDeployTaskResponse extends SdkResponse {
5
+ private 'task_id'?: string | undefined;
6
+ public constructor() {
7
+ super();
8
+ }
9
+ public withTaskId(taskId: string): DeleteDeployTaskResponse {
10
+ this['task_id'] = taskId;
11
+ return this;
12
+ }
13
+ public set taskId(taskId: string | undefined) {
14
+ this['task_id'] = taskId;
15
+ }
16
+ public get taskId() {
17
+ return this['task_id'];
18
+ }
19
+ }
@@ -0,0 +1,39 @@
1
+
2
+
3
+ export class DeleteDeploymentGroupRequest {
4
+ private 'group_id': string | undefined;
5
+ private 'Content-Type': DeleteDeploymentGroupRequestContentTypeEnum | undefined;
6
+ public constructor(groupId?: any, contentType?: any) {
7
+ this['group_id'] = groupId;
8
+ this['Content-Type'] = contentType;
9
+ }
10
+ public withGroupId(groupId: string): DeleteDeploymentGroupRequest {
11
+ this['group_id'] = groupId;
12
+ return this;
13
+ }
14
+ public set groupId(groupId: string | undefined) {
15
+ this['group_id'] = groupId;
16
+ }
17
+ public get groupId() {
18
+ return this['group_id'];
19
+ }
20
+ public withContentType(contentType: DeleteDeploymentGroupRequestContentTypeEnum): DeleteDeploymentGroupRequest {
21
+ this['Content-Type'] = contentType;
22
+ return this;
23
+ }
24
+ public set contentType(contentType: DeleteDeploymentGroupRequestContentTypeEnum | undefined) {
25
+ this['Content-Type'] = contentType;
26
+ }
27
+ public get contentType() {
28
+ return this['Content-Type'];
29
+ }
30
+ }
31
+
32
+ /**
33
+ * @export
34
+ * @enum {string}
35
+ */
36
+ export enum DeleteDeploymentGroupRequestContentTypeEnum {
37
+ APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
38
+ APPLICATION_JSON = 'application/json'
39
+ }
@@ -0,0 +1,19 @@
1
+
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+
4
+ export class DeleteDeploymentGroupResponse extends SdkResponse {
5
+ private 'group_id'?: string | undefined;
6
+ public constructor() {
7
+ super();
8
+ }
9
+ public withGroupId(groupId: string): DeleteDeploymentGroupResponse {
10
+ this['group_id'] = groupId;
11
+ return this;
12
+ }
13
+ public set groupId(groupId: string | undefined) {
14
+ this['group_id'] = groupId;
15
+ }
16
+ public get groupId() {
17
+ return this['group_id'];
18
+ }
19
+ }
@@ -0,0 +1,51 @@
1
+
2
+
3
+ export class DeleteDeploymentHostRequest {
4
+ private 'group_id': string | undefined;
5
+ private 'host_id': string | undefined;
6
+ private 'Content-Type': DeleteDeploymentHostRequestContentTypeEnum | undefined;
7
+ public constructor(groupId?: any, hostId?: any, contentType?: any) {
8
+ this['group_id'] = groupId;
9
+ this['host_id'] = hostId;
10
+ this['Content-Type'] = contentType;
11
+ }
12
+ public withGroupId(groupId: string): DeleteDeploymentHostRequest {
13
+ this['group_id'] = groupId;
14
+ return this;
15
+ }
16
+ public set groupId(groupId: string | undefined) {
17
+ this['group_id'] = groupId;
18
+ }
19
+ public get groupId() {
20
+ return this['group_id'];
21
+ }
22
+ public withHostId(hostId: string): DeleteDeploymentHostRequest {
23
+ this['host_id'] = hostId;
24
+ return this;
25
+ }
26
+ public set hostId(hostId: string | undefined) {
27
+ this['host_id'] = hostId;
28
+ }
29
+ public get hostId() {
30
+ return this['host_id'];
31
+ }
32
+ public withContentType(contentType: DeleteDeploymentHostRequestContentTypeEnum): DeleteDeploymentHostRequest {
33
+ this['Content-Type'] = contentType;
34
+ return this;
35
+ }
36
+ public set contentType(contentType: DeleteDeploymentHostRequestContentTypeEnum | undefined) {
37
+ this['Content-Type'] = contentType;
38
+ }
39
+ public get contentType() {
40
+ return this['Content-Type'];
41
+ }
42
+ }
43
+
44
+ /**
45
+ * @export
46
+ * @enum {string}
47
+ */
48
+ export enum DeleteDeploymentHostRequestContentTypeEnum {
49
+ APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
50
+ APPLICATION_JSON = 'application/json'
51
+ }
@@ -0,0 +1,19 @@
1
+
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+
4
+ export class DeleteDeploymentHostResponse extends SdkResponse {
5
+ private 'host_id'?: string | undefined;
6
+ public constructor() {
7
+ super();
8
+ }
9
+ public withHostId(hostId: string): DeleteDeploymentHostResponse {
10
+ this['host_id'] = hostId;
11
+ return this;
12
+ }
13
+ public set hostId(hostId: string | undefined) {
14
+ this['host_id'] = hostId;
15
+ }
16
+ public get hostId() {
17
+ return this['host_id'];
18
+ }
19
+ }
@@ -0,0 +1,78 @@
1
+
2
+
3
+ export class DeploymentGroup {
4
+ public name: string;
5
+ private 'region_name': string | undefined;
6
+ private 'project_id': string | undefined;
7
+ public os: DeploymentGroupOsEnum;
8
+ private 'slave_cluster_id'?: string | undefined;
9
+ public description?: string;
10
+ private 'is_proxy_mode'?: number | undefined;
11
+ public constructor(name?: any, regionName?: any, projectId?: any, os?: any) {
12
+ this['name'] = name;
13
+ this['region_name'] = regionName;
14
+ this['project_id'] = projectId;
15
+ this['os'] = os;
16
+ }
17
+ public withName(name: string): DeploymentGroup {
18
+ this['name'] = name;
19
+ return this;
20
+ }
21
+ public withRegionName(regionName: string): DeploymentGroup {
22
+ this['region_name'] = regionName;
23
+ return this;
24
+ }
25
+ public set regionName(regionName: string | undefined) {
26
+ this['region_name'] = regionName;
27
+ }
28
+ public get regionName() {
29
+ return this['region_name'];
30
+ }
31
+ public withProjectId(projectId: string): DeploymentGroup {
32
+ this['project_id'] = projectId;
33
+ return this;
34
+ }
35
+ public set projectId(projectId: string | undefined) {
36
+ this['project_id'] = projectId;
37
+ }
38
+ public get projectId() {
39
+ return this['project_id'];
40
+ }
41
+ public withOs(os: DeploymentGroupOsEnum): DeploymentGroup {
42
+ this['os'] = os;
43
+ return this;
44
+ }
45
+ public withSlaveClusterId(slaveClusterId: string): DeploymentGroup {
46
+ this['slave_cluster_id'] = slaveClusterId;
47
+ return this;
48
+ }
49
+ public set slaveClusterId(slaveClusterId: string | undefined) {
50
+ this['slave_cluster_id'] = slaveClusterId;
51
+ }
52
+ public get slaveClusterId() {
53
+ return this['slave_cluster_id'];
54
+ }
55
+ public withDescription(description: string): DeploymentGroup {
56
+ this['description'] = description;
57
+ return this;
58
+ }
59
+ public withIsProxyMode(isProxyMode: number): DeploymentGroup {
60
+ this['is_proxy_mode'] = isProxyMode;
61
+ return this;
62
+ }
63
+ public set isProxyMode(isProxyMode: number | undefined) {
64
+ this['is_proxy_mode'] = isProxyMode;
65
+ }
66
+ public get isProxyMode() {
67
+ return this['is_proxy_mode'];
68
+ }
69
+ }
70
+
71
+ /**
72
+ * @export
73
+ * @enum {string}
74
+ */
75
+ export enum DeploymentGroupOsEnum {
76
+ WINDOWS = 'windows',
77
+ LINUX = 'linux'
78
+ }