|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +/** |
| 4 | + * cloud_detect |
| 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 { DeleteTaskRequest } from './types/index'; |
| 18 | +import { DeleteTaskResponse } from './types/index'; |
| 19 | +import { GetTaskRequest } from './types/index'; |
| 20 | +import { GetTaskResponse } from './types/index'; |
| 21 | +import { GetTaskResultRequest } from './types/index'; |
| 22 | +import { GetTaskResultResponse } from './types/index'; |
| 23 | +import { ListNodesRequest } from './types/index'; |
| 24 | +import { ListNodesResponse } from './types/index'; |
| 25 | +import { ListTaskRequest } from './types/index'; |
| 26 | +import { ListTaskResponse } from './types/index'; |
| 27 | +import { RestartTaskRequest } from './types/index'; |
| 28 | +import { RestartTaskResponse } from './types/index'; |
| 29 | +import { StopTaskRequest } from './types/index'; |
| 30 | +import { StopTaskResponse } from './types/index'; |
| 31 | + |
| 32 | +// ============================================================================ |
| 33 | +// Output Type Definitions |
| 34 | +// ============================================================================ |
| 35 | +export type DeleteTaskCommandOutput = CommandOutput<DeleteTaskResponse>; |
| 36 | +export type GetTaskCommandOutput = CommandOutput<GetTaskResponse>; |
| 37 | +export type GetTaskResultCommandOutput = CommandOutput<GetTaskResultResponse>; |
| 38 | +export type ListNodesCommandOutput = CommandOutput<ListNodesResponse>; |
| 39 | +export type ListTaskCommandOutput = CommandOutput<ListTaskResponse>; |
| 40 | +export type RestartTaskCommandOutput = CommandOutput<RestartTaskResponse>; |
| 41 | +export type StopTaskCommandOutput = CommandOutput<StopTaskResponse>; |
| 42 | + |
| 43 | +// ============================================================================ |
| 44 | +// CommandOutputMap Extensions via Declaration Merging |
| 45 | +// ============================================================================ |
| 46 | +declare module '@volcengine/sdk-core' { |
| 47 | + interface CommandOutputMap { |
| 48 | + DeleteTaskCommand: DeleteTaskCommandOutput; |
| 49 | + GetTaskCommand: GetTaskCommandOutput; |
| 50 | + GetTaskResultCommand: GetTaskResultCommandOutput; |
| 51 | + ListNodesCommand: ListNodesCommandOutput; |
| 52 | + ListTaskCommand: ListTaskCommandOutput; |
| 53 | + RestartTaskCommand: RestartTaskCommandOutput; |
| 54 | + StopTaskCommand: StopTaskCommandOutput; |
| 55 | + } |
| 56 | +} |
| 57 | + |
| 58 | +/** |
| 59 | + * CLOUDDETECTClient Service Client |
| 60 | + */ |
| 61 | +export class CLOUDDETECTClient extends Client { |
| 62 | + constructor(config: ClientConfig = {}) { |
| 63 | + super({ |
| 64 | + protocol: 'https', |
| 65 | + region: 'cn-beijing', |
| 66 | + ...config, |
| 67 | + }); |
| 68 | + } |
| 69 | +} |
| 70 | + |
| 71 | +/** |
| 72 | + * Command to DeleteTask |
| 73 | + */ |
| 74 | +export class DeleteTaskCommand extends Command< |
| 75 | + DeleteTaskRequest, |
| 76 | + DeleteTaskCommandOutput, |
| 77 | + 'DeleteTaskCommand' |
| 78 | +> { |
| 79 | + static readonly metaPath = '/DeleteTask/2023-08-31/cloud_detect/post/application_json/'; |
| 80 | + |
| 81 | + constructor(input: DeleteTaskRequest) { |
| 82 | + super(input); |
| 83 | + this.requestConfig = buildRequestConfigFromMetaPath(DeleteTaskCommand.metaPath); |
| 84 | + } |
| 85 | +} |
| 86 | +/** |
| 87 | + * Command to GetTask |
| 88 | + */ |
| 89 | +export class GetTaskCommand extends Command< |
| 90 | + GetTaskRequest, |
| 91 | + GetTaskCommandOutput, |
| 92 | + 'GetTaskCommand' |
| 93 | +> { |
| 94 | + static readonly metaPath = '/GetTask/2023-08-31/cloud_detect/post/application_json/'; |
| 95 | + |
| 96 | + constructor(input: GetTaskRequest) { |
| 97 | + super(input); |
| 98 | + this.requestConfig = buildRequestConfigFromMetaPath(GetTaskCommand.metaPath); |
| 99 | + } |
| 100 | +} |
| 101 | +/** |
| 102 | + * Command to GetTaskResult |
| 103 | + */ |
| 104 | +export class GetTaskResultCommand extends Command< |
| 105 | + GetTaskResultRequest, |
| 106 | + GetTaskResultCommandOutput, |
| 107 | + 'GetTaskResultCommand' |
| 108 | +> { |
| 109 | + static readonly metaPath = '/GetTaskResult/2023-08-31/cloud_detect/post/application_json/'; |
| 110 | + |
| 111 | + constructor(input: GetTaskResultRequest) { |
| 112 | + super(input); |
| 113 | + this.requestConfig = buildRequestConfigFromMetaPath(GetTaskResultCommand.metaPath); |
| 114 | + } |
| 115 | +} |
| 116 | +/** |
| 117 | + * Command to ListNodes |
| 118 | + */ |
| 119 | +export class ListNodesCommand extends Command< |
| 120 | + ListNodesRequest, |
| 121 | + ListNodesCommandOutput, |
| 122 | + 'ListNodesCommand' |
| 123 | +> { |
| 124 | + static readonly metaPath = '/ListNodes/2023-08-31/cloud_detect/post/application_json/'; |
| 125 | + |
| 126 | + constructor(input: ListNodesRequest) { |
| 127 | + super(input); |
| 128 | + this.requestConfig = buildRequestConfigFromMetaPath(ListNodesCommand.metaPath); |
| 129 | + } |
| 130 | +} |
| 131 | +/** |
| 132 | + * Command to ListTask |
| 133 | + */ |
| 134 | +export class ListTaskCommand extends Command< |
| 135 | + ListTaskRequest, |
| 136 | + ListTaskCommandOutput, |
| 137 | + 'ListTaskCommand' |
| 138 | +> { |
| 139 | + static readonly metaPath = '/ListTask/2023-08-31/cloud_detect/post/application_json/'; |
| 140 | + |
| 141 | + constructor(input: ListTaskRequest) { |
| 142 | + super(input); |
| 143 | + this.requestConfig = buildRequestConfigFromMetaPath(ListTaskCommand.metaPath); |
| 144 | + } |
| 145 | +} |
| 146 | +/** |
| 147 | + * Command to RestartTask |
| 148 | + */ |
| 149 | +export class RestartTaskCommand extends Command< |
| 150 | + RestartTaskRequest, |
| 151 | + RestartTaskCommandOutput, |
| 152 | + 'RestartTaskCommand' |
| 153 | +> { |
| 154 | + static readonly metaPath = '/RestartTask/2023-08-31/cloud_detect/post/application_json/'; |
| 155 | + |
| 156 | + constructor(input: RestartTaskRequest) { |
| 157 | + super(input); |
| 158 | + this.requestConfig = buildRequestConfigFromMetaPath(RestartTaskCommand.metaPath); |
| 159 | + } |
| 160 | +} |
| 161 | +/** |
| 162 | + * Command to StopTask |
| 163 | + */ |
| 164 | +export class StopTaskCommand extends Command< |
| 165 | + StopTaskRequest, |
| 166 | + StopTaskCommandOutput, |
| 167 | + 'StopTaskCommand' |
| 168 | +> { |
| 169 | + static readonly metaPath = '/StopTask/2023-08-31/cloud_detect/post/application_json/'; |
| 170 | + |
| 171 | + constructor(input: StopTaskRequest) { |
| 172 | + super(input); |
| 173 | + this.requestConfig = buildRequestConfigFromMetaPath(StopTaskCommand.metaPath); |
| 174 | + } |
| 175 | +} |
| 176 | + |
| 177 | +export default { |
| 178 | + CLOUDDETECTClient, |
| 179 | + DeleteTaskCommand, |
| 180 | + GetTaskCommand, |
| 181 | + GetTaskResultCommand, |
| 182 | + ListNodesCommand, |
| 183 | + ListTaskCommand, |
| 184 | + RestartTaskCommand, |
| 185 | + StopTaskCommand, |
| 186 | +}; |
0 commit comments