|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +/** |
| 4 | + * cloud_detect20251031 |
| 5 | + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
| 6 | + * |
| 7 | + * OpenAPI spec version: common-version |
| 8 | + * |
| 9 | + * |
| 10 | + * NOTE: This class is auto generated by the swagger code generator program. |
| 11 | + * https://github.com/swagger-api/swagger-codegen.git |
| 12 | + * Do not edit the class manually. |
| 13 | + */ |
| 14 | + |
| 15 | +import { Client, ClientConfig, Command, buildRequestConfigFromMetaPath, CommandOutput } from '@volcengine/sdk-core'; |
| 16 | + |
| 17 | +import { CreateTaskRequest } from './types/index'; |
| 18 | +import { CreateTaskResponse } from './types/index'; |
| 19 | +import { DeleteTaskRequest } from './types/index'; |
| 20 | +import { DeleteTaskResponse } from './types/index'; |
| 21 | +import { GetTaskRequest } from './types/index'; |
| 22 | +import { GetTaskResponse } from './types/index'; |
| 23 | +import { GetTaskResultRequest } from './types/index'; |
| 24 | +import { GetTaskResultResponse } from './types/index'; |
| 25 | +import { ListNodesRequest } from './types/index'; |
| 26 | +import { ListNodesResponse } from './types/index'; |
| 27 | +import { ListTaskRequest } from './types/index'; |
| 28 | +import { ListTaskResponse } from './types/index'; |
| 29 | +import { RestartTaskRequest } from './types/index'; |
| 30 | +import { RestartTaskResponse } from './types/index'; |
| 31 | +import { StopTaskRequest } from './types/index'; |
| 32 | +import { StopTaskResponse } from './types/index'; |
| 33 | +import { UpdateTaskRequest } from './types/index'; |
| 34 | +import { UpdateTaskResponse } from './types/index'; |
| 35 | + |
| 36 | +// ============================================================================ |
| 37 | +// Output Type Definitions |
| 38 | +// ============================================================================ |
| 39 | +export type CreateTaskCommandOutput = CommandOutput<CreateTaskResponse>; |
| 40 | +export type DeleteTaskCommandOutput = CommandOutput<DeleteTaskResponse>; |
| 41 | +export type GetTaskCommandOutput = CommandOutput<GetTaskResponse>; |
| 42 | +export type GetTaskResultCommandOutput = CommandOutput<GetTaskResultResponse>; |
| 43 | +export type ListNodesCommandOutput = CommandOutput<ListNodesResponse>; |
| 44 | +export type ListTaskCommandOutput = CommandOutput<ListTaskResponse>; |
| 45 | +export type RestartTaskCommandOutput = CommandOutput<RestartTaskResponse>; |
| 46 | +export type StopTaskCommandOutput = CommandOutput<StopTaskResponse>; |
| 47 | +export type UpdateTaskCommandOutput = CommandOutput<UpdateTaskResponse>; |
| 48 | + |
| 49 | +/** |
| 50 | + * CLOUDDETECT20251031Client Service Client |
| 51 | + */ |
| 52 | +export class CLOUDDETECT20251031Client extends Client { |
| 53 | + constructor(config: ClientConfig = {}) { |
| 54 | + super({ |
| 55 | + protocol: 'https', |
| 56 | + region: 'cn-beijing', |
| 57 | + ...config, |
| 58 | + }); |
| 59 | + } |
| 60 | +} |
| 61 | + |
| 62 | +/** |
| 63 | + * Command to CreateTask |
| 64 | + */ |
| 65 | +export class CreateTaskCommand extends Command< |
| 66 | + CreateTaskRequest, |
| 67 | + CreateTaskCommandOutput, |
| 68 | + 'CreateTaskCommand' |
| 69 | +> { |
| 70 | + static readonly metaPath = '/CreateTask/2025-10-31/cloud_detect/post/application_json/'; |
| 71 | + |
| 72 | + constructor(input: CreateTaskRequest) { |
| 73 | + super(input); |
| 74 | + this.requestConfig = buildRequestConfigFromMetaPath(CreateTaskCommand.metaPath); |
| 75 | + } |
| 76 | +} |
| 77 | +/** |
| 78 | + * Command to DeleteTask |
| 79 | + */ |
| 80 | +export class DeleteTaskCommand extends Command< |
| 81 | + DeleteTaskRequest, |
| 82 | + DeleteTaskCommandOutput, |
| 83 | + 'DeleteTaskCommand' |
| 84 | +> { |
| 85 | + static readonly metaPath = '/DeleteTask/2025-10-31/cloud_detect/post/application_json/'; |
| 86 | + |
| 87 | + constructor(input: DeleteTaskRequest) { |
| 88 | + super(input); |
| 89 | + this.requestConfig = buildRequestConfigFromMetaPath(DeleteTaskCommand.metaPath); |
| 90 | + } |
| 91 | +} |
| 92 | +/** |
| 93 | + * Command to GetTask |
| 94 | + */ |
| 95 | +export class GetTaskCommand extends Command< |
| 96 | + GetTaskRequest, |
| 97 | + GetTaskCommandOutput, |
| 98 | + 'GetTaskCommand' |
| 99 | +> { |
| 100 | + static readonly metaPath = '/GetTask/2025-10-31/cloud_detect/post/application_json/'; |
| 101 | + |
| 102 | + constructor(input: GetTaskRequest) { |
| 103 | + super(input); |
| 104 | + this.requestConfig = buildRequestConfigFromMetaPath(GetTaskCommand.metaPath); |
| 105 | + } |
| 106 | +} |
| 107 | +/** |
| 108 | + * Command to GetTaskResult |
| 109 | + */ |
| 110 | +export class GetTaskResultCommand extends Command< |
| 111 | + GetTaskResultRequest, |
| 112 | + GetTaskResultCommandOutput, |
| 113 | + 'GetTaskResultCommand' |
| 114 | +> { |
| 115 | + static readonly metaPath = '/GetTaskResult/2025-10-31/cloud_detect/post/application_json/'; |
| 116 | + |
| 117 | + constructor(input: GetTaskResultRequest) { |
| 118 | + super(input); |
| 119 | + this.requestConfig = buildRequestConfigFromMetaPath(GetTaskResultCommand.metaPath); |
| 120 | + } |
| 121 | +} |
| 122 | +/** |
| 123 | + * Command to ListNodes |
| 124 | + */ |
| 125 | +export class ListNodesCommand extends Command< |
| 126 | + ListNodesRequest, |
| 127 | + ListNodesCommandOutput, |
| 128 | + 'ListNodesCommand' |
| 129 | +> { |
| 130 | + static readonly metaPath = '/ListNodes/2025-10-31/cloud_detect/post/application_json/'; |
| 131 | + |
| 132 | + constructor(input: ListNodesRequest) { |
| 133 | + super(input); |
| 134 | + this.requestConfig = buildRequestConfigFromMetaPath(ListNodesCommand.metaPath); |
| 135 | + } |
| 136 | +} |
| 137 | +/** |
| 138 | + * Command to ListTask |
| 139 | + */ |
| 140 | +export class ListTaskCommand extends Command< |
| 141 | + ListTaskRequest, |
| 142 | + ListTaskCommandOutput, |
| 143 | + 'ListTaskCommand' |
| 144 | +> { |
| 145 | + static readonly metaPath = '/ListTask/2025-10-31/cloud_detect/post/application_json/'; |
| 146 | + |
| 147 | + constructor(input: ListTaskRequest) { |
| 148 | + super(input); |
| 149 | + this.requestConfig = buildRequestConfigFromMetaPath(ListTaskCommand.metaPath); |
| 150 | + } |
| 151 | +} |
| 152 | +/** |
| 153 | + * Command to RestartTask |
| 154 | + */ |
| 155 | +export class RestartTaskCommand extends Command< |
| 156 | + RestartTaskRequest, |
| 157 | + RestartTaskCommandOutput, |
| 158 | + 'RestartTaskCommand' |
| 159 | +> { |
| 160 | + static readonly metaPath = '/RestartTask/2025-10-31/cloud_detect/post/application_json/'; |
| 161 | + |
| 162 | + constructor(input: RestartTaskRequest) { |
| 163 | + super(input); |
| 164 | + this.requestConfig = buildRequestConfigFromMetaPath(RestartTaskCommand.metaPath); |
| 165 | + } |
| 166 | +} |
| 167 | +/** |
| 168 | + * Command to StopTask |
| 169 | + */ |
| 170 | +export class StopTaskCommand extends Command< |
| 171 | + StopTaskRequest, |
| 172 | + StopTaskCommandOutput, |
| 173 | + 'StopTaskCommand' |
| 174 | +> { |
| 175 | + static readonly metaPath = '/StopTask/2025-10-31/cloud_detect/post/application_json/'; |
| 176 | + |
| 177 | + constructor(input: StopTaskRequest) { |
| 178 | + super(input); |
| 179 | + this.requestConfig = buildRequestConfigFromMetaPath(StopTaskCommand.metaPath); |
| 180 | + } |
| 181 | +} |
| 182 | +/** |
| 183 | + * Command to UpdateTask |
| 184 | + */ |
| 185 | +export class UpdateTaskCommand extends Command< |
| 186 | + UpdateTaskRequest, |
| 187 | + UpdateTaskCommandOutput, |
| 188 | + 'UpdateTaskCommand' |
| 189 | +> { |
| 190 | + static readonly metaPath = '/UpdateTask/2025-10-31/cloud_detect/post/application_json/'; |
| 191 | + |
| 192 | + constructor(input: UpdateTaskRequest) { |
| 193 | + super(input); |
| 194 | + this.requestConfig = buildRequestConfigFromMetaPath(UpdateTaskCommand.metaPath); |
| 195 | + } |
| 196 | +} |
| 197 | + |
| 198 | +export default { |
| 199 | + CLOUDDETECT20251031Client, |
| 200 | + CreateTaskCommand, |
| 201 | + DeleteTaskCommand, |
| 202 | + GetTaskCommand, |
| 203 | + GetTaskResultCommand, |
| 204 | + ListNodesCommand, |
| 205 | + ListTaskCommand, |
| 206 | + RestartTaskCommand, |
| 207 | + StopTaskCommand, |
| 208 | + UpdateTaskCommand, |
| 209 | +}; |
0 commit comments