github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/jobmaster/dm/openapi/gen.types.go (about)

     1  // Package openapi provides primitives to interact with the openapi HTTP API.
     2  //
     3  // Code generated by github.com/deepmap/oapi-codegen version v1.9.0 DO NOT EDIT.
     4  package openapi
     5  
     6  // Defines values for OperateJobRequestOp.
     7  const (
     8  	OperateJobRequestOpPause OperateJobRequestOp = "pause"
     9  
    10  	OperateJobRequestOpResume OperateJobRequestOp = "resume"
    11  )
    12  
    13  // Defines values for SetBinlogOperatorRequestOp.
    14  const (
    15  	SetBinlogOperatorRequestOpInject SetBinlogOperatorRequestOp = "inject"
    16  
    17  	SetBinlogOperatorRequestOpReplace SetBinlogOperatorRequestOp = "replace"
    18  
    19  	SetBinlogOperatorRequestOpSkip SetBinlogOperatorRequestOp = "skip"
    20  )
    21  
    22  // operation error
    23  type ErrorWithMessage struct {
    24  	// error code
    25  	Code    int       `json:"code"`
    26  	Details *[]string `json:"details,omitempty"`
    27  
    28  	// error message
    29  	Message string `json:"message"`
    30  }
    31  
    32  // OperateJobRequest defines model for OperateJobRequest.
    33  type OperateJobRequest struct {
    34  	Op    OperateJobRequestOp `json:"op"`
    35  	Tasks *[]string           `json:"tasks,omitempty"`
    36  }
    37  
    38  // OperateJobRequestOp defines model for OperateJobRequest.Op.
    39  type OperateJobRequestOp string
    40  
    41  // SetBinlogOperatorRequest defines model for SetBinlogOperatorRequest.
    42  type SetBinlogOperatorRequest struct {
    43  	BinlogPos *string                    `json:"binlog_pos,omitempty"`
    44  	Op        SetBinlogOperatorRequestOp `json:"op"`
    45  	Sqls      *[]string                  `json:"sqls,omitempty"`
    46  }
    47  
    48  // SetBinlogOperatorRequestOp defines model for SetBinlogOperatorRequest.Op.
    49  type SetBinlogOperatorRequestOp string
    50  
    51  // SetBinlogSchemaRequest defines model for SetBinlogSchemaRequest.
    52  type SetBinlogSchemaRequest struct {
    53  	Database   string `json:"database"`
    54  	FromSource *bool  `json:"from_source,omitempty"`
    55  	FromTarget *bool  `json:"from_target,omitempty"`
    56  	Sql        string `json:"sql"`
    57  	Table      string `json:"table"`
    58  }
    59  
    60  // UpdateJobConfigRequest defines model for UpdateJobConfigRequest.
    61  type UpdateJobConfigRequest struct {
    62  	Config string `json:"config"`
    63  }
    64  
    65  // DMAPIDeleteBinlogOperatorParams defines parameters for DMAPIDeleteBinlogOperator.
    66  type DMAPIDeleteBinlogOperatorParams struct {
    67  	BinlogPos *string `json:"binlog_pos,omitempty"`
    68  }
    69  
    70  // DMAPIGetBinlogOperatorParams defines parameters for DMAPIGetBinlogOperator.
    71  type DMAPIGetBinlogOperatorParams struct {
    72  	BinlogPos *string `json:"binlog_pos,omitempty"`
    73  }
    74  
    75  // DMAPISetBinlogOperatorJSONBody defines parameters for DMAPISetBinlogOperator.
    76  type DMAPISetBinlogOperatorJSONBody SetBinlogOperatorRequest
    77  
    78  // DMAPIUpdateJobConfigJSONBody defines parameters for DMAPIUpdateJobConfig.
    79  type DMAPIUpdateJobConfigJSONBody UpdateJobConfigRequest
    80  
    81  // DMAPIGetSchemaParams defines parameters for DMAPIGetSchema.
    82  type DMAPIGetSchemaParams struct {
    83  	// database name
    84  	Database *string `json:"database,omitempty"`
    85  
    86  	// table name
    87  	Table *string `json:"table,omitempty"`
    88  
    89  	// target table
    90  	Target *bool `json:"target,omitempty"`
    91  }
    92  
    93  // DMAPISetSchemaJSONBody defines parameters for DMAPISetSchema.
    94  type DMAPISetSchemaJSONBody SetBinlogSchemaRequest
    95  
    96  // DMAPIGetJobStatusParams defines parameters for DMAPIGetJobStatus.
    97  type DMAPIGetJobStatusParams struct {
    98  	// globally unique data source name
    99  	Tasks *[]string `json:"tasks,omitempty"`
   100  }
   101  
   102  // DMAPIOperateJobJSONBody defines parameters for DMAPIOperateJob.
   103  type DMAPIOperateJobJSONBody OperateJobRequest
   104  
   105  // DMAPISetBinlogOperatorJSONRequestBody defines body for DMAPISetBinlogOperator for application/json ContentType.
   106  type DMAPISetBinlogOperatorJSONRequestBody DMAPISetBinlogOperatorJSONBody
   107  
   108  // DMAPIUpdateJobConfigJSONRequestBody defines body for DMAPIUpdateJobConfig for application/json ContentType.
   109  type DMAPIUpdateJobConfigJSONRequestBody DMAPIUpdateJobConfigJSONBody
   110  
   111  // DMAPISetSchemaJSONRequestBody defines body for DMAPISetSchema for application/json ContentType.
   112  type DMAPISetSchemaJSONRequestBody DMAPISetSchemaJSONBody
   113  
   114  // DMAPIOperateJobJSONRequestBody defines body for DMAPIOperateJob for application/json ContentType.
   115  type DMAPIOperateJobJSONRequestBody DMAPIOperateJobJSONBody