@huaweicloud/huaweicloud-sdk-codeartsdeploy 3.1.44 → 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,160 @@
1
+ import { PermissionGroupDetail } from './PermissionGroupDetail';
2
+ import { UserInfo } from './UserInfo';
3
+
4
+
5
+ export class DeploymentGroupDetail {
6
+ private 'group_id'?: string | undefined;
7
+ private 'created_time'?: string | undefined;
8
+ private 'updated_time'?: string | undefined;
9
+ private 'host_count'?: number | undefined;
10
+ private 'project_name'?: string | undefined;
11
+ public name?: string;
12
+ private 'region_name'?: string | undefined;
13
+ private 'project_id'?: string | undefined;
14
+ public os?: string;
15
+ private 'auto_connection_test_switch'?: number | undefined;
16
+ private 'slave_cluster_id'?: string | undefined;
17
+ private 'nick_name'?: string | undefined;
18
+ private 'created_by'?: UserInfo | undefined;
19
+ private 'updated_by'?: UserInfo | undefined;
20
+ public description?: string;
21
+ public permission?: PermissionGroupDetail;
22
+ public constructor() {
23
+ }
24
+ public withGroupId(groupId: string): DeploymentGroupDetail {
25
+ this['group_id'] = groupId;
26
+ return this;
27
+ }
28
+ public set groupId(groupId: string | undefined) {
29
+ this['group_id'] = groupId;
30
+ }
31
+ public get groupId() {
32
+ return this['group_id'];
33
+ }
34
+ public withCreatedTime(createdTime: string): DeploymentGroupDetail {
35
+ this['created_time'] = createdTime;
36
+ return this;
37
+ }
38
+ public set createdTime(createdTime: string | undefined) {
39
+ this['created_time'] = createdTime;
40
+ }
41
+ public get createdTime() {
42
+ return this['created_time'];
43
+ }
44
+ public withUpdatedTime(updatedTime: string): DeploymentGroupDetail {
45
+ this['updated_time'] = updatedTime;
46
+ return this;
47
+ }
48
+ public set updatedTime(updatedTime: string | undefined) {
49
+ this['updated_time'] = updatedTime;
50
+ }
51
+ public get updatedTime() {
52
+ return this['updated_time'];
53
+ }
54
+ public withHostCount(hostCount: number): DeploymentGroupDetail {
55
+ this['host_count'] = hostCount;
56
+ return this;
57
+ }
58
+ public set hostCount(hostCount: number | undefined) {
59
+ this['host_count'] = hostCount;
60
+ }
61
+ public get hostCount() {
62
+ return this['host_count'];
63
+ }
64
+ public withProjectName(projectName: string): DeploymentGroupDetail {
65
+ this['project_name'] = projectName;
66
+ return this;
67
+ }
68
+ public set projectName(projectName: string | undefined) {
69
+ this['project_name'] = projectName;
70
+ }
71
+ public get projectName() {
72
+ return this['project_name'];
73
+ }
74
+ public withName(name: string): DeploymentGroupDetail {
75
+ this['name'] = name;
76
+ return this;
77
+ }
78
+ public withRegionName(regionName: string): DeploymentGroupDetail {
79
+ this['region_name'] = regionName;
80
+ return this;
81
+ }
82
+ public set regionName(regionName: string | undefined) {
83
+ this['region_name'] = regionName;
84
+ }
85
+ public get regionName() {
86
+ return this['region_name'];
87
+ }
88
+ public withProjectId(projectId: string): DeploymentGroupDetail {
89
+ this['project_id'] = projectId;
90
+ return this;
91
+ }
92
+ public set projectId(projectId: string | undefined) {
93
+ this['project_id'] = projectId;
94
+ }
95
+ public get projectId() {
96
+ return this['project_id'];
97
+ }
98
+ public withOs(os: string): DeploymentGroupDetail {
99
+ this['os'] = os;
100
+ return this;
101
+ }
102
+ public withAutoConnectionTestSwitch(autoConnectionTestSwitch: number): DeploymentGroupDetail {
103
+ this['auto_connection_test_switch'] = autoConnectionTestSwitch;
104
+ return this;
105
+ }
106
+ public set autoConnectionTestSwitch(autoConnectionTestSwitch: number | undefined) {
107
+ this['auto_connection_test_switch'] = autoConnectionTestSwitch;
108
+ }
109
+ public get autoConnectionTestSwitch() {
110
+ return this['auto_connection_test_switch'];
111
+ }
112
+ public withSlaveClusterId(slaveClusterId: string): DeploymentGroupDetail {
113
+ this['slave_cluster_id'] = slaveClusterId;
114
+ return this;
115
+ }
116
+ public set slaveClusterId(slaveClusterId: string | undefined) {
117
+ this['slave_cluster_id'] = slaveClusterId;
118
+ }
119
+ public get slaveClusterId() {
120
+ return this['slave_cluster_id'];
121
+ }
122
+ public withNickName(nickName: string): DeploymentGroupDetail {
123
+ this['nick_name'] = nickName;
124
+ return this;
125
+ }
126
+ public set nickName(nickName: string | undefined) {
127
+ this['nick_name'] = nickName;
128
+ }
129
+ public get nickName() {
130
+ return this['nick_name'];
131
+ }
132
+ public withCreatedBy(createdBy: UserInfo): DeploymentGroupDetail {
133
+ this['created_by'] = createdBy;
134
+ return this;
135
+ }
136
+ public set createdBy(createdBy: UserInfo | undefined) {
137
+ this['created_by'] = createdBy;
138
+ }
139
+ public get createdBy() {
140
+ return this['created_by'];
141
+ }
142
+ public withUpdatedBy(updatedBy: UserInfo): DeploymentGroupDetail {
143
+ this['updated_by'] = updatedBy;
144
+ return this;
145
+ }
146
+ public set updatedBy(updatedBy: UserInfo | undefined) {
147
+ this['updated_by'] = updatedBy;
148
+ }
149
+ public get updatedBy() {
150
+ return this['updated_by'];
151
+ }
152
+ public withDescription(description: string): DeploymentGroupDetail {
153
+ this['description'] = description;
154
+ return this;
155
+ }
156
+ public withPermission(permission: PermissionGroupDetail): DeploymentGroupDetail {
157
+ this['permission'] = permission;
158
+ return this;
159
+ }
160
+ }
@@ -0,0 +1,49 @@
1
+
2
+
3
+ export class DeploymentGroupUpdateRequest {
4
+ public name: string;
5
+ public description?: string;
6
+ private 'slave_cluster_id'?: string | undefined;
7
+ private 'auto_connection_test_switch'?: DeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum | undefined;
8
+ public constructor(name?: any) {
9
+ this['name'] = name;
10
+ }
11
+ public withName(name: string): DeploymentGroupUpdateRequest {
12
+ this['name'] = name;
13
+ return this;
14
+ }
15
+ public withDescription(description: string): DeploymentGroupUpdateRequest {
16
+ this['description'] = description;
17
+ return this;
18
+ }
19
+ public withSlaveClusterId(slaveClusterId: string): DeploymentGroupUpdateRequest {
20
+ this['slave_cluster_id'] = slaveClusterId;
21
+ return this;
22
+ }
23
+ public set slaveClusterId(slaveClusterId: string | undefined) {
24
+ this['slave_cluster_id'] = slaveClusterId;
25
+ }
26
+ public get slaveClusterId() {
27
+ return this['slave_cluster_id'];
28
+ }
29
+ public withAutoConnectionTestSwitch(autoConnectionTestSwitch: DeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum): DeploymentGroupUpdateRequest {
30
+ this['auto_connection_test_switch'] = autoConnectionTestSwitch;
31
+ return this;
32
+ }
33
+ public set autoConnectionTestSwitch(autoConnectionTestSwitch: DeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum | undefined) {
34
+ this['auto_connection_test_switch'] = autoConnectionTestSwitch;
35
+ }
36
+ public get autoConnectionTestSwitch() {
37
+ return this['auto_connection_test_switch'];
38
+ }
39
+ }
40
+
41
+ /**
42
+ * @export
43
+ * @enum {string}
44
+ */
45
+ export enum DeploymentGroupUpdateRequestAutoConnectionTestSwitchEnum {
46
+ NUMBER_0 = 0,
47
+ NUMBER_1 = 1,
48
+ NUMBER_2 = 2
49
+ }
@@ -0,0 +1,86 @@
1
+ import { DeploymentHostAuthorizationBody } from './DeploymentHostAuthorizationBody';
2
+
3
+
4
+ export class DeploymentHost {
5
+ private 'host_name': string | undefined;
6
+ public ip: string;
7
+ public port: number;
8
+ public os: DeploymentHostOsEnum;
9
+ private 'as_proxy': boolean | undefined;
10
+ private 'proxy_host_id'?: string | undefined;
11
+ public authorization: DeploymentHostAuthorizationBody;
12
+ private 'install_icagent'?: boolean | undefined;
13
+ public constructor(hostName?: any, ip?: any, port?: any, os?: any, asProxy?: any, authorization?: any) {
14
+ this['host_name'] = hostName;
15
+ this['ip'] = ip;
16
+ this['port'] = port;
17
+ this['os'] = os;
18
+ this['as_proxy'] = asProxy;
19
+ this['authorization'] = authorization;
20
+ }
21
+ public withHostName(hostName: string): DeploymentHost {
22
+ this['host_name'] = hostName;
23
+ return this;
24
+ }
25
+ public set hostName(hostName: string | undefined) {
26
+ this['host_name'] = hostName;
27
+ }
28
+ public get hostName() {
29
+ return this['host_name'];
30
+ }
31
+ public withIp(ip: string): DeploymentHost {
32
+ this['ip'] = ip;
33
+ return this;
34
+ }
35
+ public withPort(port: number): DeploymentHost {
36
+ this['port'] = port;
37
+ return this;
38
+ }
39
+ public withOs(os: DeploymentHostOsEnum): DeploymentHost {
40
+ this['os'] = os;
41
+ return this;
42
+ }
43
+ public withAsProxy(asProxy: boolean): DeploymentHost {
44
+ this['as_proxy'] = asProxy;
45
+ return this;
46
+ }
47
+ public set asProxy(asProxy: boolean | undefined) {
48
+ this['as_proxy'] = asProxy;
49
+ }
50
+ public get asProxy() {
51
+ return this['as_proxy'];
52
+ }
53
+ public withProxyHostId(proxyHostId: string): DeploymentHost {
54
+ this['proxy_host_id'] = proxyHostId;
55
+ return this;
56
+ }
57
+ public set proxyHostId(proxyHostId: string | undefined) {
58
+ this['proxy_host_id'] = proxyHostId;
59
+ }
60
+ public get proxyHostId() {
61
+ return this['proxy_host_id'];
62
+ }
63
+ public withAuthorization(authorization: DeploymentHostAuthorizationBody): DeploymentHost {
64
+ this['authorization'] = authorization;
65
+ return this;
66
+ }
67
+ public withInstallIcagent(installIcagent: boolean): DeploymentHost {
68
+ this['install_icagent'] = installIcagent;
69
+ return this;
70
+ }
71
+ public set installIcagent(installIcagent: boolean | undefined) {
72
+ this['install_icagent'] = installIcagent;
73
+ }
74
+ public get installIcagent() {
75
+ return this['install_icagent'];
76
+ }
77
+ }
78
+
79
+ /**
80
+ * @export
81
+ * @enum {string}
82
+ */
83
+ export enum DeploymentHostOsEnum {
84
+ WINDOWS = 'windows',
85
+ LINUX = 'linux'
86
+ }
@@ -0,0 +1,49 @@
1
+
2
+
3
+ export class DeploymentHostAuthorizationBody {
4
+ public username: string;
5
+ public password?: string;
6
+ private 'private_key'?: string | undefined;
7
+ private 'trusted_type': DeploymentHostAuthorizationBodyTrustedTypeEnum | undefined;
8
+ public constructor(username?: any, trustedType?: any) {
9
+ this['username'] = username;
10
+ this['trusted_type'] = trustedType;
11
+ }
12
+ public withUsername(username: string): DeploymentHostAuthorizationBody {
13
+ this['username'] = username;
14
+ return this;
15
+ }
16
+ public withPassword(password: string): DeploymentHostAuthorizationBody {
17
+ this['password'] = password;
18
+ return this;
19
+ }
20
+ public withPrivateKey(privateKey: string): DeploymentHostAuthorizationBody {
21
+ this['private_key'] = privateKey;
22
+ return this;
23
+ }
24
+ public set privateKey(privateKey: string | undefined) {
25
+ this['private_key'] = privateKey;
26
+ }
27
+ public get privateKey() {
28
+ return this['private_key'];
29
+ }
30
+ public withTrustedType(trustedType: DeploymentHostAuthorizationBodyTrustedTypeEnum): DeploymentHostAuthorizationBody {
31
+ this['trusted_type'] = trustedType;
32
+ return this;
33
+ }
34
+ public set trustedType(trustedType: DeploymentHostAuthorizationBodyTrustedTypeEnum | undefined) {
35
+ this['trusted_type'] = trustedType;
36
+ }
37
+ public get trustedType() {
38
+ return this['trusted_type'];
39
+ }
40
+ }
41
+
42
+ /**
43
+ * @export
44
+ * @enum {string}
45
+ */
46
+ export enum DeploymentHostAuthorizationBodyTrustedTypeEnum {
47
+ NUMBER_0 = 0,
48
+ NUMBER_1 = 1
49
+ }
@@ -0,0 +1,270 @@
1
+ import { DeploymentHostAuthorizationBody } from './DeploymentHostAuthorizationBody';
2
+ import { DeploymentHostInfo } from './DeploymentHostInfo';
3
+ import { PermissionHostDetail } from './PermissionHostDetail';
4
+
5
+
6
+ export class DeploymentHostDetail {
7
+ private 'group_id': string | undefined;
8
+ private 'host_name': string | undefined;
9
+ public ip: string;
10
+ public port: number;
11
+ public os: DeploymentHostDetailOsEnum;
12
+ private 'as_proxy': boolean | undefined;
13
+ private 'proxy_host_id'?: string | undefined;
14
+ public authorization: DeploymentHostAuthorizationBody;
15
+ private 'install_icagent'?: boolean | undefined;
16
+ private 'host_id'?: string | undefined;
17
+ private 'proxy_host'?: DeploymentHostDetail | undefined;
18
+ private 'group_name'?: string | undefined;
19
+ private 'project_id'?: string | undefined;
20
+ private 'project_name'?: string | undefined;
21
+ public permission?: PermissionHostDetail;
22
+ private 'update_time'?: string | undefined;
23
+ private 'lastest_connection_time'?: string | undefined;
24
+ private 'connection_status'?: string | undefined;
25
+ private 'owner_name'?: string | undefined;
26
+ private 'updator_id'?: string | undefined;
27
+ private 'create_time'?: string | undefined;
28
+ private 'nick_name'?: string | undefined;
29
+ private 'owner_id'?: string | undefined;
30
+ private 'updator_name'?: string | undefined;
31
+ private 'connection_result'?: string | undefined;
32
+ public constructor(groupId?: any, hostName?: any, ip?: any, port?: any, os?: any, asProxy?: any, authorization?: any) {
33
+ this['group_id'] = groupId;
34
+ this['host_name'] = hostName;
35
+ this['ip'] = ip;
36
+ this['port'] = port;
37
+ this['os'] = os;
38
+ this['as_proxy'] = asProxy;
39
+ this['authorization'] = authorization;
40
+ }
41
+ public withGroupId(groupId: string): DeploymentHostDetail {
42
+ this['group_id'] = groupId;
43
+ return this;
44
+ }
45
+ public set groupId(groupId: string | undefined) {
46
+ this['group_id'] = groupId;
47
+ }
48
+ public get groupId() {
49
+ return this['group_id'];
50
+ }
51
+ public withHostName(hostName: string): DeploymentHostDetail {
52
+ this['host_name'] = hostName;
53
+ return this;
54
+ }
55
+ public set hostName(hostName: string | undefined) {
56
+ this['host_name'] = hostName;
57
+ }
58
+ public get hostName() {
59
+ return this['host_name'];
60
+ }
61
+ public withIp(ip: string): DeploymentHostDetail {
62
+ this['ip'] = ip;
63
+ return this;
64
+ }
65
+ public withPort(port: number): DeploymentHostDetail {
66
+ this['port'] = port;
67
+ return this;
68
+ }
69
+ public withOs(os: DeploymentHostDetailOsEnum): DeploymentHostDetail {
70
+ this['os'] = os;
71
+ return this;
72
+ }
73
+ public withAsProxy(asProxy: boolean): DeploymentHostDetail {
74
+ this['as_proxy'] = asProxy;
75
+ return this;
76
+ }
77
+ public set asProxy(asProxy: boolean | undefined) {
78
+ this['as_proxy'] = asProxy;
79
+ }
80
+ public get asProxy() {
81
+ return this['as_proxy'];
82
+ }
83
+ public withProxyHostId(proxyHostId: string): DeploymentHostDetail {
84
+ this['proxy_host_id'] = proxyHostId;
85
+ return this;
86
+ }
87
+ public set proxyHostId(proxyHostId: string | undefined) {
88
+ this['proxy_host_id'] = proxyHostId;
89
+ }
90
+ public get proxyHostId() {
91
+ return this['proxy_host_id'];
92
+ }
93
+ public withAuthorization(authorization: DeploymentHostAuthorizationBody): DeploymentHostDetail {
94
+ this['authorization'] = authorization;
95
+ return this;
96
+ }
97
+ public withInstallIcagent(installIcagent: boolean): DeploymentHostDetail {
98
+ this['install_icagent'] = installIcagent;
99
+ return this;
100
+ }
101
+ public set installIcagent(installIcagent: boolean | undefined) {
102
+ this['install_icagent'] = installIcagent;
103
+ }
104
+ public get installIcagent() {
105
+ return this['install_icagent'];
106
+ }
107
+ public withHostId(hostId: string): DeploymentHostDetail {
108
+ this['host_id'] = hostId;
109
+ return this;
110
+ }
111
+ public set hostId(hostId: string | undefined) {
112
+ this['host_id'] = hostId;
113
+ }
114
+ public get hostId() {
115
+ return this['host_id'];
116
+ }
117
+ public withProxyHost(proxyHost: DeploymentHostDetail): DeploymentHostDetail {
118
+ this['proxy_host'] = proxyHost;
119
+ return this;
120
+ }
121
+ public set proxyHost(proxyHost: DeploymentHostDetail | undefined) {
122
+ this['proxy_host'] = proxyHost;
123
+ }
124
+ public get proxyHost() {
125
+ return this['proxy_host'];
126
+ }
127
+ public withGroupName(groupName: string): DeploymentHostDetail {
128
+ this['group_name'] = groupName;
129
+ return this;
130
+ }
131
+ public set groupName(groupName: string | undefined) {
132
+ this['group_name'] = groupName;
133
+ }
134
+ public get groupName() {
135
+ return this['group_name'];
136
+ }
137
+ public withProjectId(projectId: string): DeploymentHostDetail {
138
+ this['project_id'] = projectId;
139
+ return this;
140
+ }
141
+ public set projectId(projectId: string | undefined) {
142
+ this['project_id'] = projectId;
143
+ }
144
+ public get projectId() {
145
+ return this['project_id'];
146
+ }
147
+ public withProjectName(projectName: string): DeploymentHostDetail {
148
+ this['project_name'] = projectName;
149
+ return this;
150
+ }
151
+ public set projectName(projectName: string | undefined) {
152
+ this['project_name'] = projectName;
153
+ }
154
+ public get projectName() {
155
+ return this['project_name'];
156
+ }
157
+ public withPermission(permission: PermissionHostDetail): DeploymentHostDetail {
158
+ this['permission'] = permission;
159
+ return this;
160
+ }
161
+ public withUpdateTime(updateTime: string): DeploymentHostDetail {
162
+ this['update_time'] = updateTime;
163
+ return this;
164
+ }
165
+ public set updateTime(updateTime: string | undefined) {
166
+ this['update_time'] = updateTime;
167
+ }
168
+ public get updateTime() {
169
+ return this['update_time'];
170
+ }
171
+ public withLastestConnectionTime(lastestConnectionTime: string): DeploymentHostDetail {
172
+ this['lastest_connection_time'] = lastestConnectionTime;
173
+ return this;
174
+ }
175
+ public set lastestConnectionTime(lastestConnectionTime: string | undefined) {
176
+ this['lastest_connection_time'] = lastestConnectionTime;
177
+ }
178
+ public get lastestConnectionTime() {
179
+ return this['lastest_connection_time'];
180
+ }
181
+ public withConnectionStatus(connectionStatus: string): DeploymentHostDetail {
182
+ this['connection_status'] = connectionStatus;
183
+ return this;
184
+ }
185
+ public set connectionStatus(connectionStatus: string | undefined) {
186
+ this['connection_status'] = connectionStatus;
187
+ }
188
+ public get connectionStatus() {
189
+ return this['connection_status'];
190
+ }
191
+ public withOwnerName(ownerName: string): DeploymentHostDetail {
192
+ this['owner_name'] = ownerName;
193
+ return this;
194
+ }
195
+ public set ownerName(ownerName: string | undefined) {
196
+ this['owner_name'] = ownerName;
197
+ }
198
+ public get ownerName() {
199
+ return this['owner_name'];
200
+ }
201
+ public withUpdatorId(updatorId: string): DeploymentHostDetail {
202
+ this['updator_id'] = updatorId;
203
+ return this;
204
+ }
205
+ public set updatorId(updatorId: string | undefined) {
206
+ this['updator_id'] = updatorId;
207
+ }
208
+ public get updatorId() {
209
+ return this['updator_id'];
210
+ }
211
+ public withCreateTime(createTime: string): DeploymentHostDetail {
212
+ this['create_time'] = createTime;
213
+ return this;
214
+ }
215
+ public set createTime(createTime: string | undefined) {
216
+ this['create_time'] = createTime;
217
+ }
218
+ public get createTime() {
219
+ return this['create_time'];
220
+ }
221
+ public withNickName(nickName: string): DeploymentHostDetail {
222
+ this['nick_name'] = nickName;
223
+ return this;
224
+ }
225
+ public set nickName(nickName: string | undefined) {
226
+ this['nick_name'] = nickName;
227
+ }
228
+ public get nickName() {
229
+ return this['nick_name'];
230
+ }
231
+ public withOwnerId(ownerId: string): DeploymentHostDetail {
232
+ this['owner_id'] = ownerId;
233
+ return this;
234
+ }
235
+ public set ownerId(ownerId: string | undefined) {
236
+ this['owner_id'] = ownerId;
237
+ }
238
+ public get ownerId() {
239
+ return this['owner_id'];
240
+ }
241
+ public withUpdatorName(updatorName: string): DeploymentHostDetail {
242
+ this['updator_name'] = updatorName;
243
+ return this;
244
+ }
245
+ public set updatorName(updatorName: string | undefined) {
246
+ this['updator_name'] = updatorName;
247
+ }
248
+ public get updatorName() {
249
+ return this['updator_name'];
250
+ }
251
+ public withConnectionResult(connectionResult: string): DeploymentHostDetail {
252
+ this['connection_result'] = connectionResult;
253
+ return this;
254
+ }
255
+ public set connectionResult(connectionResult: string | undefined) {
256
+ this['connection_result'] = connectionResult;
257
+ }
258
+ public get connectionResult() {
259
+ return this['connection_result'];
260
+ }
261
+ }
262
+
263
+ /**
264
+ * @export
265
+ * @enum {string}
266
+ */
267
+ export enum DeploymentHostDetailOsEnum {
268
+ WINDOWS = 'windows',
269
+ LINUX = 'linux'
270
+ }