import * as API from "@distilled.cloud/core/api"; // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-tencentcloud/specs///api.json). Do not edit. import * as S from "@distilled.cloud/core/schema-lite"; import * as __L from "@distilled.cloud/core/schema-lite"; import type * as Redacted from "effect/Redacted"; import { TencentCloudServiceErrors } from "../errors.ts"; import { TencentCloudProtocol, type TencentCloudOpError, type TencentCloudOpContext, } from "../protocol.ts"; import * as Retry from "../retry.ts"; import * as T from "../traits.ts"; // Schema table, filled on first reach (see __S at the end). const __s: any[] = []; export type { TencentCloudOpError, TencentCloudOpContext }; /** Span facts shared by every operation (com.distilled.telemetry#service). */ const TELEMETRY = { system: "tencentcloud-api", responseHeaders: [ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" }, { header: "request-id", name: "http.response.header.request-id", transform: "list" }, ], prefix: "TencentCloud", service: "batch", templates: false, propagate: "w3c", } as const; export type StringList = Array; export interface LoginSettings { Password?: string | Redacted.Redacted | undefined; KeyIds?: StringList | undefined; KeepImageLogin?: string | undefined; } export interface Instance { InstanceId: string; ImageId?: string | undefined; LoginSettings?: LoginSettings | undefined; } export type InstanceList = Array; export interface AttachInstancesRequest { EnvId: string; Instances: InstanceList; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface AttachInstancesResponse { RequestId?: string | undefined; } export interface SystemDisk { DiskType?: string | undefined; DiskId?: string | undefined; DiskSize?: number | undefined; CdcId?: string | null | undefined; DiskName?: string | undefined; Encrypt?: boolean | undefined; KmsKeyId?: string | undefined; } export interface DataDisk { DiskSize: number; DiskType?: string | undefined; DiskId?: string | undefined; DeleteWithInstance?: boolean | undefined; SnapshotId?: string | undefined; Encrypt?: boolean | undefined; KmsKeyId?: string | null | undefined; ThroughputPerformance?: number | null | undefined; CdcId?: string | null | undefined; BurstPerformance?: boolean | undefined; DiskName?: string | undefined; } export type DataDiskList = Array; export interface VirtualPrivateCloud { VpcId: string; SubnetId: string; AsVpcGateway?: boolean | undefined; PrivateIpAddresses?: StringList | undefined; Ipv6AddressCount?: number | undefined; } export interface InternetAccessible { InternetChargeType?: string | undefined; InternetMaxBandwidthOut?: number | undefined; PublicIpAssigned?: boolean | undefined; BandwidthPackageId?: string | undefined; InternetServiceProvider?: string | undefined; IPv4AddressType?: string | undefined; IPv6AddressType?: string | undefined; AntiDDoSPackageId?: string | undefined; } export interface RunSecurityServiceEnabled { Enabled?: boolean | undefined; } export type RunMonitorServiceEnabled = RunSecurityServiceEnabled; export type RunAutomationServiceEnabled = RunSecurityServiceEnabled; export interface EnhancedService { SecurityService?: RunSecurityServiceEnabled | undefined; MonitorService?: RunSecurityServiceEnabled | undefined; AutomationService?: RunSecurityServiceEnabled | undefined; } export interface SpotMarketOptions { MaxPrice: string; SpotInstanceType?: string | undefined; } export interface InstanceMarketOptionsRequest { SpotOptions: SpotMarketOptions; MarketType?: string | undefined; } export interface InstanceTypeOptions { CPU: number; Memory: number; InstanceCategories?: StringList | undefined; } export type VirtualPrivateCloudList = Array; export interface EnvData { InstanceType?: string | undefined; ImageId?: string | undefined; SystemDisk?: SystemDisk | undefined; DataDisks?: DataDiskList | undefined; VirtualPrivateCloud?: VirtualPrivateCloud | undefined; InternetAccessible?: InternetAccessible | undefined; InstanceName?: string | undefined; LoginSettings?: LoginSettings | undefined; SecurityGroupIds?: StringList | undefined; EnhancedService?: EnhancedService | undefined; InstanceChargeType?: string | undefined; InstanceMarketOptions?: InstanceMarketOptionsRequest | undefined; InstanceTypes?: StringList | undefined; InstanceTypeOptions?: InstanceTypeOptions | undefined; Zones?: StringList | undefined; VirtualPrivateClouds?: VirtualPrivateCloudList | undefined; } export interface MountDataDisk { LocalPath: string; FileSystemType?: string | undefined; } export type MountDataDiskList = Array; export interface Authentication { Scene: string; SecretId: string; SecretKey: string | Redacted.Redacted; } export type AuthenticationList = Array; export interface InputMapping { SourcePath: string; DestinationPath: string; MountOptionParameter?: string | undefined; MountType?: string | undefined; } export type InputMappingList = Array; export interface AgentRunningMode { Scene: string; User: string; Session: string; } export interface EventVar { Name: string; Value: string; } export type EventVarList = Array; export interface EventConfig { EventName: string; EventVars: EventVarList; } export type EventConfigList = Array; export interface Notification { TopicName: string; EventConfigs: EventConfigList; } export type NotificationList = Array; export interface Tag { Key: string; Value: string; } export type TagList = Array; export interface NamedComputeEnv { EnvName: string; DesiredComputeNodeCount: number; EnvDescription?: string | undefined; EnvType?: string | undefined; EnvData?: EnvData | undefined; MountDataDisks?: MountDataDiskList | undefined; Authentications?: AuthenticationList | undefined; InputMappings?: InputMappingList | undefined; AgentRunningMode?: AgentRunningMode | undefined; Notifications?: NotificationList | undefined; ActionIfComputeNodeInactive?: string | undefined; ResourceMaxRetryCount?: number | undefined; Tags?: TagList | undefined; NotificationTarget?: string | undefined; } export interface Placement { Zone: string; ProjectId?: number | undefined; HostIds?: StringList | undefined; HostId?: string | undefined; DedicatedResourcePackTenancy?: string | undefined; DedicatedResourcePackIds?: StringList | undefined; RackId?: string | undefined; } export interface CreateComputeEnvRequest { ComputeEnv: NamedComputeEnv; Placement: Placement; ClientToken?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CreateComputeEnvResponse { EnvId?: string | undefined; RequestId?: string | undefined; } export interface Docker { Image: string; User?: string | undefined; Password?: string | Redacted.Redacted | undefined; Server?: string | undefined; MaxRetryCount?: number | undefined; DelayOnRetry?: number | undefined; DockerRunOption?: string | undefined; } export interface CommandLine { Command: string; } export type CommandLineList = Array; export interface Application { DeliveryForm: string; Command?: string | undefined; PackagePath?: string | undefined; Docker?: Docker | undefined; Commands?: CommandLineList | undefined; } export interface AnonymousComputeEnv { EnvType?: string | undefined; EnvData?: EnvData | undefined; MountDataDisks?: MountDataDiskList | undefined; AgentRunningMode?: AgentRunningMode | undefined; } export interface RedirectInfo { StdoutRedirectPath?: string | undefined; StderrRedirectPath?: string | undefined; StdoutRedirectFileName?: string | undefined; StderrRedirectFileName?: string | undefined; } export interface RedirectLocalInfo { StdoutLocalPath?: string | undefined; StderrLocalPath?: string | undefined; StdoutLocalFileName?: string | undefined; StderrLocalFileName?: string | undefined; } export interface OutputMappingOption { Workspace?: string | undefined; } export interface OutputMapping { SourcePath: string; DestinationPath: string; OutputMappingOption?: OutputMappingOption | undefined; } export type OutputMappingList = Array; export interface OutputMappingConfig { Scene: string; WorkerNum: number; WorkerPartSize: number; } export type OutputMappingConfigList = Array; export type EnvVar = EventVar; export type EnvVarList = Array; export interface Task { Application: Application; TaskName?: string | undefined; TaskInstanceNum?: number | undefined; ComputeEnv?: AnonymousComputeEnv | undefined; EnvId?: string | undefined; RedirectInfo?: RedirectInfo | undefined; RedirectLocalInfo?: RedirectLocalInfo | undefined; InputMappings?: InputMappingList | undefined; OutputMappings?: OutputMappingList | undefined; OutputMappingConfigs?: OutputMappingConfigList | undefined; EnvVars?: EnvVarList | undefined; Authentications?: AuthenticationList | undefined; FailedAction?: string | undefined; MaxRetryCount?: number | undefined; Timeout?: number | undefined; MaxConcurrentNum?: number | undefined; RestartComputeNode?: boolean | undefined; ResourceMaxRetryCount?: number | undefined; } export interface CreateTaskTemplateRequest { TaskTemplateName: string; TaskTemplateInfo: Task; TaskTemplateDescription?: string | undefined; Tags?: TagList | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface CreateTaskTemplateResponse { TaskTemplateId?: string | undefined; RequestId?: string | undefined; } export interface DeleteComputeEnvRequest { EnvId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeleteComputeEnvResponse { RequestId?: string | undefined; } export interface DeleteJobRequest { JobId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeleteJobResponse { RequestId?: string | undefined; } export interface DeleteTaskTemplatesRequest { TaskTemplateIds: StringList; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DeleteTaskTemplatesResponse { RequestId?: string | undefined; } export interface Filter { Name: string; Values: StringList; } export type FilterList = Array; export interface DescribeAvailableCvmInstanceTypesRequest { Filters?: FilterList | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface InstanceTypeConfig { Mem?: number | undefined; Cpu?: number | undefined; InstanceType?: string | undefined; Zone?: string | undefined; InstanceFamily?: string | undefined; } export type InstanceTypeConfigList = Array; export interface DescribeAvailableCvmInstanceTypesResponse { InstanceTypeConfigSet?: InstanceTypeConfigList | undefined; RequestId?: string | undefined; } export interface DescribeComputeEnvRequest { EnvId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ComputeNode { ComputeNodeId?: string | undefined; ComputeNodeInstanceId?: string | undefined; ComputeNodeState?: string | undefined; Cpu?: number | undefined; Mem?: number | undefined; ResourceCreatedTime?: string | undefined; TaskInstanceNumAvailable?: number | undefined; AgentVersion?: string | undefined; PrivateIpAddresses?: StringList | undefined; PublicIpAddresses?: StringList | undefined; ResourceType?: string | undefined; ResourceOrigin?: string | undefined; } export type ComputeNodeList = Array; export interface ComputeNodeMetrics { SubmittedCount?: number | undefined; CreatingCount?: number | undefined; CreationFailedCount?: number | undefined; CreatedCount?: number | undefined; RunningCount?: number | undefined; DeletingCount?: number | undefined; AbnormalCount?: number | undefined; } export interface DescribeComputeEnvResponse { EnvId?: string | undefined; EnvName?: string | undefined; Placement?: Placement | undefined; CreateTime?: string | undefined; ComputeNodeSet?: ComputeNodeList | undefined; ComputeNodeMetrics?: ComputeNodeMetrics | undefined; DesiredComputeNodeCount?: number | undefined; EnvType?: string | undefined; ResourceType?: string | undefined; NextAction?: string | undefined; AttachedComputeNodeCount?: number | undefined; Tags?: TagList | null | undefined; RequestId?: string | undefined; } export interface DescribeComputeEnvActivitiesRequest { EnvId: string; Offset?: number | undefined; Limit?: number | undefined; Filters?: Filter | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface Activity { ActivityId?: string | undefined; ComputeNodeId?: string | undefined; ComputeNodeActivityType?: string | undefined; EnvId?: string | undefined; Cause?: string | undefined; ActivityState?: string | undefined; StateReason?: string | undefined; StartTime?: string | undefined; EndTime?: string | undefined; InstanceId?: string | undefined; } export type ActivityList = Array; export interface DescribeComputeEnvActivitiesResponse { ActivitySet?: ActivityList | undefined; TotalCount?: number | undefined; RequestId?: string | undefined; } export interface DescribeComputeEnvCreateInfoRequest { EnvId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DescribeComputeEnvCreateInfoResponse { EnvId?: string | undefined; EnvName?: string | undefined; EnvDescription?: string | undefined; EnvType?: string | undefined; EnvData?: EnvData | undefined; MountDataDisks?: MountDataDiskList | undefined; InputMappings?: InputMappingList | undefined; Authentications?: AuthenticationList | undefined; Notifications?: NotificationList | undefined; DesiredComputeNodeCount?: number | undefined; Tags?: TagList | null | undefined; RequestId?: string | undefined; } export interface DescribeComputeEnvCreateInfosRequest { EnvIds?: StringList | undefined; Filters?: FilterList | undefined; Offset?: number | undefined; Limit?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ComputeEnvCreateInfo { EnvId?: string | undefined; EnvName?: string | undefined; EnvDescription?: string | undefined; EnvType?: string | undefined; EnvData?: EnvData | undefined; MountDataDisks?: MountDataDiskList | undefined; InputMappings?: InputMappingList | undefined; Authentications?: AuthenticationList | undefined; Notifications?: NotificationList | undefined; DesiredComputeNodeCount?: number | undefined; Tags?: TagList | undefined; } export type ComputeEnvCreateInfoList = Array; export interface DescribeComputeEnvCreateInfosResponse { TotalCount?: number | undefined; ComputeEnvCreateInfoSet?: ComputeEnvCreateInfoList | undefined; RequestId?: string | undefined; } export interface DescribeComputeEnvsRequest { EnvIds?: StringList | undefined; Filters?: FilterList | undefined; Offset?: number | undefined; Limit?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ComputeEnvView { EnvId?: string | undefined; EnvName?: string | undefined; Placement?: Placement | undefined; CreateTime?: string | undefined; ComputeNodeMetrics?: ComputeNodeMetrics | undefined; EnvType?: string | undefined; DesiredComputeNodeCount?: number | undefined; ResourceType?: string | undefined; NextAction?: string | undefined; AttachedComputeNodeCount?: number | undefined; Tags?: TagList | null | undefined; } export type ComputeEnvViewList = Array; export interface DescribeComputeEnvsResponse { ComputeEnvSet?: ComputeEnvViewList | undefined; TotalCount?: number | undefined; RequestId?: string | undefined; } export interface DescribeCvmZoneInstanceConfigInfosRequest { Filters?: FilterList | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface StorageBlock { Type?: string | undefined; MinSize?: number | undefined; MaxSize?: number | undefined; } export interface Externals { ReleaseAddress?: boolean | undefined; UnsupportNetworks?: StringList | undefined; StorageBlockAttr?: StorageBlock | undefined; } export interface LocalDiskType { Type?: string | undefined; PartitionType?: string | undefined; MinSize?: number | undefined; MaxSize?: number | undefined; Required?: string | undefined; } export type LocalDiskTypeList = Array; export interface ItemPrice { UnitPrice?: number | undefined; ChargeUnit?: string | undefined; OriginalPrice?: number | undefined; DiscountPrice?: number | undefined; Discount?: number | undefined; UnitPriceDiscount?: number | undefined; UnitPriceSecondStep?: number | undefined; UnitPriceDiscountSecondStep?: number | undefined; UnitPriceThirdStep?: number | undefined; UnitPriceDiscountThirdStep?: number | undefined; OriginalPriceThreeYear?: number | undefined; DiscountPriceThreeYear?: number | undefined; DiscountThreeYear?: number | undefined; OriginalPriceFiveYear?: number | undefined; DiscountPriceFiveYear?: number | undefined; DiscountFiveYear?: number | undefined; OriginalPriceOneYear?: number | undefined; DiscountPriceOneYear?: number | undefined; DiscountOneYear?: number | undefined; } export interface InstanceTypeQuotaItem { Zone?: string | undefined; InstanceType?: string | undefined; InstanceChargeType?: string | undefined; NetworkCard?: number | undefined; Externals?: Externals | undefined; Cpu?: number | undefined; Memory?: number | undefined; InstanceFamily?: string | undefined; TypeName?: string | undefined; LocalDiskTypeList?: LocalDiskTypeList | undefined; Status?: string | undefined; Price?: ItemPrice | undefined; SoldOutReason?: string | undefined; InstanceBandwidth?: number | undefined; InstancePps?: number | undefined; StorageBlockAmount?: number | undefined; CpuType?: string | undefined; Gpu?: number | undefined; Fpga?: number | undefined; Remark?: string | undefined; GpuCount?: number | undefined; Frequency?: string | undefined; StatusCategory?: string | undefined; } export type InstanceTypeQuotaItemList = Array; export interface DescribeCvmZoneInstanceConfigInfosResponse { InstanceTypeQuotaSet?: InstanceTypeQuotaItemList | undefined; RequestId?: string | undefined; } export interface DescribeInstanceCategoriesRequest { /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface InstanceCategoryItem { InstanceCategory?: string | undefined; InstanceFamilySet?: StringList | undefined; } export type InstanceCategoryItemList = Array; export interface DescribeInstanceCategoriesResponse { InstanceCategorySet?: InstanceCategoryItemList | undefined; RequestId?: string | undefined; } export interface DescribeJobRequest { JobId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface TaskView { TaskName?: string | undefined; TaskState?: string | undefined; CreateTime?: string | undefined; EndTime?: string | null | undefined; } export type TaskViewList = Array; export interface Dependence { StartTask: string; EndTask: string; } export type DependenceList = Array; export interface TaskMetrics { SubmittedCount?: number | undefined; PendingCount?: number | undefined; RunnableCount?: number | undefined; StartingCount?: number | undefined; RunningCount?: number | undefined; SucceedCount?: number | undefined; FailedInterruptedCount?: number | undefined; FailedCount?: number | undefined; } export type TaskInstanceMetrics = TaskMetrics; export interface DescribeJobResponse { JobId?: string | undefined; JobName?: string | undefined; Zone?: string | undefined; Priority?: number | undefined; JobState?: string | undefined; CreateTime?: string | undefined; EndTime?: string | undefined; TaskSet?: TaskViewList | undefined; DependenceSet?: DependenceList | undefined; TaskMetrics?: TaskMetrics | undefined; TaskInstanceMetrics?: TaskMetrics | undefined; StateReason?: string | undefined; Tags?: TagList | null | undefined; NextAction?: string | undefined; RequestId?: string | undefined; } export type Dimension = EventVar; export type DimensionList = Array; export interface DescribeJobMonitorDataRequest { JobId: string; TaskName: string; TaskInstanceIndex: number; MetricName: string; StartTime?: string | undefined; EndTime?: string | undefined; Dimensions?: DimensionList | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export type LongList = Array; export type DoubleList = Array; export interface DataPointView { Timestamps?: LongList | undefined; Values?: DoubleList | undefined; } export interface DescribeJobMonitorDataResponse { Period?: number | undefined; DataPoints?: DataPointView | undefined; RequestId?: string | undefined; } export interface DescribeJobsRequest { JobIds?: StringList | undefined; Filters?: FilterList | undefined; Offset?: number | undefined; Limit?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface JobView { JobId?: string | undefined; JobName?: string | undefined; JobState?: string | undefined; Priority?: number | undefined; Placement?: Placement | undefined; CreateTime?: string | undefined; EndTime?: string | undefined; TaskMetrics?: TaskMetrics | undefined; Tags?: TagList | undefined; } export type JobViewList = Array; export interface DescribeJobsResponse { JobSet?: JobViewList | undefined; TotalCount?: number | undefined; RequestId?: string | undefined; } export interface DescribeJobSubmitInfoRequest { JobId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export type TaskList = Array; export interface DescribeJobSubmitInfoResponse { JobId?: string | undefined; JobName?: string | undefined; JobDescription?: string | undefined; Priority?: number | undefined; Tasks?: TaskList | undefined; Dependences?: DependenceList | undefined; Tags?: TagList | null | undefined; RequestId?: string | undefined; } export interface DescribeTaskRequest { JobId: string; TaskName: string; Offset?: number | undefined; Limit?: number | undefined; Filters?: FilterList | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface TaskInstanceView { TaskInstanceIndex?: number | undefined; TaskInstanceState?: string | undefined; ExitCode?: number | undefined; StateReason?: string | undefined; ComputeNodeInstanceId?: string | undefined; CreateTime?: string | undefined; LaunchTime?: string | undefined; RunningTime?: string | undefined; EndTime?: string | undefined; RedirectInfo?: RedirectInfo | undefined; StateDetailedReason?: string | undefined; } export type TaskInstanceViewList = Array; export interface DescribeTaskResponse { JobId?: string | undefined; TaskName?: string | undefined; TaskState?: string | undefined; CreateTime?: string | undefined; EndTime?: string | undefined; TaskInstanceTotalCount?: number | undefined; TaskInstanceSet?: TaskInstanceViewList | undefined; TaskInstanceMetrics?: TaskMetrics | undefined; RequestId?: string | undefined; } export interface DescribeTaskLogsRequest { JobId: string; TaskName: string; TaskInstanceIndexes?: LongList | undefined; Offset?: number | undefined; Limit?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface TaskInstanceLog { TaskInstanceIndex?: number | undefined; StdoutLog?: string | undefined; StderrLog?: string | undefined; StdoutRedirectPath?: string | undefined; StderrRedirectPath?: string | undefined; StdoutRedirectFileName?: string | undefined; StderrRedirectFileName?: string | undefined; } export type TaskInstanceLogList = Array; export interface DescribeTaskLogsResponse { TotalCount?: number | undefined; TaskInstanceLogSet?: TaskInstanceLogList | undefined; RequestId?: string | undefined; } export interface DescribeTaskTemplatesRequest { TaskTemplateIds?: StringList | undefined; Filters?: FilterList | undefined; Offset?: number | undefined; Limit?: number | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface TaskTemplateView { TaskTemplateId?: string | undefined; TaskTemplateName?: string | undefined; TaskTemplateDescription?: string | undefined; TaskTemplateInfo?: Task | undefined; CreateTime?: string | undefined; Tags?: TagList | null | undefined; } export type TaskTemplateViewList = Array; export interface DescribeTaskTemplatesResponse { TaskTemplateSet?: TaskTemplateViewList | undefined; TotalCount?: number | undefined; RequestId?: string | undefined; } export interface DetachInstancesRequest { EnvId: string; InstanceIds: StringList; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface DetachInstancesResponse { RequestId?: string | undefined; } export interface ComputeEnvData { InstanceTypes: StringList; } export interface ModifyComputeEnvRequest { EnvId: string; DesiredComputeNodeCount?: number | undefined; EnvName?: string | undefined; EnvDescription?: string | undefined; EnvData?: ComputeEnvData | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ModifyComputeEnvResponse { RequestId?: string | undefined; } export interface ModifyTaskTemplateRequest { TaskTemplateId: string; TaskTemplateName?: string | undefined; TaskTemplateDescription?: string | undefined; TaskTemplateInfo?: Task | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface ModifyTaskTemplateResponse { RequestId?: string | undefined; } export interface RetryJobsRequest { JobIds: StringList; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface RetryJobsResponse { RequestId?: string | undefined; } export interface Job { Tasks: TaskList; JobName?: string | undefined; JobDescription?: string | undefined; Priority?: number | undefined; Dependences?: DependenceList | undefined; Notifications?: NotificationList | undefined; TaskExecutionDependOn?: string | undefined; StateIfCreateCvmFailed?: string | undefined; Tags?: TagList | undefined; NotificationTarget?: string | undefined; } export interface SubmitJobRequest { Placement: Placement; Job: Job; ClientToken?: string | undefined; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface SubmitJobResponse { JobId?: string | undefined; RequestId?: string | undefined; } export interface TerminateComputeNodeRequest { EnvId: string; ComputeNodeId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface TerminateComputeNodeResponse { RequestId?: string | undefined; } export interface TerminateComputeNodesRequest { EnvId: string; ComputeNodeIds: StringList; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface TerminateComputeNodesResponse { RequestId?: string | undefined; } export interface TerminateJobRequest { JobId: string; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface TerminateJobResponse { RequestId?: string | undefined; } export interface TerminateTaskInstanceRequest { JobId: string; TaskName: string; TaskInstanceIndex: number; /** Region the call goes to (`X-TC-Region`), e.g. `ap-guangzhou`. Overrides the `Region` layer and the credentials' region. Leave it unset for a product that is not regional. */ region?: string | undefined; } export interface TerminateTaskInstanceResponse { RequestId?: string | undefined; } export type AttachInstancesError = TencentCloudOpError; export const attachInstances: API.OperationMethod< AttachInstancesRequest, AttachInstancesResponse, AttachInstancesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2, __c0, 2) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "AttachInstances", })); export type CreateComputeEnvError = TencentCloudOpError; export const createComputeEnv: API.OperationMethod< CreateComputeEnvRequest, CreateComputeEnvResponse, CreateComputeEnvError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(129, __c4, 1) as any as S.Schema, output: __S(130, __c4, 2) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateComputeEnv", })); export type CreateTaskTemplateError = TencentCloudOpError; export const createTaskTemplate: API.OperationMethod< CreateTaskTemplateRequest, CreateTaskTemplateResponse, CreateTaskTemplateError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(800, __c25, 0) as any as S.Schema, output: __S(801, __c25, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateTaskTemplate", })); export type DeleteComputeEnvError = TencentCloudOpError; export const deleteComputeEnv: API.OperationMethod< DeleteComputeEnvRequest, DeleteComputeEnvResponse, DeleteComputeEnvError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1216, __c38, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteComputeEnv", })); export type DeleteJobError = TencentCloudOpError; export const deleteJob: API.OperationMethod< DeleteJobRequest, DeleteJobResponse, DeleteJobError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1248, __c39, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteJob", })); export type DeleteTaskTemplatesError = TencentCloudOpError; export const deleteTaskTemplates: API.OperationMethod< DeleteTaskTemplatesRequest, DeleteTaskTemplatesResponse, DeleteTaskTemplatesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1280, __c40, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteTaskTemplates", })); export type DescribeAvailableCvmInstanceTypesError = TencentCloudOpError; export const describeAvailableCvmInstanceTypes: API.OperationMethod< DescribeAvailableCvmInstanceTypesRequest, DescribeAvailableCvmInstanceTypesResponse, DescribeAvailableCvmInstanceTypesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1312, __c41, 0) as any as S.Schema, output: __S(1315, __c41, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeAvailableCvmInstanceTypes", })); export type DescribeComputeEnvError = TencentCloudOpError; export const describeComputeEnv: API.OperationMethod< DescribeComputeEnvRequest, DescribeComputeEnvResponse, DescribeComputeEnvError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1408, __c44, 0) as any as S.Schema, output: __S(1411, __c44, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeComputeEnv", })); export type DescribeComputeEnvActivitiesError = TencentCloudOpError; export const describeComputeEnvActivities: API.OperationMethod< DescribeComputeEnvActivitiesRequest, DescribeComputeEnvActivitiesResponse, DescribeComputeEnvActivitiesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1472, __c46, 0) as any as S.Schema, output: __S(1475, __c46, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeComputeEnvActivities", })); export type DescribeComputeEnvCreateInfoError = TencentCloudOpError; export const describeComputeEnvCreateInfo: API.OperationMethod< DescribeComputeEnvCreateInfoRequest, DescribeComputeEnvCreateInfoResponse, DescribeComputeEnvCreateInfoError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1504, __c47, 0) as any as S.Schema, output: __S(1505, __c47, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeComputeEnvCreateInfo", })); export type DescribeComputeEnvCreateInfosError = TencentCloudOpError; export const describeComputeEnvCreateInfos: API.OperationMethod< DescribeComputeEnvCreateInfosRequest, DescribeComputeEnvCreateInfosResponse, DescribeComputeEnvCreateInfosError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(352, __c11, 0) as any as S.Schema, output: __S(355, __c11, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeComputeEnvCreateInfos", })); export type DescribeComputeEnvsError = TencentCloudOpError; export const describeComputeEnvs: API.OperationMethod< DescribeComputeEnvsRequest, DescribeComputeEnvsResponse, DescribeComputeEnvsError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(384, __c12, 0) as any as S.Schema, output: __S(387, __c12, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeComputeEnvs", })); export type DescribeCvmZoneInstanceConfigInfosError = TencentCloudOpError; export const describeCvmZoneInstanceConfigInfos: API.OperationMethod< DescribeCvmZoneInstanceConfigInfosRequest, DescribeCvmZoneInstanceConfigInfosResponse, DescribeCvmZoneInstanceConfigInfosError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(416, __c13, 0) as any as S.Schema, output: __S(424, __c13, 8) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeCvmZoneInstanceConfigInfos", })); export type DescribeInstanceCategoriesError = TencentCloudOpError; export const describeInstanceCategories: API.OperationMethod< DescribeInstanceCategoriesRequest, DescribeInstanceCategoriesResponse, DescribeInstanceCategoriesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(448, __c14, 0) as any as S.Schema, output: __S(451, __c14, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeInstanceCategories", })); export type DescribeJobError = TencentCloudOpError; export const describeJob: API.OperationMethod< DescribeJobRequest, DescribeJobResponse, DescribeJobError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(480, __c15, 0) as any as S.Schema, output: __S(483, __c15, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeJob", })); export type DescribeJobMonitorDataError = TencentCloudOpError; export const describeJobMonitorData: API.OperationMethod< DescribeJobMonitorDataRequest, DescribeJobMonitorDataResponse, DescribeJobMonitorDataError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(576, __c18, 0) as any as S.Schema, output: __S(578, __c18, 2) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeJobMonitorData", })); export type DescribeJobsError = TencentCloudOpError; export const describeJobs: API.OperationMethod< DescribeJobsRequest, DescribeJobsResponse, DescribeJobsError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(640, __c20, 0) as any as S.Schema, output: __S(643, __c20, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeJobs", })); export type DescribeJobSubmitInfoError = TencentCloudOpError; export const describeJobSubmitInfo: API.OperationMethod< DescribeJobSubmitInfoRequest, DescribeJobSubmitInfoResponse, DescribeJobSubmitInfoError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(672, __c21, 0) as any as S.Schema, output: __S(673, __c21, 1) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeJobSubmitInfo", })); export type DescribeTaskError = TencentCloudOpError; export const describeTask: API.OperationMethod< DescribeTaskRequest, DescribeTaskResponse, DescribeTaskError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(736, __c23, 0) as any as S.Schema, output: __S(739, __c23, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeTask", })); export type DescribeTaskLogsError = TencentCloudOpError; export const describeTaskLogs: API.OperationMethod< DescribeTaskLogsRequest, DescribeTaskLogsResponse, DescribeTaskLogsError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(768, __c24, 0) as any as S.Schema, output: __S(771, __c24, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeTaskLogs", })); export type DescribeTaskTemplatesError = TencentCloudOpError; export const describeTaskTemplates: API.OperationMethod< DescribeTaskTemplatesRequest, DescribeTaskTemplatesResponse, DescribeTaskTemplatesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(896, __c28, 0) as any as S.Schema, output: __S(899, __c28, 3) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DescribeTaskTemplates", })); export type DetachInstancesError = TencentCloudOpError; export const detachInstances: API.OperationMethod< DetachInstancesRequest, DetachInstancesResponse, DetachInstancesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(928, __c29, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DetachInstances", })); export type ModifyComputeEnvError = TencentCloudOpError; export const modifyComputeEnv: API.OperationMethod< ModifyComputeEnvRequest, ModifyComputeEnvResponse, ModifyComputeEnvError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(961, __c30, 1) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ModifyComputeEnv", })); export type ModifyTaskTemplateError = TencentCloudOpError; export const modifyTaskTemplate: API.OperationMethod< ModifyTaskTemplateRequest, ModifyTaskTemplateResponse, ModifyTaskTemplateError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(992, __c31, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ModifyTaskTemplate", })); export type RetryJobsError = TencentCloudOpError; export const retryJobs: API.OperationMethod< RetryJobsRequest, RetryJobsResponse, RetryJobsError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1024, __c32, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "RetryJobs", })); export type SubmitJobError = TencentCloudOpError; export const submitJob: API.OperationMethod< SubmitJobRequest, SubmitJobResponse, SubmitJobError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1057, __c33, 1) as any as S.Schema, output: __S(1058, __c33, 2) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SubmitJob", })); export type TerminateComputeNodeError = TencentCloudOpError; export const terminateComputeNode: API.OperationMethod< TerminateComputeNodeRequest, TerminateComputeNodeResponse, TerminateComputeNodeError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1088, __c34, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "TerminateComputeNode", })); export type TerminateComputeNodesError = TencentCloudOpError; export const terminateComputeNodes: API.OperationMethod< TerminateComputeNodesRequest, TerminateComputeNodesResponse, TerminateComputeNodesError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1120, __c35, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "TerminateComputeNodes", })); export type TerminateJobError = TencentCloudOpError; export const terminateJob: API.OperationMethod< TerminateJobRequest, TerminateJobResponse, TerminateJobError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1152, __c36, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "TerminateJob", })); export type TerminateTaskInstanceError = TencentCloudOpError; export const terminateTaskInstance: API.OperationMethod< TerminateTaskInstanceRequest, TerminateTaskInstanceResponse, TerminateTaskInstanceError, TencentCloudOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1184, __c37, 0) as any as S.Schema, output: __S(96, __c3, 0) as any as S.Schema, errors: [], serviceErrors: TencentCloudServiceErrors, protocol: TencentCloudProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "TerminateTaskInstance", })); // Schema builders: each runs one schema initializer, on that schema's first use. function __c0(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ InstanceId: S.String, ImageId: S.optional(S.String), LoginSettings: S.optional(__S(64, __c2, 0)), }), ).annotate({ identifier: "Instance" }); case 1: return S.Array(__S(0, __c0, 0)); case 2: return S.suspend(() => S.Struct({ EnvId: S.String, Instances: __S(1, __c0, 1), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "AttachInstances" })), ).annotate({ identifier: "AttachInstancesRequest" }); } } function __c1(j: number): any { switch (j) { case 0: return S.Array(S.String); } } function __c2(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Password: S.optional(S.String.pipe(T.SensitiveValue({}))), KeyIds: S.optional(__S(32, __c1, 0)), KeepImageLogin: S.optional(S.String), }), ).annotate({ identifier: "LoginSettings" }); } } function __c3(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ RequestId: S.optional(S.String), }), ).annotate({ identifier: "AttachInstancesResponse" }); } } function __c4(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvName: S.String, DesiredComputeNodeCount: S.Number, EnvDescription: S.optional(S.String), EnvType: S.optional(S.String), EnvData: S.optional(__S(267, __c8, 11)), MountDataDisks: S.optional(__S(269, __c8, 13)), Authentications: S.optional(__S(271, __c8, 15)), InputMappings: S.optional(__S(273, __c8, 17)), AgentRunningMode: S.optional(__S(160, __c5, 0)), Notifications: S.optional(__S(323, __c10, 3)), ActionIfComputeNodeInactive: S.optional(S.String), ResourceMaxRetryCount: S.optional(S.Number), Tags: S.optional(__S(193, __c6, 1)), NotificationTarget: S.optional(S.String), }), ).annotate({ identifier: "NamedComputeEnv" }); case 1: return S.suspend(() => S.Struct({ ComputeEnv: __S(128, __c4, 0), Placement: __S(288, __c9, 0), ClientToken: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "CreateComputeEnv" })), ).annotate({ identifier: "CreateComputeEnvRequest" }); case 2: return S.suspend(() => S.Struct({ EnvId: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "CreateComputeEnvResponse" }); } } function __c5(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Scene: S.String, User: S.String, Session: S.String, }), ).annotate({ identifier: "AgentRunningMode" }); } } function __c6(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Key: S.String, Value: S.String, }), ).annotate({ identifier: "Tag" }); case 1: return S.Array(__S(192, __c6, 0)); } } function __c7(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.String, Value: S.String, }), ).annotate({ identifier: "EventVar" }); case 1: return S.Array(__S(224, __c7, 0)); } } function __c8(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ DiskType: S.optional(S.String), DiskId: S.optional(S.String), DiskSize: S.optional(S.Number), CdcId: S.optional(S.NullOr(S.String)), DiskName: S.optional(S.String), Encrypt: S.optional(S.Boolean), KmsKeyId: S.optional(S.String), }), ).annotate({ identifier: "SystemDisk" }); case 1: return S.suspend(() => S.Struct({ DiskSize: S.Number, DiskType: S.optional(S.String), DiskId: S.optional(S.String), DeleteWithInstance: S.optional(S.Boolean), SnapshotId: S.optional(S.String), Encrypt: S.optional(S.Boolean), KmsKeyId: S.optional(S.NullOr(S.String)), ThroughputPerformance: S.optional(S.NullOr(S.Number)), CdcId: S.optional(S.NullOr(S.String)), BurstPerformance: S.optional(S.Boolean), DiskName: S.optional(S.String), }), ).annotate({ identifier: "DataDisk" }); case 2: return S.Array(__S(257, __c8, 1)); case 3: return S.suspend(() => S.Struct({ VpcId: S.String, SubnetId: S.String, AsVpcGateway: S.optional(S.Boolean), PrivateIpAddresses: S.optional(__S(32, __c1, 0)), Ipv6AddressCount: S.optional(S.Number), }), ).annotate({ identifier: "VirtualPrivateCloud" }); case 4: return S.suspend(() => S.Struct({ InternetChargeType: S.optional(S.String), InternetMaxBandwidthOut: S.optional(S.Number), PublicIpAssigned: S.optional(S.Boolean), BandwidthPackageId: S.optional(S.String), InternetServiceProvider: S.optional(S.String), IPv4AddressType: S.optional(S.String), IPv6AddressType: S.optional(S.String), AntiDDoSPackageId: S.optional(S.String), }), ).annotate({ identifier: "InternetAccessible" }); case 5: return S.suspend(() => S.Struct({ Enabled: S.optional(S.Boolean), }), ).annotate({ identifier: "RunSecurityServiceEnabled" }); case 6: return S.suspend(() => S.Struct({ SecurityService: S.optional(__S(261, __c8, 5)), MonitorService: S.optional(__S(261, __c8, 5)), AutomationService: S.optional(__S(261, __c8, 5)), }), ).annotate({ identifier: "EnhancedService" }); case 7: return S.suspend(() => S.Struct({ MaxPrice: S.String, SpotInstanceType: S.optional(S.String), }), ).annotate({ identifier: "SpotMarketOptions" }); case 8: return S.suspend(() => S.Struct({ SpotOptions: __S(263, __c8, 7), MarketType: S.optional(S.String), }), ).annotate({ identifier: "InstanceMarketOptionsRequest" }); case 9: return S.suspend(() => S.Struct({ CPU: S.Number, Memory: S.Number, InstanceCategories: S.optional(__S(32, __c1, 0)), }), ).annotate({ identifier: "InstanceTypeOptions" }); case 10: return S.Array(__S(259, __c8, 3)); case 11: return S.suspend(() => S.Struct({ InstanceType: S.optional(S.String), ImageId: S.optional(S.String), SystemDisk: S.optional(__S(256, __c8, 0)), DataDisks: S.optional(__S(258, __c8, 2)), VirtualPrivateCloud: S.optional(__S(259, __c8, 3)), InternetAccessible: S.optional(__S(260, __c8, 4)), InstanceName: S.optional(S.String), LoginSettings: S.optional(__S(64, __c2, 0)), SecurityGroupIds: S.optional(__S(32, __c1, 0)), EnhancedService: S.optional(__S(262, __c8, 6)), InstanceChargeType: S.optional(S.String), InstanceMarketOptions: S.optional(__S(264, __c8, 8)), InstanceTypes: S.optional(__S(32, __c1, 0)), InstanceTypeOptions: S.optional(__S(265, __c8, 9)), Zones: S.optional(__S(32, __c1, 0)), VirtualPrivateClouds: S.optional(__S(266, __c8, 10)), }), ).annotate({ identifier: "EnvData" }); case 12: return S.suspend(() => S.Struct({ LocalPath: S.String, FileSystemType: S.optional(S.String), }), ).annotate({ identifier: "MountDataDisk" }); case 13: return S.Array(__S(268, __c8, 12)); case 14: return S.suspend(() => S.Struct({ Scene: S.String, SecretId: S.String, SecretKey: S.String.pipe(T.SensitiveValue({})), }), ).annotate({ identifier: "Authentication" }); case 15: return S.Array(__S(270, __c8, 14)); case 16: return S.suspend(() => S.Struct({ SourcePath: S.String, DestinationPath: S.String, MountOptionParameter: S.optional(S.String), MountType: S.optional(S.String), }), ).annotate({ identifier: "InputMapping" }); case 17: return S.Array(__S(272, __c8, 16)); } } function __c9(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Zone: S.String, ProjectId: S.optional(S.Number), HostIds: S.optional(__S(32, __c1, 0)), HostId: S.optional(S.String), DedicatedResourcePackTenancy: S.optional(S.String), DedicatedResourcePackIds: S.optional(__S(32, __c1, 0)), RackId: S.optional(S.String), }), ).annotate({ identifier: "Placement" }); } } function __c10(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EventName: S.String, EventVars: __S(225, __c7, 1), }), ).annotate({ identifier: "EventConfig" }); case 1: return S.Array(__S(320, __c10, 0)); case 2: return S.suspend(() => S.Struct({ TopicName: S.String, EventConfigs: __S(321, __c10, 1), }), ).annotate({ identifier: "Notification" }); case 3: return S.Array(__S(322, __c10, 2)); } } function __c11(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvIds: S.optional(__S(32, __c1, 0)), Filters: S.optional(__S(1344, __c42, 0)), Offset: S.optional(S.Number), Limit: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeComputeEnvCreateInfos", }), ), ).annotate({ identifier: "DescribeComputeEnvCreateInfosRequest" }); case 1: return S.suspend(() => S.Struct({ EnvId: S.optional(S.String), EnvName: S.optional(S.String), EnvDescription: S.optional(S.String), EnvType: S.optional(S.String), EnvData: S.optional(__S(267, __c8, 11)), MountDataDisks: S.optional(__S(269, __c8, 13)), InputMappings: S.optional(__S(273, __c8, 17)), Authentications: S.optional(__S(271, __c8, 15)), Notifications: S.optional(__S(323, __c10, 3)), DesiredComputeNodeCount: S.optional(S.Number), Tags: S.optional(__S(193, __c6, 1)), }), ).annotate({ identifier: "ComputeEnvCreateInfo" }); case 2: return S.Array(__S(353, __c11, 1)); case 3: return S.suspend(() => S.Struct({ TotalCount: S.optional(S.Number), ComputeEnvCreateInfoSet: S.optional(__S(354, __c11, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeComputeEnvCreateInfosResponse" }); } } function __c12(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvIds: S.optional(__S(32, __c1, 0)), Filters: S.optional(__S(1344, __c42, 0)), Offset: S.optional(S.Number), Limit: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeComputeEnvs" }), ), ).annotate({ identifier: "DescribeComputeEnvsRequest" }); case 1: return S.suspend(() => S.Struct({ EnvId: S.optional(S.String), EnvName: S.optional(S.String), Placement: S.optional(__S(288, __c9, 0)), CreateTime: S.optional(S.String), ComputeNodeMetrics: S.optional(__S(1440, __c45, 0)), EnvType: S.optional(S.String), DesiredComputeNodeCount: S.optional(S.Number), ResourceType: S.optional(S.String), NextAction: S.optional(S.String), AttachedComputeNodeCount: S.optional(S.Number), Tags: S.optional(S.NullOr(__S(193, __c6, 1))), }), ).annotate({ identifier: "ComputeEnvView" }); case 2: return S.Array(__S(385, __c12, 1)); case 3: return S.suspend(() => S.Struct({ ComputeEnvSet: S.optional(__S(386, __c12, 2)), TotalCount: S.optional(S.Number), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeComputeEnvsResponse" }); } } function __c13(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Filters: S.optional(__S(1344, __c42, 0)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeCvmZoneInstanceConfigInfos", }), ), ).annotate({ identifier: "DescribeCvmZoneInstanceConfigInfosRequest" }); case 1: return S.suspend(() => S.Struct({ Type: S.optional(S.String), MinSize: S.optional(S.Number), MaxSize: S.optional(S.Number), }), ).annotate({ identifier: "StorageBlock" }); case 2: return S.suspend(() => S.Struct({ ReleaseAddress: S.optional(S.Boolean), UnsupportNetworks: S.optional(__S(32, __c1, 0)), StorageBlockAttr: S.optional(__S(417, __c13, 1)), }), ).annotate({ identifier: "Externals" }); case 3: return S.suspend(() => S.Struct({ Type: S.optional(S.String), PartitionType: S.optional(S.String), MinSize: S.optional(S.Number), MaxSize: S.optional(S.Number), Required: S.optional(S.String), }), ).annotate({ identifier: "LocalDiskType" }); case 4: return S.Array(__S(419, __c13, 3)); case 5: return S.suspend(() => S.Struct({ UnitPrice: S.optional(S.Number), ChargeUnit: S.optional(S.String), OriginalPrice: S.optional(S.Number), DiscountPrice: S.optional(S.Number), Discount: S.optional(S.Number), UnitPriceDiscount: S.optional(S.Number), UnitPriceSecondStep: S.optional(S.Number), UnitPriceDiscountSecondStep: S.optional(S.Number), UnitPriceThirdStep: S.optional(S.Number), UnitPriceDiscountThirdStep: S.optional(S.Number), OriginalPriceThreeYear: S.optional(S.Number), DiscountPriceThreeYear: S.optional(S.Number), DiscountThreeYear: S.optional(S.Number), OriginalPriceFiveYear: S.optional(S.Number), DiscountPriceFiveYear: S.optional(S.Number), DiscountFiveYear: S.optional(S.Number), OriginalPriceOneYear: S.optional(S.Number), DiscountPriceOneYear: S.optional(S.Number), DiscountOneYear: S.optional(S.Number), }), ).annotate({ identifier: "ItemPrice" }); case 6: return S.suspend(() => S.Struct({ Zone: S.optional(S.String), InstanceType: S.optional(S.String), InstanceChargeType: S.optional(S.String), NetworkCard: S.optional(S.Number), Externals: S.optional(__S(418, __c13, 2)), Cpu: S.optional(S.Number), Memory: S.optional(S.Number), InstanceFamily: S.optional(S.String), TypeName: S.optional(S.String), LocalDiskTypeList: S.optional(__S(420, __c13, 4)), Status: S.optional(S.String), Price: S.optional(__S(421, __c13, 5)), SoldOutReason: S.optional(S.String), InstanceBandwidth: S.optional(S.Number), InstancePps: S.optional(S.Number), StorageBlockAmount: S.optional(S.Number), CpuType: S.optional(S.String), Gpu: S.optional(S.Number), Fpga: S.optional(S.Number), Remark: S.optional(S.String), GpuCount: S.optional(S.Number), Frequency: S.optional(S.String), StatusCategory: S.optional(S.String), }), ).annotate({ identifier: "InstanceTypeQuotaItem" }); case 7: return S.Array(__S(422, __c13, 6)); case 8: return S.suspend(() => S.Struct({ InstanceTypeQuotaSet: S.optional(__S(423, __c13, 7)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeCvmZoneInstanceConfigInfosResponse" }); } } function __c14(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeInstanceCategories", }), ), ).annotate({ identifier: "DescribeInstanceCategoriesRequest" }); case 1: return S.suspend(() => S.Struct({ InstanceCategory: S.optional(S.String), InstanceFamilySet: S.optional(__S(32, __c1, 0)), }), ).annotate({ identifier: "InstanceCategoryItem" }); case 2: return S.Array(__S(449, __c14, 1)); case 3: return S.suspend(() => S.Struct({ InstanceCategorySet: S.optional(__S(450, __c14, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeInstanceCategoriesResponse" }); } } function __c15(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "DescribeJob" })), ).annotate({ identifier: "DescribeJobRequest" }); case 1: return S.suspend(() => S.Struct({ TaskName: S.optional(S.String), TaskState: S.optional(S.String), CreateTime: S.optional(S.String), EndTime: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "TaskView" }); case 2: return S.Array(__S(481, __c15, 1)); case 3: return S.suspend(() => S.Struct({ JobId: S.optional(S.String), JobName: S.optional(S.String), Zone: S.optional(S.String), Priority: S.optional(S.Number), JobState: S.optional(S.String), CreateTime: S.optional(S.String), EndTime: S.optional(S.String), TaskSet: S.optional(__S(482, __c15, 2)), DependenceSet: S.optional(__S(545, __c17, 1)), TaskMetrics: S.optional(__S(512, __c16, 0)), TaskInstanceMetrics: S.optional(__S(512, __c16, 0)), StateReason: S.optional(S.String), Tags: S.optional(S.NullOr(__S(193, __c6, 1))), NextAction: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeJobResponse" }); } } function __c16(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ SubmittedCount: S.optional(S.Number), PendingCount: S.optional(S.Number), RunnableCount: S.optional(S.Number), StartingCount: S.optional(S.Number), RunningCount: S.optional(S.Number), SucceedCount: S.optional(S.Number), FailedInterruptedCount: S.optional(S.Number), FailedCount: S.optional(S.Number), }), ).annotate({ identifier: "TaskMetrics" }); } } function __c17(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ StartTask: S.String, EndTask: S.String, }), ).annotate({ identifier: "Dependence" }); case 1: return S.Array(__S(544, __c17, 0)); } } function __c18(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobId: S.String, TaskName: S.String, TaskInstanceIndex: S.Number, MetricName: S.String, StartTime: S.optional(S.String), EndTime: S.optional(S.String), Dimensions: S.optional(__S(225, __c7, 1)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeJobMonitorData" }), ), ).annotate({ identifier: "DescribeJobMonitorDataRequest" }); case 1: return S.suspend(() => S.Struct({ Timestamps: S.optional(__S(608, __c19, 0)), Values: S.optional(__S(608, __c19, 0)), }), ).annotate({ identifier: "DataPointView" }); case 2: return S.suspend(() => S.Struct({ Period: S.optional(S.Number), DataPoints: S.optional(__S(577, __c18, 1)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeJobMonitorDataResponse" }); } } function __c19(j: number): any { switch (j) { case 0: return S.Array(S.Number); } } function __c20(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobIds: S.optional(__S(32, __c1, 0)), Filters: S.optional(__S(1344, __c42, 0)), Offset: S.optional(S.Number), Limit: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "DescribeJobs" })), ).annotate({ identifier: "DescribeJobsRequest" }); case 1: return S.suspend(() => S.Struct({ JobId: S.optional(S.String), JobName: S.optional(S.String), JobState: S.optional(S.String), Priority: S.optional(S.Number), Placement: S.optional(__S(288, __c9, 0)), CreateTime: S.optional(S.String), EndTime: S.optional(S.String), TaskMetrics: S.optional(__S(512, __c16, 0)), Tags: S.optional(__S(193, __c6, 1)), }), ).annotate({ identifier: "JobView" }); case 2: return S.Array(__S(641, __c20, 1)); case 3: return S.suspend(() => S.Struct({ JobSet: S.optional(__S(642, __c20, 2)), TotalCount: S.optional(S.Number), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeJobsResponse" }); } } function __c21(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeJobSubmitInfo" }), ), ).annotate({ identifier: "DescribeJobSubmitInfoRequest" }); case 1: return S.suspend(() => S.Struct({ JobId: S.optional(S.String), JobName: S.optional(S.String), JobDescription: S.optional(S.String), Priority: S.optional(S.Number), Tasks: S.optional(__S(704, __c22, 0)), Dependences: S.optional(__S(545, __c17, 1)), Tags: S.optional(S.NullOr(__S(193, __c6, 1))), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeJobSubmitInfoResponse" }); } } function __c22(j: number): any { switch (j) { case 0: return S.Array(__S(875, __c27, 11)); } } function __c23(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobId: S.String, TaskName: S.String, Offset: S.optional(S.Number), Limit: S.optional(S.Number), Filters: S.optional(__S(1344, __c42, 0)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "DescribeTask" })), ).annotate({ identifier: "DescribeTaskRequest" }); case 1: return S.suspend(() => S.Struct({ TaskInstanceIndex: S.optional(S.Number), TaskInstanceState: S.optional(S.String), ExitCode: S.optional(S.Number), StateReason: S.optional(S.String), ComputeNodeInstanceId: S.optional(S.String), CreateTime: S.optional(S.String), LaunchTime: S.optional(S.String), RunningTime: S.optional(S.String), EndTime: S.optional(S.String), RedirectInfo: S.optional(__S(832, __c26, 0)), StateDetailedReason: S.optional(S.String), }), ).annotate({ identifier: "TaskInstanceView" }); case 2: return S.Array(__S(737, __c23, 1)); case 3: return S.suspend(() => S.Struct({ JobId: S.optional(S.String), TaskName: S.optional(S.String), TaskState: S.optional(S.String), CreateTime: S.optional(S.String), EndTime: S.optional(S.String), TaskInstanceTotalCount: S.optional(S.Number), TaskInstanceSet: S.optional(__S(738, __c23, 2)), TaskInstanceMetrics: S.optional(__S(512, __c16, 0)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeTaskResponse" }); } } function __c24(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobId: S.String, TaskName: S.String, TaskInstanceIndexes: S.optional(__S(608, __c19, 0)), Offset: S.optional(S.Number), Limit: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "DescribeTaskLogs" })), ).annotate({ identifier: "DescribeTaskLogsRequest" }); case 1: return S.suspend(() => S.Struct({ TaskInstanceIndex: S.optional(S.Number), StdoutLog: S.optional(S.String), StderrLog: S.optional(S.String), StdoutRedirectPath: S.optional(S.String), StderrRedirectPath: S.optional(S.String), StdoutRedirectFileName: S.optional(S.String), StderrRedirectFileName: S.optional(S.String), }), ).annotate({ identifier: "TaskInstanceLog" }); case 2: return S.Array(__S(769, __c24, 1)); case 3: return S.suspend(() => S.Struct({ TotalCount: S.optional(S.Number), TaskInstanceLogSet: S.optional(__S(770, __c24, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeTaskLogsResponse" }); } } function __c25(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ TaskTemplateName: S.String, TaskTemplateInfo: __S(875, __c27, 11), TaskTemplateDescription: S.optional(S.String), Tags: S.optional(__S(193, __c6, 1)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "CreateTaskTemplate" }), ), ).annotate({ identifier: "CreateTaskTemplateRequest" }); case 1: return S.suspend(() => S.Struct({ TaskTemplateId: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "CreateTaskTemplateResponse" }); } } function __c26(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ StdoutRedirectPath: S.optional(S.String), StderrRedirectPath: S.optional(S.String), StdoutRedirectFileName: S.optional(S.String), StderrRedirectFileName: S.optional(S.String), }), ).annotate({ identifier: "RedirectInfo" }); } } function __c27(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Image: S.String, User: S.optional(S.String), Password: S.optional(S.String.pipe(T.SensitiveValue({}))), Server: S.optional(S.String), MaxRetryCount: S.optional(S.Number), DelayOnRetry: S.optional(S.Number), DockerRunOption: S.optional(S.String), }), ).annotate({ identifier: "Docker" }); case 1: return S.suspend(() => S.Struct({ Command: S.String, }), ).annotate({ identifier: "CommandLine" }); case 2: return S.Array(__S(865, __c27, 1)); case 3: return S.suspend(() => S.Struct({ DeliveryForm: S.String, Command: S.optional(S.String), PackagePath: S.optional(S.String), Docker: S.optional(__S(864, __c27, 0)), Commands: S.optional(__S(866, __c27, 2)), }), ).annotate({ identifier: "Application" }); case 4: return S.suspend(() => S.Struct({ EnvType: S.optional(S.String), EnvData: S.optional(__S(267, __c8, 11)), MountDataDisks: S.optional(__S(269, __c8, 13)), AgentRunningMode: S.optional(__S(160, __c5, 0)), }), ).annotate({ identifier: "AnonymousComputeEnv" }); case 5: return S.suspend(() => S.Struct({ StdoutLocalPath: S.optional(S.String), StderrLocalPath: S.optional(S.String), StdoutLocalFileName: S.optional(S.String), StderrLocalFileName: S.optional(S.String), }), ).annotate({ identifier: "RedirectLocalInfo" }); case 6: return S.suspend(() => S.Struct({ Workspace: S.optional(S.String), }), ).annotate({ identifier: "OutputMappingOption" }); case 7: return S.suspend(() => S.Struct({ SourcePath: S.String, DestinationPath: S.String, OutputMappingOption: S.optional(__S(870, __c27, 6)), }), ).annotate({ identifier: "OutputMapping" }); case 8: return S.Array(__S(871, __c27, 7)); case 9: return S.suspend(() => S.Struct({ Scene: S.String, WorkerNum: S.Number, WorkerPartSize: S.Number, }), ).annotate({ identifier: "OutputMappingConfig" }); case 10: return S.Array(__S(873, __c27, 9)); case 11: return S.suspend(() => S.Struct({ Application: __S(867, __c27, 3), TaskName: S.optional(S.String), TaskInstanceNum: S.optional(S.Number), ComputeEnv: S.optional(__S(868, __c27, 4)), EnvId: S.optional(S.String), RedirectInfo: S.optional(__S(832, __c26, 0)), RedirectLocalInfo: S.optional(__S(869, __c27, 5)), InputMappings: S.optional(__S(273, __c8, 17)), OutputMappings: S.optional(__S(872, __c27, 8)), OutputMappingConfigs: S.optional(__S(874, __c27, 10)), EnvVars: S.optional(__S(225, __c7, 1)), Authentications: S.optional(__S(271, __c8, 15)), FailedAction: S.optional(S.String), MaxRetryCount: S.optional(S.Number), Timeout: S.optional(S.Number), MaxConcurrentNum: S.optional(S.Number), RestartComputeNode: S.optional(S.Boolean), ResourceMaxRetryCount: S.optional(S.Number), }), ).annotate({ identifier: "Task" }); } } function __c28(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ TaskTemplateIds: S.optional(__S(32, __c1, 0)), Filters: S.optional(__S(1344, __c42, 0)), Offset: S.optional(S.Number), Limit: S.optional(S.Number), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeTaskTemplates" }), ), ).annotate({ identifier: "DescribeTaskTemplatesRequest" }); case 1: return S.suspend(() => S.Struct({ TaskTemplateId: S.optional(S.String), TaskTemplateName: S.optional(S.String), TaskTemplateDescription: S.optional(S.String), TaskTemplateInfo: S.optional(__S(875, __c27, 11)), CreateTime: S.optional(S.String), Tags: S.optional(S.NullOr(__S(193, __c6, 1))), }), ).annotate({ identifier: "TaskTemplateView" }); case 2: return S.Array(__S(897, __c28, 1)); case 3: return S.suspend(() => S.Struct({ TaskTemplateSet: S.optional(__S(898, __c28, 2)), TotalCount: S.optional(S.Number), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeTaskTemplatesResponse" }); } } function __c29(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvId: S.String, InstanceIds: __S(32, __c1, 0), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "DetachInstances" })), ).annotate({ identifier: "DetachInstancesRequest" }); } } function __c30(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ InstanceTypes: __S(32, __c1, 0), }), ).annotate({ identifier: "ComputeEnvData" }); case 1: return S.suspend(() => S.Struct({ EnvId: S.String, DesiredComputeNodeCount: S.optional(S.Number), EnvName: S.optional(S.String), EnvDescription: S.optional(S.String), EnvData: S.optional(__S(960, __c30, 0)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "ModifyComputeEnv" })), ).annotate({ identifier: "ModifyComputeEnvRequest" }); } } function __c31(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ TaskTemplateId: S.String, TaskTemplateName: S.optional(S.String), TaskTemplateDescription: S.optional(S.String), TaskTemplateInfo: S.optional(__S(875, __c27, 11)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "ModifyTaskTemplate" }), ), ).annotate({ identifier: "ModifyTaskTemplateRequest" }); } } function __c32(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobIds: __S(32, __c1, 0), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "RetryJobs" })), ).annotate({ identifier: "RetryJobsRequest" }); } } function __c33(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Tasks: __S(704, __c22, 0), JobName: S.optional(S.String), JobDescription: S.optional(S.String), Priority: S.optional(S.Number), Dependences: S.optional(__S(545, __c17, 1)), Notifications: S.optional(__S(323, __c10, 3)), TaskExecutionDependOn: S.optional(S.String), StateIfCreateCvmFailed: S.optional(S.String), Tags: S.optional(__S(193, __c6, 1)), NotificationTarget: S.optional(S.String), }), ).annotate({ identifier: "Job" }); case 1: return S.suspend(() => S.Struct({ Placement: __S(288, __c9, 0), Job: __S(1056, __c33, 0), ClientToken: S.optional(S.String), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "SubmitJob" })), ).annotate({ identifier: "SubmitJobRequest" }); case 2: return S.suspend(() => S.Struct({ JobId: S.optional(S.String), RequestId: S.optional(S.String), }), ).annotate({ identifier: "SubmitJobResponse" }); } } function __c34(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvId: S.String, ComputeNodeId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "TerminateComputeNode" }), ), ).annotate({ identifier: "TerminateComputeNodeRequest" }); } } function __c35(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvId: S.String, ComputeNodeIds: __S(32, __c1, 0), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "TerminateComputeNodes" }), ), ).annotate({ identifier: "TerminateComputeNodesRequest" }); } } function __c36(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "TerminateJob" })), ).annotate({ identifier: "TerminateJobRequest" }); } } function __c37(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobId: S.String, TaskName: S.String, TaskInstanceIndex: S.Number, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "TerminateTaskInstance" }), ), ).annotate({ identifier: "TerminateTaskInstanceRequest" }); } } function __c38(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "DeleteComputeEnv" })), ).annotate({ identifier: "DeleteComputeEnvRequest" }); } } function __c39(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ JobId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe(T.Action({ service: "batch", version: "2017-03-12", action: "DeleteJob" })), ).annotate({ identifier: "DeleteJobRequest" }); } } function __c40(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ TaskTemplateIds: __S(32, __c1, 0), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DeleteTaskTemplates" }), ), ).annotate({ identifier: "DeleteTaskTemplatesRequest" }); } } function __c41(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Filters: S.optional(__S(1344, __c42, 0)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeAvailableCvmInstanceTypes", }), ), ).annotate({ identifier: "DescribeAvailableCvmInstanceTypesRequest" }); case 1: return S.suspend(() => S.Struct({ Mem: S.optional(S.Number), Cpu: S.optional(S.Number), InstanceType: S.optional(S.String), Zone: S.optional(S.String), InstanceFamily: S.optional(S.String), }), ).annotate({ identifier: "InstanceTypeConfig" }); case 2: return S.Array(__S(1313, __c41, 1)); case 3: return S.suspend(() => S.Struct({ InstanceTypeConfigSet: S.optional(__S(1314, __c41, 2)), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeAvailableCvmInstanceTypesResponse" }); } } function __c42(j: number): any { switch (j) { case 0: return S.Array(__S(1376, __c43, 0)); } } function __c43(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.String, Values: __S(32, __c1, 0), }), ).annotate({ identifier: "Filter" }); } } function __c44(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeComputeEnv" }), ), ).annotate({ identifier: "DescribeComputeEnvRequest" }); case 1: return S.suspend(() => S.Struct({ ComputeNodeId: S.optional(S.String), ComputeNodeInstanceId: S.optional(S.String), ComputeNodeState: S.optional(S.String), Cpu: S.optional(S.Number), Mem: S.optional(S.Number), ResourceCreatedTime: S.optional(S.String), TaskInstanceNumAvailable: S.optional(S.Number), AgentVersion: S.optional(S.String), PrivateIpAddresses: S.optional(__S(32, __c1, 0)), PublicIpAddresses: S.optional(__S(32, __c1, 0)), ResourceType: S.optional(S.String), ResourceOrigin: S.optional(S.String), }), ).annotate({ identifier: "ComputeNode" }); case 2: return S.Array(__S(1409, __c44, 1)); case 3: return S.suspend(() => S.Struct({ EnvId: S.optional(S.String), EnvName: S.optional(S.String), Placement: S.optional(__S(288, __c9, 0)), CreateTime: S.optional(S.String), ComputeNodeSet: S.optional(__S(1410, __c44, 2)), ComputeNodeMetrics: S.optional(__S(1440, __c45, 0)), DesiredComputeNodeCount: S.optional(S.Number), EnvType: S.optional(S.String), ResourceType: S.optional(S.String), NextAction: S.optional(S.String), AttachedComputeNodeCount: S.optional(S.Number), Tags: S.optional(S.NullOr(__S(193, __c6, 1))), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeComputeEnvResponse" }); } } function __c45(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ SubmittedCount: S.optional(S.Number), CreatingCount: S.optional(S.Number), CreationFailedCount: S.optional(S.Number), CreatedCount: S.optional(S.Number), RunningCount: S.optional(S.Number), DeletingCount: S.optional(S.Number), AbnormalCount: S.optional(S.Number), }), ).annotate({ identifier: "ComputeNodeMetrics" }); } } function __c46(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvId: S.String, Offset: S.optional(S.Number), Limit: S.optional(S.Number), Filters: S.optional(__S(1376, __c43, 0)), region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeComputeEnvActivities", }), ), ).annotate({ identifier: "DescribeComputeEnvActivitiesRequest" }); case 1: return S.suspend(() => S.Struct({ ActivityId: S.optional(S.String), ComputeNodeId: S.optional(S.String), ComputeNodeActivityType: S.optional(S.String), EnvId: S.optional(S.String), Cause: S.optional(S.String), ActivityState: S.optional(S.String), StateReason: S.optional(S.String), StartTime: S.optional(S.String), EndTime: S.optional(S.String), InstanceId: S.optional(S.String), }), ).annotate({ identifier: "Activity" }); case 2: return S.Array(__S(1473, __c46, 1)); case 3: return S.suspend(() => S.Struct({ ActivitySet: S.optional(__S(1474, __c46, 2)), TotalCount: S.optional(S.Number), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeComputeEnvActivitiesResponse" }); } } function __c47(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EnvId: S.String, region: S.optional(S.String.pipe(T.Header("X-TC-Region"))), }).pipe( T.Action({ service: "batch", version: "2017-03-12", action: "DescribeComputeEnvCreateInfo", }), ), ).annotate({ identifier: "DescribeComputeEnvCreateInfoRequest" }); case 1: return S.suspend(() => S.Struct({ EnvId: S.optional(S.String), EnvName: S.optional(S.String), EnvDescription: S.optional(S.String), EnvType: S.optional(S.String), EnvData: S.optional(__S(267, __c8, 11)), MountDataDisks: S.optional(__S(269, __c8, 13)), InputMappings: S.optional(__S(273, __c8, 17)), Authentications: S.optional(__S(271, __c8, 15)), Notifications: S.optional(__S(323, __c10, 3)), DesiredComputeNodeCount: S.optional(S.Number), Tags: S.optional(S.NullOr(__S(193, __c6, 1))), RequestId: S.optional(S.String), }), ).annotate({ identifier: "DescribeComputeEnvCreateInfoResponse" }); } } // Schema table: entry i is schema j of builder f, made on first reach. function __S(i: number, f: (j: number) => unknown, j: number): any { return (__s[i] ??= __L.at(f, j)); }