import_operations

package
v0.0.0-...-a27efb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CreateImportTaskParamsBodySpecSourceTypeS3 captures enum value "S3"
	CreateImportTaskParamsBodySpecSourceTypeS3 string = "S3"

	// CreateImportTaskParamsBodySpecSourceTypeGCS captures enum value "GCS"
	CreateImportTaskParamsBodySpecSourceTypeGCS string = "GCS"

	// CreateImportTaskParamsBodySpecSourceTypeLOCALFILE captures enum value "LOCAL_FILE"
	CreateImportTaskParamsBodySpecSourceTypeLOCALFILE string = "LOCAL_FILE"
)
View Source
const (

	// CreateImportTaskParamsBodySpecSourceFormatTypeCSV captures enum value "CSV"
	CreateImportTaskParamsBodySpecSourceFormatTypeCSV string = "CSV"

	// CreateImportTaskParamsBodySpecSourceFormatTypePARQUET captures enum value "PARQUET"
	CreateImportTaskParamsBodySpecSourceFormatTypePARQUET string = "PARQUET"

	// CreateImportTaskParamsBodySpecSourceFormatTypeSQL captures enum value "SQL"
	CreateImportTaskParamsBodySpecSourceFormatTypeSQL string = "SQL"

	// CreateImportTaskParamsBodySpecSourceFormatTypeAURORASNAPSHOT captures enum value "AURORA_SNAPSHOT"
	CreateImportTaskParamsBodySpecSourceFormatTypeAURORASNAPSHOT string = "AURORA_SNAPSHOT"
)
View Source
const (

	// GetImportTaskOKBodySpecSourceTypeS3 captures enum value "S3"
	GetImportTaskOKBodySpecSourceTypeS3 string = "S3"

	// GetImportTaskOKBodySpecSourceTypeGCS captures enum value "GCS"
	GetImportTaskOKBodySpecSourceTypeGCS string = "GCS"

	// GetImportTaskOKBodySpecSourceTypeLOCALFILE captures enum value "LOCAL_FILE"
	GetImportTaskOKBodySpecSourceTypeLOCALFILE string = "LOCAL_FILE"
)
View Source
const (

	// GetImportTaskOKBodySpecSourceFormatTypeCSV captures enum value "CSV"
	GetImportTaskOKBodySpecSourceFormatTypeCSV string = "CSV"

	// GetImportTaskOKBodySpecSourceFormatTypePARQUET captures enum value "PARQUET"
	GetImportTaskOKBodySpecSourceFormatTypePARQUET string = "PARQUET"

	// GetImportTaskOKBodySpecSourceFormatTypeSQL captures enum value "SQL"
	GetImportTaskOKBodySpecSourceFormatTypeSQL string = "SQL"

	// GetImportTaskOKBodySpecSourceFormatTypeAURORASNAPSHOT captures enum value "AURORA_SNAPSHOT"
	GetImportTaskOKBodySpecSourceFormatTypeAURORASNAPSHOT string = "AURORA_SNAPSHOT"
)
View Source
const (

	// GetImportTaskOKBodyStatusPhasePREPARING captures enum value "PREPARING"
	GetImportTaskOKBodyStatusPhasePREPARING string = "PREPARING"

	// GetImportTaskOKBodyStatusPhaseIMPORTING captures enum value "IMPORTING"
	GetImportTaskOKBodyStatusPhaseIMPORTING string = "IMPORTING"

	// GetImportTaskOKBodyStatusPhaseCOMPLETED captures enum value "COMPLETED"
	GetImportTaskOKBodyStatusPhaseCOMPLETED string = "COMPLETED"

	// GetImportTaskOKBodyStatusPhaseFAILED captures enum value "FAILED"
	GetImportTaskOKBodyStatusPhaseFAILED string = "FAILED"

	// GetImportTaskOKBodyStatusPhaseCANCELING captures enum value "CANCELING"
	GetImportTaskOKBodyStatusPhaseCANCELING string = "CANCELING"

	// GetImportTaskOKBodyStatusPhaseCANCELED captures enum value "CANCELED"
	GetImportTaskOKBodyStatusPhaseCANCELED string = "CANCELED"
)
View Source
const (

	// ListImportTasksOKBodyItemsItems0SpecSourceTypeS3 captures enum value "S3"
	ListImportTasksOKBodyItemsItems0SpecSourceTypeS3 string = "S3"

	// ListImportTasksOKBodyItemsItems0SpecSourceTypeGCS captures enum value "GCS"
	ListImportTasksOKBodyItemsItems0SpecSourceTypeGCS string = "GCS"

	// ListImportTasksOKBodyItemsItems0SpecSourceTypeLOCALFILE captures enum value "LOCAL_FILE"
	ListImportTasksOKBodyItemsItems0SpecSourceTypeLOCALFILE string = "LOCAL_FILE"
)
View Source
const (

	// ListImportTasksOKBodyItemsItems0SpecSourceFormatTypeCSV captures enum value "CSV"
	ListImportTasksOKBodyItemsItems0SpecSourceFormatTypeCSV string = "CSV"

	// ListImportTasksOKBodyItemsItems0SpecSourceFormatTypePARQUET captures enum value "PARQUET"
	ListImportTasksOKBodyItemsItems0SpecSourceFormatTypePARQUET string = "PARQUET"

	// ListImportTasksOKBodyItemsItems0SpecSourceFormatTypeSQL captures enum value "SQL"
	ListImportTasksOKBodyItemsItems0SpecSourceFormatTypeSQL string = "SQL"

	// ListImportTasksOKBodyItemsItems0SpecSourceFormatTypeAURORASNAPSHOT captures enum value "AURORA_SNAPSHOT"
	ListImportTasksOKBodyItemsItems0SpecSourceFormatTypeAURORASNAPSHOT string = "AURORA_SNAPSHOT"
)
View Source
const (

	// ListImportTasksOKBodyItemsItems0StatusPhasePREPARING captures enum value "PREPARING"
	ListImportTasksOKBodyItemsItems0StatusPhasePREPARING string = "PREPARING"

	// ListImportTasksOKBodyItemsItems0StatusPhaseIMPORTING captures enum value "IMPORTING"
	ListImportTasksOKBodyItemsItems0StatusPhaseIMPORTING string = "IMPORTING"

	// ListImportTasksOKBodyItemsItems0StatusPhaseCOMPLETED captures enum value "COMPLETED"
	ListImportTasksOKBodyItemsItems0StatusPhaseCOMPLETED string = "COMPLETED"

	// ListImportTasksOKBodyItemsItems0StatusPhaseFAILED captures enum value "FAILED"
	ListImportTasksOKBodyItemsItems0StatusPhaseFAILED string = "FAILED"

	// ListImportTasksOKBodyItemsItems0StatusPhaseCANCELING captures enum value "CANCELING"
	ListImportTasksOKBodyItemsItems0StatusPhaseCANCELING string = "CANCELING"

	// ListImportTasksOKBodyItemsItems0StatusPhaseCANCELED captures enum value "CANCELED"
	ListImportTasksOKBodyItemsItems0StatusPhaseCANCELED string = "CANCELED"
)
View Source
const (

	// PreviewImportDataParamsBodySpecSourceTypeS3 captures enum value "S3"
	PreviewImportDataParamsBodySpecSourceTypeS3 string = "S3"

	// PreviewImportDataParamsBodySpecSourceTypeGCS captures enum value "GCS"
	PreviewImportDataParamsBodySpecSourceTypeGCS string = "GCS"

	// PreviewImportDataParamsBodySpecSourceTypeLOCALFILE captures enum value "LOCAL_FILE"
	PreviewImportDataParamsBodySpecSourceTypeLOCALFILE string = "LOCAL_FILE"
)
View Source
const (

	// PreviewImportDataParamsBodySpecSourceFormatTypeCSV captures enum value "CSV"
	PreviewImportDataParamsBodySpecSourceFormatTypeCSV string = "CSV"

	// PreviewImportDataParamsBodySpecSourceFormatTypePARQUET captures enum value "PARQUET"
	PreviewImportDataParamsBodySpecSourceFormatTypePARQUET string = "PARQUET"

	// PreviewImportDataParamsBodySpecSourceFormatTypeSQL captures enum value "SQL"
	PreviewImportDataParamsBodySpecSourceFormatTypeSQL string = "SQL"

	// PreviewImportDataParamsBodySpecSourceFormatTypeAURORASNAPSHOT captures enum value "AURORA_SNAPSHOT"
	PreviewImportDataParamsBodySpecSourceFormatTypeAURORASNAPSHOT string = "AURORA_SNAPSHOT"
)
View Source
const (

	// UpdateImportTaskBodyActionCANCEL captures enum value "CANCEL"
	UpdateImportTaskBodyActionCANCEL string = "CANCEL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for import operations API

func (*Client) CreateImportTask

func (a *Client) CreateImportTask(params *CreateImportTaskParams, opts ...ClientOption) (*CreateImportTaskOK, error)

CreateImportTask creates an import task

func (*Client) GetImportTask

func (a *Client) GetImportTask(params *GetImportTaskParams, opts ...ClientOption) (*GetImportTaskOK, error)

GetImportTask gets an import task

func (*Client) GetImportTaskRoleInfo

func (a *Client) GetImportTaskRoleInfo(params *GetImportTaskRoleInfoParams, opts ...ClientOption) (*GetImportTaskRoleInfoOK, error)

GetImportTaskRoleInfo retrieves the role information for import tasks on a cluster

Retrieve the role information for import tasks on a cluster, so that you can configure the access for the import tasks to retrieve the data from the data source. For more information on how to configure the access for the import tasks, refer to [Configure Amazon S3 Access and GCS Access](https://docs.pingcap.com/tidbcloud/config-s3-and-gcs-access).

func (*Client) ListImportTasks

func (a *Client) ListImportTasks(params *ListImportTasksParams, opts ...ClientOption) (*ListImportTasksOK, error)

ListImportTasks lists all import tasks for a cluster

func (*Client) PreviewImportData

func (a *Client) PreviewImportData(params *PreviewImportDataParams, opts ...ClientOption) (*PreviewImportDataOK, error)

PreviewImportData previews data before starting an import task

Before you create an import task, you can preview the data using this endpoint and make sure that the import task is configured as intended. The preview result is organized by tables.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateImportTask

func (a *Client) UpdateImportTask(params *UpdateImportTaskParams, opts ...ClientOption) (*UpdateImportTaskOK, error)

UpdateImportTask updates an import task

Update an import task from a cluster. Currently, this endpoint only supports canceling the import task if the current phase of the import task is `PREPARING` or `IMPORTING`.

func (*Client) UploadLocalFile

func (a *Client) UploadLocalFile(params *UploadLocalFileParams, opts ...ClientOption) (*UploadLocalFileOK, error)
UploadLocalFile uploads a local file for an import task

If you need to import data from a local file, you must first upload the file using this endpoint before you create an import task using the [Create an import task](#tag/Import/operation/CreateImportTask) endpoint.

Uploading a local file is only available for TiDB Serverless clusters.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateImportTask(params *CreateImportTaskParams, opts ...ClientOption) (*CreateImportTaskOK, error)

	GetImportTask(params *GetImportTaskParams, opts ...ClientOption) (*GetImportTaskOK, error)

	GetImportTaskRoleInfo(params *GetImportTaskRoleInfoParams, opts ...ClientOption) (*GetImportTaskRoleInfoOK, error)

	ListImportTasks(params *ListImportTasksParams, opts ...ClientOption) (*ListImportTasksOK, error)

	PreviewImportData(params *PreviewImportDataParams, opts ...ClientOption) (*PreviewImportDataOK, error)

	UpdateImportTask(params *UpdateImportTaskParams, opts ...ClientOption) (*UpdateImportTaskOK, error)

	UploadLocalFile(params *UploadLocalFileParams, opts ...ClientOption) (*UploadLocalFileOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new import operations API client.

type CreateImportTaskBadRequest

type CreateImportTaskBadRequest struct {
	Payload *CreateImportTaskBadRequestBody
}

CreateImportTaskBadRequest describes a response with status code 400, with default header values.

A request field is invalid.

func NewCreateImportTaskBadRequest

func NewCreateImportTaskBadRequest() *CreateImportTaskBadRequest

NewCreateImportTaskBadRequest creates a CreateImportTaskBadRequest with default headers values

func (*CreateImportTaskBadRequest) Code

func (o *CreateImportTaskBadRequest) Code() int

Code gets the status code for the create import task bad request response

func (*CreateImportTaskBadRequest) Error

func (*CreateImportTaskBadRequest) GetPayload

func (*CreateImportTaskBadRequest) IsClientError

func (o *CreateImportTaskBadRequest) IsClientError() bool

IsClientError returns true when this create import task bad request response has a 4xx status code

func (*CreateImportTaskBadRequest) IsCode

func (o *CreateImportTaskBadRequest) IsCode(code int) bool

IsCode returns true when this create import task bad request response a status code equal to that given

func (*CreateImportTaskBadRequest) IsRedirect

func (o *CreateImportTaskBadRequest) IsRedirect() bool

IsRedirect returns true when this create import task bad request response has a 3xx status code

func (*CreateImportTaskBadRequest) IsServerError

func (o *CreateImportTaskBadRequest) IsServerError() bool

IsServerError returns true when this create import task bad request response has a 5xx status code

func (*CreateImportTaskBadRequest) IsSuccess

func (o *CreateImportTaskBadRequest) IsSuccess() bool

IsSuccess returns true when this create import task bad request response has a 2xx status code

func (*CreateImportTaskBadRequest) String

func (o *CreateImportTaskBadRequest) String() string

type CreateImportTaskBadRequestBody

type CreateImportTaskBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateImportTaskBadRequestBody create import task bad request body swagger:model CreateImportTaskBadRequestBody

func (*CreateImportTaskBadRequestBody) ContextValidate

func (o *CreateImportTaskBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create import task bad request body based on context it is used

func (*CreateImportTaskBadRequestBody) MarshalBinary

func (o *CreateImportTaskBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskBadRequestBody) UnmarshalBinary

func (o *CreateImportTaskBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskBadRequestBody) Validate

func (o *CreateImportTaskBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this create import task bad request body

type CreateImportTaskBody

type CreateImportTaskBody struct {

	// The name of an import task. The maximum length of the name is 64 characters.
	//
	// It is recommended that you use a unique name, so that you can easily identify the import task when you list all import tasks. If the name is not provided, a default name is generated with an `import_` prefix followed by a time string representing the creation time of the import task. For example, `import_2023-01-01T00:00:30Z`.
	// Example: import_2023-01-01T00:00:30Z
	// Max Length: 64
	Name string `json:"name,omitempty"`

	// options
	Options *CreateImportTaskParamsBodyOptions `json:"options,omitempty"`

	// spec
	// Required: true
	Spec *CreateImportTaskParamsBodySpec `json:"spec"`
}

CreateImportTaskBody CreateImportTaskReq // // CreateImportTaskReq is the request to create an import task for a cluster. swagger:model CreateImportTaskBody

func (*CreateImportTaskBody) ContextValidate

func (o *CreateImportTaskBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create import task body based on the context it is used

func (*CreateImportTaskBody) MarshalBinary

func (o *CreateImportTaskBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskBody) UnmarshalBinary

func (o *CreateImportTaskBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskBody) Validate

func (o *CreateImportTaskBody) Validate(formats strfmt.Registry) error

Validate validates this create import task body

type CreateImportTaskDefault

type CreateImportTaskDefault struct {
	Payload *CreateImportTaskDefaultBody
	// contains filtered or unexported fields
}

CreateImportTaskDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCreateImportTaskDefault

func NewCreateImportTaskDefault(code int) *CreateImportTaskDefault

NewCreateImportTaskDefault creates a CreateImportTaskDefault with default headers values

func (*CreateImportTaskDefault) Code

func (o *CreateImportTaskDefault) Code() int

Code gets the status code for the create import task default response

func (*CreateImportTaskDefault) Error

func (o *CreateImportTaskDefault) Error() string

func (*CreateImportTaskDefault) GetPayload

func (*CreateImportTaskDefault) IsClientError

func (o *CreateImportTaskDefault) IsClientError() bool

IsClientError returns true when this create import task default response has a 4xx status code

func (*CreateImportTaskDefault) IsCode

func (o *CreateImportTaskDefault) IsCode(code int) bool

IsCode returns true when this create import task default response a status code equal to that given

func (*CreateImportTaskDefault) IsRedirect

func (o *CreateImportTaskDefault) IsRedirect() bool

IsRedirect returns true when this create import task default response has a 3xx status code

func (*CreateImportTaskDefault) IsServerError

func (o *CreateImportTaskDefault) IsServerError() bool

IsServerError returns true when this create import task default response has a 5xx status code

func (*CreateImportTaskDefault) IsSuccess

func (o *CreateImportTaskDefault) IsSuccess() bool

IsSuccess returns true when this create import task default response has a 2xx status code

func (*CreateImportTaskDefault) String

func (o *CreateImportTaskDefault) String() string

type CreateImportTaskDefaultBody

type CreateImportTaskDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*CreateImportTaskDefaultBodyDetailsItems0 `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

CreateImportTaskDefaultBody create import task default body swagger:model CreateImportTaskDefaultBody

func (*CreateImportTaskDefaultBody) ContextValidate

func (o *CreateImportTaskDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create import task default body based on the context it is used

func (*CreateImportTaskDefaultBody) MarshalBinary

func (o *CreateImportTaskDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskDefaultBody) UnmarshalBinary

func (o *CreateImportTaskDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskDefaultBody) Validate

func (o *CreateImportTaskDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this create import task default body

type CreateImportTaskDefaultBodyDetailsItems0

type CreateImportTaskDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

CreateImportTaskDefaultBodyDetailsItems0 create import task default body details items0 swagger:model CreateImportTaskDefaultBodyDetailsItems0

func (*CreateImportTaskDefaultBodyDetailsItems0) ContextValidate

ContextValidate validates this create import task default body details items0 based on context it is used

func (*CreateImportTaskDefaultBodyDetailsItems0) MarshalBinary

func (o *CreateImportTaskDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskDefaultBodyDetailsItems0) UnmarshalBinary

func (o *CreateImportTaskDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskDefaultBodyDetailsItems0) Validate

Validate validates this create import task default body details items0

type CreateImportTaskForbidden

type CreateImportTaskForbidden struct {
	Payload *CreateImportTaskForbiddenBody
}

CreateImportTaskForbidden describes a response with status code 403, with default header values.

The API key does not have permission to access the resource.

func NewCreateImportTaskForbidden

func NewCreateImportTaskForbidden() *CreateImportTaskForbidden

NewCreateImportTaskForbidden creates a CreateImportTaskForbidden with default headers values

func (*CreateImportTaskForbidden) Code

func (o *CreateImportTaskForbidden) Code() int

Code gets the status code for the create import task forbidden response

func (*CreateImportTaskForbidden) Error

func (o *CreateImportTaskForbidden) Error() string

func (*CreateImportTaskForbidden) GetPayload

func (*CreateImportTaskForbidden) IsClientError

func (o *CreateImportTaskForbidden) IsClientError() bool

IsClientError returns true when this create import task forbidden response has a 4xx status code

func (*CreateImportTaskForbidden) IsCode

func (o *CreateImportTaskForbidden) IsCode(code int) bool

IsCode returns true when this create import task forbidden response a status code equal to that given

func (*CreateImportTaskForbidden) IsRedirect

func (o *CreateImportTaskForbidden) IsRedirect() bool

IsRedirect returns true when this create import task forbidden response has a 3xx status code

func (*CreateImportTaskForbidden) IsServerError

func (o *CreateImportTaskForbidden) IsServerError() bool

IsServerError returns true when this create import task forbidden response has a 5xx status code

func (*CreateImportTaskForbidden) IsSuccess

func (o *CreateImportTaskForbidden) IsSuccess() bool

IsSuccess returns true when this create import task forbidden response has a 2xx status code

func (*CreateImportTaskForbidden) String

func (o *CreateImportTaskForbidden) String() string

type CreateImportTaskForbiddenBody

type CreateImportTaskForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateImportTaskForbiddenBody create import task forbidden body swagger:model CreateImportTaskForbiddenBody

func (*CreateImportTaskForbiddenBody) ContextValidate

func (o *CreateImportTaskForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create import task forbidden body based on context it is used

func (*CreateImportTaskForbiddenBody) MarshalBinary

func (o *CreateImportTaskForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskForbiddenBody) UnmarshalBinary

func (o *CreateImportTaskForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskForbiddenBody) Validate

func (o *CreateImportTaskForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this create import task forbidden body

type CreateImportTaskInternalServerError

type CreateImportTaskInternalServerError struct {
	Payload *CreateImportTaskInternalServerErrorBody
}

CreateImportTaskInternalServerError describes a response with status code 500, with default header values.

Server error.

func NewCreateImportTaskInternalServerError

func NewCreateImportTaskInternalServerError() *CreateImportTaskInternalServerError

NewCreateImportTaskInternalServerError creates a CreateImportTaskInternalServerError with default headers values

func (*CreateImportTaskInternalServerError) Code

Code gets the status code for the create import task internal server error response

func (*CreateImportTaskInternalServerError) Error

func (*CreateImportTaskInternalServerError) GetPayload

func (*CreateImportTaskInternalServerError) IsClientError

func (o *CreateImportTaskInternalServerError) IsClientError() bool

IsClientError returns true when this create import task internal server error response has a 4xx status code

func (*CreateImportTaskInternalServerError) IsCode

IsCode returns true when this create import task internal server error response a status code equal to that given

func (*CreateImportTaskInternalServerError) IsRedirect

func (o *CreateImportTaskInternalServerError) IsRedirect() bool

IsRedirect returns true when this create import task internal server error response has a 3xx status code

func (*CreateImportTaskInternalServerError) IsServerError

func (o *CreateImportTaskInternalServerError) IsServerError() bool

IsServerError returns true when this create import task internal server error response has a 5xx status code

func (*CreateImportTaskInternalServerError) IsSuccess

IsSuccess returns true when this create import task internal server error response has a 2xx status code

func (*CreateImportTaskInternalServerError) String

type CreateImportTaskInternalServerErrorBody

type CreateImportTaskInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateImportTaskInternalServerErrorBody create import task internal server error body swagger:model CreateImportTaskInternalServerErrorBody

func (*CreateImportTaskInternalServerErrorBody) ContextValidate

ContextValidate validates this create import task internal server error body based on context it is used

func (*CreateImportTaskInternalServerErrorBody) MarshalBinary

func (o *CreateImportTaskInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskInternalServerErrorBody) UnmarshalBinary

func (o *CreateImportTaskInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskInternalServerErrorBody) Validate

Validate validates this create import task internal server error body

type CreateImportTaskNotFound

type CreateImportTaskNotFound struct {
	Payload *CreateImportTaskNotFoundBody
}

CreateImportTaskNotFound describes a response with status code 404, with default header values.

The requested resource does not exist.

func NewCreateImportTaskNotFound

func NewCreateImportTaskNotFound() *CreateImportTaskNotFound

NewCreateImportTaskNotFound creates a CreateImportTaskNotFound with default headers values

func (*CreateImportTaskNotFound) Code

func (o *CreateImportTaskNotFound) Code() int

Code gets the status code for the create import task not found response

func (*CreateImportTaskNotFound) Error

func (o *CreateImportTaskNotFound) Error() string

func (*CreateImportTaskNotFound) GetPayload

func (*CreateImportTaskNotFound) IsClientError

func (o *CreateImportTaskNotFound) IsClientError() bool

IsClientError returns true when this create import task not found response has a 4xx status code

func (*CreateImportTaskNotFound) IsCode

func (o *CreateImportTaskNotFound) IsCode(code int) bool

IsCode returns true when this create import task not found response a status code equal to that given

func (*CreateImportTaskNotFound) IsRedirect

func (o *CreateImportTaskNotFound) IsRedirect() bool

IsRedirect returns true when this create import task not found response has a 3xx status code

func (*CreateImportTaskNotFound) IsServerError

func (o *CreateImportTaskNotFound) IsServerError() bool

IsServerError returns true when this create import task not found response has a 5xx status code

func (*CreateImportTaskNotFound) IsSuccess

func (o *CreateImportTaskNotFound) IsSuccess() bool

IsSuccess returns true when this create import task not found response has a 2xx status code

func (*CreateImportTaskNotFound) String

func (o *CreateImportTaskNotFound) String() string

type CreateImportTaskNotFoundBody

type CreateImportTaskNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateImportTaskNotFoundBody create import task not found body swagger:model CreateImportTaskNotFoundBody

func (*CreateImportTaskNotFoundBody) ContextValidate

func (o *CreateImportTaskNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create import task not found body based on context it is used

func (*CreateImportTaskNotFoundBody) MarshalBinary

func (o *CreateImportTaskNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskNotFoundBody) UnmarshalBinary

func (o *CreateImportTaskNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskNotFoundBody) Validate

func (o *CreateImportTaskNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this create import task not found body

type CreateImportTaskOK

type CreateImportTaskOK struct {
	Payload *CreateImportTaskOKBody
}

CreateImportTaskOK describes a response with status code 200, with default header values.

A successful response.

func NewCreateImportTaskOK

func NewCreateImportTaskOK() *CreateImportTaskOK

NewCreateImportTaskOK creates a CreateImportTaskOK with default headers values

func (*CreateImportTaskOK) Code

func (o *CreateImportTaskOK) Code() int

Code gets the status code for the create import task o k response

func (*CreateImportTaskOK) Error

func (o *CreateImportTaskOK) Error() string

func (*CreateImportTaskOK) GetPayload

func (o *CreateImportTaskOK) GetPayload() *CreateImportTaskOKBody

func (*CreateImportTaskOK) IsClientError

func (o *CreateImportTaskOK) IsClientError() bool

IsClientError returns true when this create import task o k response has a 4xx status code

func (*CreateImportTaskOK) IsCode

func (o *CreateImportTaskOK) IsCode(code int) bool

IsCode returns true when this create import task o k response a status code equal to that given

func (*CreateImportTaskOK) IsRedirect

func (o *CreateImportTaskOK) IsRedirect() bool

IsRedirect returns true when this create import task o k response has a 3xx status code

func (*CreateImportTaskOK) IsServerError

func (o *CreateImportTaskOK) IsServerError() bool

IsServerError returns true when this create import task o k response has a 5xx status code

func (*CreateImportTaskOK) IsSuccess

func (o *CreateImportTaskOK) IsSuccess() bool

IsSuccess returns true when this create import task o k response has a 2xx status code

func (*CreateImportTaskOK) String

func (o *CreateImportTaskOK) String() string

type CreateImportTaskOKBody

type CreateImportTaskOKBody struct {

	// The ID of the import task.
	// Example: 12345
	// Required: true
	ID *string `json:"id"`
}

CreateImportTaskOKBody CreateImportTaskResp // // CreateImportTaskResp is the response to the creation of an import task. swagger:model CreateImportTaskOKBody

func (*CreateImportTaskOKBody) ContextValidate

func (o *CreateImportTaskOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create import task o k body based on context it is used

func (*CreateImportTaskOKBody) MarshalBinary

func (o *CreateImportTaskOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskOKBody) UnmarshalBinary

func (o *CreateImportTaskOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskOKBody) Validate

func (o *CreateImportTaskOKBody) Validate(formats strfmt.Registry) error

Validate validates this create import task o k body

type CreateImportTaskParams

type CreateImportTaskParams struct {

	// Body.
	Body CreateImportTaskBody

	/* ClusterID.

	   The ID of your cluster that you want to start an import job. You can get the cluster ID from the response of [List all clusters in a project](#tag/Cluster/operation/ListClustersOfProject).

	   Format: uint64
	*/
	ClusterID string

	/* ProjectID.

	   The ID of your project. You can get the project ID from the response of [List all accessible projects](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateImportTaskParams contains all the parameters to send to the API endpoint

for the create import task operation.

Typically these are written to a http.Request.

func NewCreateImportTaskParams

func NewCreateImportTaskParams() *CreateImportTaskParams

NewCreateImportTaskParams creates a new CreateImportTaskParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateImportTaskParamsWithContext

func NewCreateImportTaskParamsWithContext(ctx context.Context) *CreateImportTaskParams

NewCreateImportTaskParamsWithContext creates a new CreateImportTaskParams object with the ability to set a context for a request.

func NewCreateImportTaskParamsWithHTTPClient

func NewCreateImportTaskParamsWithHTTPClient(client *http.Client) *CreateImportTaskParams

NewCreateImportTaskParamsWithHTTPClient creates a new CreateImportTaskParams object with the ability to set a custom HTTPClient for a request.

func NewCreateImportTaskParamsWithTimeout

func NewCreateImportTaskParamsWithTimeout(timeout time.Duration) *CreateImportTaskParams

NewCreateImportTaskParamsWithTimeout creates a new CreateImportTaskParams object with the ability to set a timeout on a request.

func (*CreateImportTaskParams) SetBody

SetBody adds the body to the create import task params

func (*CreateImportTaskParams) SetClusterID

func (o *CreateImportTaskParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the create import task params

func (*CreateImportTaskParams) SetContext

func (o *CreateImportTaskParams) SetContext(ctx context.Context)

SetContext adds the context to the create import task params

func (*CreateImportTaskParams) SetDefaults

func (o *CreateImportTaskParams) SetDefaults()

SetDefaults hydrates default values in the create import task params (not the query body).

All values with no default are reset to their zero value.

func (*CreateImportTaskParams) SetHTTPClient

func (o *CreateImportTaskParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create import task params

func (*CreateImportTaskParams) SetProjectID

func (o *CreateImportTaskParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the create import task params

func (*CreateImportTaskParams) SetTimeout

func (o *CreateImportTaskParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create import task params

func (*CreateImportTaskParams) WithBody

WithBody adds the body to the create import task params

func (*CreateImportTaskParams) WithClusterID

func (o *CreateImportTaskParams) WithClusterID(clusterID string) *CreateImportTaskParams

WithClusterID adds the clusterID to the create import task params

func (*CreateImportTaskParams) WithContext

WithContext adds the context to the create import task params

func (*CreateImportTaskParams) WithDefaults

WithDefaults hydrates default values in the create import task params (not the query body).

All values with no default are reset to their zero value.

func (*CreateImportTaskParams) WithHTTPClient

func (o *CreateImportTaskParams) WithHTTPClient(client *http.Client) *CreateImportTaskParams

WithHTTPClient adds the HTTPClient to the create import task params

func (*CreateImportTaskParams) WithProjectID

func (o *CreateImportTaskParams) WithProjectID(projectID string) *CreateImportTaskParams

WithProjectID adds the projectID to the create import task params

func (*CreateImportTaskParams) WithTimeout

WithTimeout adds the timeout to the create import task params

func (*CreateImportTaskParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateImportTaskParamsBodyOptions

type CreateImportTaskParamsBodyOptions struct {

	// The table definition of pre-created tables.
	//
	// **Note**: The name of the pre-created tables should match one of the target tables. Otherwise, the table will be ignored and won't be created
	PreCreateTables []*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0 `json:"pre_create_tables"`
}

CreateImportTaskParamsBodyOptions CreateImportTaskOptions // // The additional options for creating an import task. swagger:model CreateImportTaskParamsBodyOptions

func (*CreateImportTaskParamsBodyOptions) ContextValidate

func (o *CreateImportTaskParamsBodyOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create import task params body options based on the context it is used

func (*CreateImportTaskParamsBodyOptions) MarshalBinary

func (o *CreateImportTaskParamsBodyOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodyOptions) UnmarshalBinary

func (o *CreateImportTaskParamsBodyOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodyOptions) Validate

Validate validates this create import task params body options

type CreateImportTaskParamsBodyOptionsPreCreateTablesItems0

type CreateImportTaskParamsBodyOptionsPreCreateTablesItems0 struct {

	// The database name of the table.
	// Example: db01
	// Required: true
	DatabaseName *string `json:"database_name"`

	// schema
	// Required: true
	Schema *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema `json:"schema"`

	// The table name of the table.
	// Example: table01
	// Required: true
	TableName *string `json:"table_name"`
}

CreateImportTaskParamsBodyOptionsPreCreateTablesItems0 TableDefinition // // TableDefinition is the definition of a table so that the table can be created with this information. swagger:model CreateImportTaskParamsBodyOptionsPreCreateTablesItems0

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) ContextValidate

ContextValidate validate this create import task params body options pre create tables items0 based on the context it is used

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) MarshalBinary

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) Validate

Validate validates this create import task params body options pre create tables items0

type CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema

type CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema struct {

	// The column definition for each column in the table.
	// Example: [{"column_name":"id","column_type":"INTEGER"},{"column_name":"column01","column_type":"VARCHAR(255)"}]
	// Required: true
	ColumnDefinitions []*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0 `json:"column_definitions"`

	// The primary key column names for the table. This is optional. The primary key is taken into account when the table is pre-created before an import task is started.
	// Example: ["id"]
	PrimaryKeyColumns []string `json:"primary_key_columns"`
}

CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema TableSchema // // The schema for the table. swagger:model CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) ContextValidate

ContextValidate validate this create import task params body options pre create tables items0 schema based on the context it is used

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) MarshalBinary

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) Validate

Validate validates this create import task params body options pre create tables items0 schema

type CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0

type CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0 struct {

	// The column name.
	// Example: column01
	// Required: true
	ColumnName *string `json:"column_name"`

	// The column type.
	// Example: VARCHAR(255)
	// Required: true
	ColumnType *string `json:"column_type"`
}

CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0 ColumnDefinition // // ColumnDefinition is the definition of a column in a table. swagger:model CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) ContextValidate

ContextValidate validates this create import task params body options pre create tables items0 schema column definitions items0 based on context it is used

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) MarshalBinary

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) Validate

Validate validates this create import task params body options pre create tables items0 schema column definitions items0

type CreateImportTaskParamsBodySpec

type CreateImportTaskParamsBodySpec struct {

	// source
	// Required: true
	Source *CreateImportTaskParamsBodySpecSource `json:"source"`

	// target
	// Required: true
	Target *CreateImportTaskParamsBodySpecTarget `json:"target"`
}

CreateImportTaskParamsBodySpec ImportSpec // // The specifications of the import task. swagger:model CreateImportTaskParamsBodySpec

func (*CreateImportTaskParamsBodySpec) ContextValidate

func (o *CreateImportTaskParamsBodySpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create import task params body spec based on the context it is used

func (*CreateImportTaskParamsBodySpec) MarshalBinary

func (o *CreateImportTaskParamsBodySpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpec) UnmarshalBinary

func (o *CreateImportTaskParamsBodySpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpec) Validate

func (o *CreateImportTaskParamsBodySpec) Validate(formats strfmt.Registry) error

Validate validates this create import task params body spec

type CreateImportTaskParamsBodySpecSource

type CreateImportTaskParamsBodySpecSource struct {

	// aws assume role access
	AwsAssumeRoleAccess *CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess `json:"aws_assume_role_access,omitempty"`

	// aws key access
	AwsKeyAccess *CreateImportTaskParamsBodySpecSourceAwsKeyAccess `json:"aws_key_access,omitempty"`

	// format
	// Required: true
	Format *CreateImportTaskParamsBodySpecSourceFormat `json:"format"`

	// The data source type of an import task.
	//
	// - `"S3"`: import data from Amazon S3
	// - `"GCS"`: import data from Google Cloud Storage
	// - `"LOCAL_FILE"`: import data from a local file (only available for [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless) clusters). Before you import from a local file, you need to first upload the file using the [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile) endpoint.
	//
	// **Note:** Currently, if this import spec is used for a [preview](#tag/Import/operation/PreviewImportData) request, only the `LOCAL_FILE` source type is supported.
	// Example: S3
	// Required: true
	// Enum: [S3 GCS LOCAL_FILE]
	Type *string `json:"type"`

	// The data source URI of an import task. The URI scheme must match the data source type. Here are the scheme of each source type:
	// * `S3`: `s3://`
	// * `GCS`: `gs://`
	// * `LOCAL_FILE`: `file://`.
	//
	// **Note:** If the import source type is `LOCAL_FILE`, just provide the `upload_stub_id` of the uploaded file from the response of [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile), and make it as the data source folder. For example: `file://12345/`.
	//
	// **Limitation**: If the import source type is `LOCAL_FILE`, only the `CSV` source format type is supported.
	// Example: s3://example-bucket/example-source-data/
	// Required: true
	URI *string `json:"uri"`
}

CreateImportTaskParamsBodySpecSource ImportSource // // The data source settings of the import task. swagger:model CreateImportTaskParamsBodySpecSource

func (*CreateImportTaskParamsBodySpecSource) ContextValidate

func (o *CreateImportTaskParamsBodySpecSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create import task params body spec source based on the context it is used

func (*CreateImportTaskParamsBodySpecSource) MarshalBinary

func (o *CreateImportTaskParamsBodySpecSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSource) UnmarshalBinary

func (o *CreateImportTaskParamsBodySpecSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSource) Validate

Validate validates this create import task params body spec source

type CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess

type CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess struct {

	// The specific AWS role ARN that needs to be assumed to access the Amazon S3 data source.
	// Example: arn:aws:iam::999999999999:role/sample-role
	// Required: true
	AssumeRole *string `json:"assume_role"`
}

CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess AwsAssumeRoleAccess // // The settings to access the S3 data by assuming a specific AWS role. This field is only needed if you need to access S3 data by assuming an AWS role. // // **Note:** Provide only one of `aws_assume_role_access` and `aws_key_access`. If both `aws_assume_role_access` and `aws_key_access` are provided, an error will be reported. swagger:model CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess

func (*CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) ContextValidate

ContextValidate validates this create import task params body spec source aws assume role access based on context it is used

func (*CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) MarshalBinary

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) Validate

Validate validates this create import task params body spec source aws assume role access

type CreateImportTaskParamsBodySpecSourceAwsKeyAccess

type CreateImportTaskParamsBodySpecSourceAwsKeyAccess struct {

	// The access key ID of the account to access the data. This information will be redacted when it is retrieved to obtain the import task information.
	// Example: YOUR_ACCESS_KEY_ID
	// Required: true
	AccessKeyID *string `json:"access_key_id"`

	// The secret access key for the account to access the data. This information will be redacted when it is retrieved to obtain the import task information.
	// Example: YOUR_SECRET_ACCESS_KEY
	// Required: true
	SecretAccessKey *string `json:"secret_access_key"`
}

CreateImportTaskParamsBodySpecSourceAwsKeyAccess AwsKeyAccess // // The settings to access the S3 data with an access key. This field is only needed if you want to access the S3 data with an access key. // // **Note:** Provide only one of `aws_assume_role_access` and `aws_key_access`. If both `aws_assume_role_access` and `aws_key_access` are provided, an error will be reported. swagger:model CreateImportTaskParamsBodySpecSourceAwsKeyAccess

func (*CreateImportTaskParamsBodySpecSourceAwsKeyAccess) ContextValidate

ContextValidate validates this create import task params body spec source aws key access based on context it is used

func (*CreateImportTaskParamsBodySpecSourceAwsKeyAccess) MarshalBinary

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSourceAwsKeyAccess) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSourceAwsKeyAccess) Validate

Validate validates this create import task params body spec source aws key access

type CreateImportTaskParamsBodySpecSourceFormat

type CreateImportTaskParamsBodySpecSourceFormat struct {

	// csv config
	CsvConfig *CreateImportTaskParamsBodySpecSourceFormatCsvConfig `json:"csv_config,omitempty"`

	// The format type of an import source.
	// Example: CSV
	// Required: true
	// Enum: [CSV PARQUET SQL AURORA_SNAPSHOT]
	Type *string `json:"type"`
}

CreateImportTaskParamsBodySpecSourceFormat ImportSourceFormat // // The format settings of the import data source. swagger:model CreateImportTaskParamsBodySpecSourceFormat

func (*CreateImportTaskParamsBodySpecSourceFormat) ContextValidate

ContextValidate validate this create import task params body spec source format based on the context it is used

func (*CreateImportTaskParamsBodySpecSourceFormat) MarshalBinary

func (o *CreateImportTaskParamsBodySpecSourceFormat) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSourceFormat) UnmarshalBinary

func (o *CreateImportTaskParamsBodySpecSourceFormat) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSourceFormat) Validate

Validate validates this create import task params body spec source format

type CreateImportTaskParamsBodySpecSourceFormatCsvConfig

type CreateImportTaskParamsBodySpecSourceFormatCsvConfig struct {

	// Whether a backslash (`\`) symbol followed by a character should be combined as a whole and treated as an escape sequence in a CSV field. For example, if this parameter is set to `true`, `\n` will be treated as a 'new-line' character. If it is set to `false`, `\n` will be treated as two separate characters: backslash and `n`.
	//
	// Currently, these are several supported escape sequences: `\0`, `\b`, `\n`, `\r`, `\t`, and `\Z`. If the parameter is set to `true`, but the backslash escape sequence is not recognized, the backslash character is ignored.
	BackslashEscape *bool `json:"backslash_escape,omitempty"`

	// The delimiter character used to separate fields in the CSV data.
	Delimiter *string `json:"delimiter,omitempty"`

	// Whether the CSV data has a header row, which is not part of the data. If it is set to `true`, the import task will use the column names in the header row to match the column names in the target table.
	HasHeaderRow *bool `json:"has_header_row,omitempty"`

	// The character used to quote the fields in the CSV data.
	Quote *string `json:"quote,omitempty"`
}

CreateImportTaskParamsBodySpecSourceFormatCsvConfig ImportSourceCSVConfig // // The CSV format settings to parse the source CSV files. This field is only needed if the source format is CSV. swagger:model CreateImportTaskParamsBodySpecSourceFormatCsvConfig

func (*CreateImportTaskParamsBodySpecSourceFormatCsvConfig) ContextValidate

ContextValidate validates this create import task params body spec source format csv config based on context it is used

func (*CreateImportTaskParamsBodySpecSourceFormatCsvConfig) MarshalBinary

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSourceFormatCsvConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecSourceFormatCsvConfig) Validate

Validate validates this create import task params body spec source format csv config

type CreateImportTaskParamsBodySpecTarget

type CreateImportTaskParamsBodySpecTarget struct {

	// The settings for each target table that is being imported for the import task. If you leave it empty, the system will scan all the files in the data source using the default file patterns and collect all the tables to import. The files include data files, table schema files, and DB schema files. If you provide a list of tables, only those tables will be imported. For more information about the default file pattern, see [Import CSV Files from Amazon S3 or GCS into TiDB Cloud](https://docs.pingcap.com/tidbcloud/import-csv-files).
	//
	// **Limitations:**
	// * Currently, if you want to use a custom filename pattern, you can only specify one table. If all the tables use the default filename pattern, you can specify more than one target table in `tables`.
	// * It is recommended that you pre-create the target tables before creating an import task. You can do this either by executing the `CREATE TABLE` statement in the cluster or by specifying the table definition in the table creation options.
	// * If a target table is not created, the import module tries to find a **TABLE SCHEMA FILE** containing the `CREATE TABLE` statement of the table in the data source folder with the name `${db_name}.${table_name}-schema.sql` (for example, `db01.tbl01-schema.sql`). If this file is found, the `CREATE TABLE` statement is automatically executed if the table doesn't exist before the actual import process starts. If the table is still missing after this pre-create step, an error will occur.
	Tables []*CreateImportTaskParamsBodySpecTargetTablesItems0 `json:"tables"`
}

CreateImportTaskParamsBodySpecTarget ImportTarget // // The target settings of the import task. swagger:model CreateImportTaskParamsBodySpecTarget

func (*CreateImportTaskParamsBodySpecTarget) ContextValidate

func (o *CreateImportTaskParamsBodySpecTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create import task params body spec target based on the context it is used

func (*CreateImportTaskParamsBodySpecTarget) MarshalBinary

func (o *CreateImportTaskParamsBodySpecTarget) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecTarget) UnmarshalBinary

func (o *CreateImportTaskParamsBodySpecTarget) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecTarget) Validate

Validate validates this create import task params body spec target

type CreateImportTaskParamsBodySpecTargetTablesItems0

type CreateImportTaskParamsBodySpecTargetTablesItems0 struct {

	// The target database name.
	// Example: db01
	// Required: true
	DatabaseName *string `json:"database_name"`

	// The filename pattern used to map the files in the data source to this target table. The pattern should be a simple glob pattern. Here are some examples:
	// * `my-data?.csv`: all CSV files starting with `my-data` and one character (such as `my-data1.csv` and `my-data2.csv`) will be imported into the same target table.
	// * `my-data*.csv`: all CSV files starting with `my-data` will be imported into the same target table.
	//
	// If no pattern is specified, a default pattern is used. The default pattern will try to find files with this naming convention as the data files for this table: `${db_name}.${table_name}.[numeric_index].${format_suffix}`.
	//
	// Here are some examples of filenames that can be matched as data files for the table `db01.table01`: `db01.table01.csv`, `db01.table01.00001.csv`.
	//
	// For more information about the custom file pattern and the default pattern, refer to [Import CSV Files from Amazon S3 or GCS into TiDB Cloud](https://docs.pingcap.com/tidbcloud/import-csv-files).
	//
	// **Note:** For `LOCAL_FILE` import tasks, use the local file name for this field. The local file name must match the local file name in [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile).
	// Example: data/db01/table01.*.csv
	FileNamePattern string `json:"file_name_pattern,omitempty"`

	// The target table name.
	// Example: table01
	// Required: true
	TableName *string `json:"table_name"`
}

CreateImportTaskParamsBodySpecTargetTablesItems0 ImportTargetTable // // ImportTargetTable represents the settings for importing source data into a single target table of an import task. swagger:model CreateImportTaskParamsBodySpecTargetTablesItems0

func (*CreateImportTaskParamsBodySpecTargetTablesItems0) ContextValidate

ContextValidate validates this create import task params body spec target tables items0 based on context it is used

func (*CreateImportTaskParamsBodySpecTargetTablesItems0) MarshalBinary

MarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecTargetTablesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateImportTaskParamsBodySpecTargetTablesItems0) Validate

Validate validates this create import task params body spec target tables items0

type CreateImportTaskReader

type CreateImportTaskReader struct {
	// contains filtered or unexported fields
}

CreateImportTaskReader is a Reader for the CreateImportTask structure.

func (*CreateImportTaskReader) ReadResponse

func (o *CreateImportTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateImportTaskTooManyRequests

type CreateImportTaskTooManyRequests struct {
	Payload *CreateImportTaskTooManyRequestsBody
}

CreateImportTaskTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewCreateImportTaskTooManyRequests

func NewCreateImportTaskTooManyRequests() *CreateImportTaskTooManyRequests

NewCreateImportTaskTooManyRequests creates a CreateImportTaskTooManyRequests with default headers values

func (*CreateImportTaskTooManyRequests) Code

Code gets the status code for the create import task too many requests response

func (*CreateImportTaskTooManyRequests) Error

func (*CreateImportTaskTooManyRequests) GetPayload

func (*CreateImportTaskTooManyRequests) IsClientError

func (o *CreateImportTaskTooManyRequests) IsClientError() bool

IsClientError returns true when this create import task too many requests response has a 4xx status code

func (*CreateImportTaskTooManyRequests) IsCode

func (o *CreateImportTaskTooManyRequests) IsCode(code int) bool

IsCode returns true when this create import task too many requests response a status code equal to that given

func (*CreateImportTaskTooManyRequests) IsRedirect

func (o *CreateImportTaskTooManyRequests) IsRedirect() bool

IsRedirect returns true when this create import task too many requests response has a 3xx status code

func (*CreateImportTaskTooManyRequests) IsServerError

func (o *CreateImportTaskTooManyRequests) IsServerError() bool

IsServerError returns true when this create import task too many requests response has a 5xx status code

func (*CreateImportTaskTooManyRequests) IsSuccess

func (o *CreateImportTaskTooManyRequests) IsSuccess() bool

IsSuccess returns true when this create import task too many requests response has a 2xx status code

func (*CreateImportTaskTooManyRequests) String

type CreateImportTaskTooManyRequestsBody

type CreateImportTaskTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

CreateImportTaskTooManyRequestsBody create import task too many requests body swagger:model CreateImportTaskTooManyRequestsBody

func (*CreateImportTaskTooManyRequestsBody) ContextValidate

func (o *CreateImportTaskTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create import task too many requests body based on context it is used

func (*CreateImportTaskTooManyRequestsBody) MarshalBinary

func (o *CreateImportTaskTooManyRequestsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateImportTaskTooManyRequestsBody) UnmarshalBinary

func (o *CreateImportTaskTooManyRequestsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateImportTaskTooManyRequestsBody) Validate

Validate validates this create import task too many requests body

type CreateImportTaskUnauthorized

type CreateImportTaskUnauthorized struct {
	Payload interface{}
}

CreateImportTaskUnauthorized describes a response with status code 401, with default header values.

The API key cannot be authenticated.

func NewCreateImportTaskUnauthorized

func NewCreateImportTaskUnauthorized() *CreateImportTaskUnauthorized

NewCreateImportTaskUnauthorized creates a CreateImportTaskUnauthorized with default headers values

func (*CreateImportTaskUnauthorized) Code

Code gets the status code for the create import task unauthorized response

func (*CreateImportTaskUnauthorized) Error

func (*CreateImportTaskUnauthorized) GetPayload

func (o *CreateImportTaskUnauthorized) GetPayload() interface{}

func (*CreateImportTaskUnauthorized) IsClientError

func (o *CreateImportTaskUnauthorized) IsClientError() bool

IsClientError returns true when this create import task unauthorized response has a 4xx status code

func (*CreateImportTaskUnauthorized) IsCode

func (o *CreateImportTaskUnauthorized) IsCode(code int) bool

IsCode returns true when this create import task unauthorized response a status code equal to that given

func (*CreateImportTaskUnauthorized) IsRedirect

func (o *CreateImportTaskUnauthorized) IsRedirect() bool

IsRedirect returns true when this create import task unauthorized response has a 3xx status code

func (*CreateImportTaskUnauthorized) IsServerError

func (o *CreateImportTaskUnauthorized) IsServerError() bool

IsServerError returns true when this create import task unauthorized response has a 5xx status code

func (*CreateImportTaskUnauthorized) IsSuccess

func (o *CreateImportTaskUnauthorized) IsSuccess() bool

IsSuccess returns true when this create import task unauthorized response has a 2xx status code

func (*CreateImportTaskUnauthorized) String

type GetImportTaskBadRequest

type GetImportTaskBadRequest struct {
	Payload *GetImportTaskBadRequestBody
}

GetImportTaskBadRequest describes a response with status code 400, with default header values.

A request field is invalid.

func NewGetImportTaskBadRequest

func NewGetImportTaskBadRequest() *GetImportTaskBadRequest

NewGetImportTaskBadRequest creates a GetImportTaskBadRequest with default headers values

func (*GetImportTaskBadRequest) Code

func (o *GetImportTaskBadRequest) Code() int

Code gets the status code for the get import task bad request response

func (*GetImportTaskBadRequest) Error

func (o *GetImportTaskBadRequest) Error() string

func (*GetImportTaskBadRequest) GetPayload

func (*GetImportTaskBadRequest) IsClientError

func (o *GetImportTaskBadRequest) IsClientError() bool

IsClientError returns true when this get import task bad request response has a 4xx status code

func (*GetImportTaskBadRequest) IsCode

func (o *GetImportTaskBadRequest) IsCode(code int) bool

IsCode returns true when this get import task bad request response a status code equal to that given

func (*GetImportTaskBadRequest) IsRedirect

func (o *GetImportTaskBadRequest) IsRedirect() bool

IsRedirect returns true when this get import task bad request response has a 3xx status code

func (*GetImportTaskBadRequest) IsServerError

func (o *GetImportTaskBadRequest) IsServerError() bool

IsServerError returns true when this get import task bad request response has a 5xx status code

func (*GetImportTaskBadRequest) IsSuccess

func (o *GetImportTaskBadRequest) IsSuccess() bool

IsSuccess returns true when this get import task bad request response has a 2xx status code

func (*GetImportTaskBadRequest) String

func (o *GetImportTaskBadRequest) String() string

type GetImportTaskBadRequestBody

type GetImportTaskBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskBadRequestBody get import task bad request body swagger:model GetImportTaskBadRequestBody

func (*GetImportTaskBadRequestBody) ContextValidate

func (o *GetImportTaskBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task bad request body based on context it is used

func (*GetImportTaskBadRequestBody) MarshalBinary

func (o *GetImportTaskBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskBadRequestBody) UnmarshalBinary

func (o *GetImportTaskBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskBadRequestBody) Validate

func (o *GetImportTaskBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this get import task bad request body

type GetImportTaskDefault

type GetImportTaskDefault struct {
	Payload *GetImportTaskDefaultBody
	// contains filtered or unexported fields
}

GetImportTaskDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetImportTaskDefault

func NewGetImportTaskDefault(code int) *GetImportTaskDefault

NewGetImportTaskDefault creates a GetImportTaskDefault with default headers values

func (*GetImportTaskDefault) Code

func (o *GetImportTaskDefault) Code() int

Code gets the status code for the get import task default response

func (*GetImportTaskDefault) Error

func (o *GetImportTaskDefault) Error() string

func (*GetImportTaskDefault) GetPayload

func (*GetImportTaskDefault) IsClientError

func (o *GetImportTaskDefault) IsClientError() bool

IsClientError returns true when this get import task default response has a 4xx status code

func (*GetImportTaskDefault) IsCode

func (o *GetImportTaskDefault) IsCode(code int) bool

IsCode returns true when this get import task default response a status code equal to that given

func (*GetImportTaskDefault) IsRedirect

func (o *GetImportTaskDefault) IsRedirect() bool

IsRedirect returns true when this get import task default response has a 3xx status code

func (*GetImportTaskDefault) IsServerError

func (o *GetImportTaskDefault) IsServerError() bool

IsServerError returns true when this get import task default response has a 5xx status code

func (*GetImportTaskDefault) IsSuccess

func (o *GetImportTaskDefault) IsSuccess() bool

IsSuccess returns true when this get import task default response has a 2xx status code

func (*GetImportTaskDefault) String

func (o *GetImportTaskDefault) String() string

type GetImportTaskDefaultBody

type GetImportTaskDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*GetImportTaskDefaultBodyDetailsItems0 `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

GetImportTaskDefaultBody get import task default body swagger:model GetImportTaskDefaultBody

func (*GetImportTaskDefaultBody) ContextValidate

func (o *GetImportTaskDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get import task default body based on the context it is used

func (*GetImportTaskDefaultBody) MarshalBinary

func (o *GetImportTaskDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskDefaultBody) UnmarshalBinary

func (o *GetImportTaskDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskDefaultBody) Validate

func (o *GetImportTaskDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this get import task default body

type GetImportTaskDefaultBodyDetailsItems0

type GetImportTaskDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

GetImportTaskDefaultBodyDetailsItems0 get import task default body details items0 swagger:model GetImportTaskDefaultBodyDetailsItems0

func (*GetImportTaskDefaultBodyDetailsItems0) ContextValidate

func (o *GetImportTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task default body details items0 based on context it is used

func (*GetImportTaskDefaultBodyDetailsItems0) MarshalBinary

func (o *GetImportTaskDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskDefaultBodyDetailsItems0) UnmarshalBinary

func (o *GetImportTaskDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskDefaultBodyDetailsItems0) Validate

Validate validates this get import task default body details items0

type GetImportTaskForbidden

type GetImportTaskForbidden struct {
	Payload *GetImportTaskForbiddenBody
}

GetImportTaskForbidden describes a response with status code 403, with default header values.

The API key does not have permission to access the resource.

func NewGetImportTaskForbidden

func NewGetImportTaskForbidden() *GetImportTaskForbidden

NewGetImportTaskForbidden creates a GetImportTaskForbidden with default headers values

func (*GetImportTaskForbidden) Code

func (o *GetImportTaskForbidden) Code() int

Code gets the status code for the get import task forbidden response

func (*GetImportTaskForbidden) Error

func (o *GetImportTaskForbidden) Error() string

func (*GetImportTaskForbidden) GetPayload

func (*GetImportTaskForbidden) IsClientError

func (o *GetImportTaskForbidden) IsClientError() bool

IsClientError returns true when this get import task forbidden response has a 4xx status code

func (*GetImportTaskForbidden) IsCode

func (o *GetImportTaskForbidden) IsCode(code int) bool

IsCode returns true when this get import task forbidden response a status code equal to that given

func (*GetImportTaskForbidden) IsRedirect

func (o *GetImportTaskForbidden) IsRedirect() bool

IsRedirect returns true when this get import task forbidden response has a 3xx status code

func (*GetImportTaskForbidden) IsServerError

func (o *GetImportTaskForbidden) IsServerError() bool

IsServerError returns true when this get import task forbidden response has a 5xx status code

func (*GetImportTaskForbidden) IsSuccess

func (o *GetImportTaskForbidden) IsSuccess() bool

IsSuccess returns true when this get import task forbidden response has a 2xx status code

func (*GetImportTaskForbidden) String

func (o *GetImportTaskForbidden) String() string

type GetImportTaskForbiddenBody

type GetImportTaskForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskForbiddenBody get import task forbidden body swagger:model GetImportTaskForbiddenBody

func (*GetImportTaskForbiddenBody) ContextValidate

func (o *GetImportTaskForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task forbidden body based on context it is used

func (*GetImportTaskForbiddenBody) MarshalBinary

func (o *GetImportTaskForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskForbiddenBody) UnmarshalBinary

func (o *GetImportTaskForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskForbiddenBody) Validate

func (o *GetImportTaskForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this get import task forbidden body

type GetImportTaskInternalServerError

type GetImportTaskInternalServerError struct {
	Payload *GetImportTaskInternalServerErrorBody
}

GetImportTaskInternalServerError describes a response with status code 500, with default header values.

Server error.

func NewGetImportTaskInternalServerError

func NewGetImportTaskInternalServerError() *GetImportTaskInternalServerError

NewGetImportTaskInternalServerError creates a GetImportTaskInternalServerError with default headers values

func (*GetImportTaskInternalServerError) Code

Code gets the status code for the get import task internal server error response

func (*GetImportTaskInternalServerError) Error

func (*GetImportTaskInternalServerError) GetPayload

func (*GetImportTaskInternalServerError) IsClientError

func (o *GetImportTaskInternalServerError) IsClientError() bool

IsClientError returns true when this get import task internal server error response has a 4xx status code

func (*GetImportTaskInternalServerError) IsCode

func (o *GetImportTaskInternalServerError) IsCode(code int) bool

IsCode returns true when this get import task internal server error response a status code equal to that given

func (*GetImportTaskInternalServerError) IsRedirect

func (o *GetImportTaskInternalServerError) IsRedirect() bool

IsRedirect returns true when this get import task internal server error response has a 3xx status code

func (*GetImportTaskInternalServerError) IsServerError

func (o *GetImportTaskInternalServerError) IsServerError() bool

IsServerError returns true when this get import task internal server error response has a 5xx status code

func (*GetImportTaskInternalServerError) IsSuccess

func (o *GetImportTaskInternalServerError) IsSuccess() bool

IsSuccess returns true when this get import task internal server error response has a 2xx status code

func (*GetImportTaskInternalServerError) String

type GetImportTaskInternalServerErrorBody

type GetImportTaskInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskInternalServerErrorBody get import task internal server error body swagger:model GetImportTaskInternalServerErrorBody

func (*GetImportTaskInternalServerErrorBody) ContextValidate

func (o *GetImportTaskInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task internal server error body based on context it is used

func (*GetImportTaskInternalServerErrorBody) MarshalBinary

func (o *GetImportTaskInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskInternalServerErrorBody) UnmarshalBinary

func (o *GetImportTaskInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskInternalServerErrorBody) Validate

Validate validates this get import task internal server error body

type GetImportTaskNotFound

type GetImportTaskNotFound struct {
	Payload *GetImportTaskNotFoundBody
}

GetImportTaskNotFound describes a response with status code 404, with default header values.

The requested resource does not exist.

func NewGetImportTaskNotFound

func NewGetImportTaskNotFound() *GetImportTaskNotFound

NewGetImportTaskNotFound creates a GetImportTaskNotFound with default headers values

func (*GetImportTaskNotFound) Code

func (o *GetImportTaskNotFound) Code() int

Code gets the status code for the get import task not found response

func (*GetImportTaskNotFound) Error

func (o *GetImportTaskNotFound) Error() string

func (*GetImportTaskNotFound) GetPayload

func (*GetImportTaskNotFound) IsClientError

func (o *GetImportTaskNotFound) IsClientError() bool

IsClientError returns true when this get import task not found response has a 4xx status code

func (*GetImportTaskNotFound) IsCode

func (o *GetImportTaskNotFound) IsCode(code int) bool

IsCode returns true when this get import task not found response a status code equal to that given

func (*GetImportTaskNotFound) IsRedirect

func (o *GetImportTaskNotFound) IsRedirect() bool

IsRedirect returns true when this get import task not found response has a 3xx status code

func (*GetImportTaskNotFound) IsServerError

func (o *GetImportTaskNotFound) IsServerError() bool

IsServerError returns true when this get import task not found response has a 5xx status code

func (*GetImportTaskNotFound) IsSuccess

func (o *GetImportTaskNotFound) IsSuccess() bool

IsSuccess returns true when this get import task not found response has a 2xx status code

func (*GetImportTaskNotFound) String

func (o *GetImportTaskNotFound) String() string

type GetImportTaskNotFoundBody

type GetImportTaskNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskNotFoundBody get import task not found body swagger:model GetImportTaskNotFoundBody

func (*GetImportTaskNotFoundBody) ContextValidate

func (o *GetImportTaskNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task not found body based on context it is used

func (*GetImportTaskNotFoundBody) MarshalBinary

func (o *GetImportTaskNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskNotFoundBody) UnmarshalBinary

func (o *GetImportTaskNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskNotFoundBody) Validate

func (o *GetImportTaskNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this get import task not found body

type GetImportTaskOK

type GetImportTaskOK struct {
	Payload *GetImportTaskOKBody
}

GetImportTaskOK describes a response with status code 200, with default header values.

A successful response.

func NewGetImportTaskOK

func NewGetImportTaskOK() *GetImportTaskOK

NewGetImportTaskOK creates a GetImportTaskOK with default headers values

func (*GetImportTaskOK) Code

func (o *GetImportTaskOK) Code() int

Code gets the status code for the get import task o k response

func (*GetImportTaskOK) Error

func (o *GetImportTaskOK) Error() string

func (*GetImportTaskOK) GetPayload

func (o *GetImportTaskOK) GetPayload() *GetImportTaskOKBody

func (*GetImportTaskOK) IsClientError

func (o *GetImportTaskOK) IsClientError() bool

IsClientError returns true when this get import task o k response has a 4xx status code

func (*GetImportTaskOK) IsCode

func (o *GetImportTaskOK) IsCode(code int) bool

IsCode returns true when this get import task o k response a status code equal to that given

func (*GetImportTaskOK) IsRedirect

func (o *GetImportTaskOK) IsRedirect() bool

IsRedirect returns true when this get import task o k response has a 3xx status code

func (*GetImportTaskOK) IsServerError

func (o *GetImportTaskOK) IsServerError() bool

IsServerError returns true when this get import task o k response has a 5xx status code

func (*GetImportTaskOK) IsSuccess

func (o *GetImportTaskOK) IsSuccess() bool

IsSuccess returns true when this get import task o k response has a 2xx status code

func (*GetImportTaskOK) String

func (o *GetImportTaskOK) String() string

type GetImportTaskOKBody

type GetImportTaskOKBody struct {

	// metadata
	Metadata *GetImportTaskOKBodyMetadata `json:"metadata,omitempty"`

	// spec
	Spec *GetImportTaskOKBodySpec `json:"spec,omitempty"`

	// status
	Status *GetImportTaskOKBodyStatus `json:"status,omitempty"`
}

GetImportTaskOKBody ImportItem // // ImportItem represents the information of a single import task. swagger:model GetImportTaskOKBody

func (*GetImportTaskOKBody) ContextValidate

func (o *GetImportTaskOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get import task o k body based on the context it is used

func (*GetImportTaskOKBody) MarshalBinary

func (o *GetImportTaskOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBody) UnmarshalBinary

func (o *GetImportTaskOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBody) Validate

func (o *GetImportTaskOKBody) Validate(formats strfmt.Registry) error

Validate validates this get import task o k body

type GetImportTaskOKBodyMetadata

type GetImportTaskOKBodyMetadata struct {

	// The creation time of the import task in Unix timestamp seconds (epoch time).
	// Example: 1676450597
	// Required: true
	CreateTimestamp *string `json:"create_timestamp"`

	// The ID of the import task.
	// Example: 1
	// Required: true
	ID *string `json:"id"`

	// The name of the import task.
	// Example: my_import
	Name string `json:"name,omitempty"`
}

GetImportTaskOKBodyMetadata ImportMetadata // // The metadata of the import task. swagger:model GetImportTaskOKBodyMetadata

func (*GetImportTaskOKBodyMetadata) ContextValidate

func (o *GetImportTaskOKBodyMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task o k body metadata based on context it is used

func (*GetImportTaskOKBodyMetadata) MarshalBinary

func (o *GetImportTaskOKBodyMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBodyMetadata) UnmarshalBinary

func (o *GetImportTaskOKBodyMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodyMetadata) Validate

func (o *GetImportTaskOKBodyMetadata) Validate(formats strfmt.Registry) error

Validate validates this get import task o k body metadata

type GetImportTaskOKBodySpec

type GetImportTaskOKBodySpec struct {

	// source
	// Required: true
	Source *GetImportTaskOKBodySpecSource `json:"source"`

	// target
	// Required: true
	Target *GetImportTaskOKBodySpecTarget `json:"target"`
}

GetImportTaskOKBodySpec ImportSpec // // The specification of the import task. swagger:model GetImportTaskOKBodySpec

func (*GetImportTaskOKBodySpec) ContextValidate

func (o *GetImportTaskOKBodySpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get import task o k body spec based on the context it is used

func (*GetImportTaskOKBodySpec) MarshalBinary

func (o *GetImportTaskOKBodySpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBodySpec) UnmarshalBinary

func (o *GetImportTaskOKBodySpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodySpec) Validate

func (o *GetImportTaskOKBodySpec) Validate(formats strfmt.Registry) error

Validate validates this get import task o k body spec

type GetImportTaskOKBodySpecSource

type GetImportTaskOKBodySpecSource struct {

	// aws assume role access
	AwsAssumeRoleAccess *GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess `json:"aws_assume_role_access,omitempty"`

	// aws key access
	AwsKeyAccess *GetImportTaskOKBodySpecSourceAwsKeyAccess `json:"aws_key_access,omitempty"`

	// format
	// Required: true
	Format *GetImportTaskOKBodySpecSourceFormat `json:"format"`

	// The data source type of an import task.
	//
	// - `"S3"`: import data from Amazon S3
	// - `"GCS"`: import data from Google Cloud Storage
	// - `"LOCAL_FILE"`: import data from a local file (only available for [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless) clusters). Before you import from a local file, you need to first upload the file using the [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile) endpoint.
	//
	// **Note:** Currently, if this import spec is used for a [preview](#tag/Import/operation/PreviewImportData) request, only the `LOCAL_FILE` source type is supported.
	// Example: S3
	// Required: true
	// Enum: [S3 GCS LOCAL_FILE]
	Type *string `json:"type"`

	// The data source URI of an import task. The URI scheme must match the data source type. Here are the scheme of each source type:
	// * `S3`: `s3://`
	// * `GCS`: `gs://`
	// * `LOCAL_FILE`: `file://`.
	//
	// **Note:** If the import source type is `LOCAL_FILE`, just provide the `upload_stub_id` of the uploaded file from the response of [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile), and make it as the data source folder. For example: `file://12345/`.
	//
	// **Limitation**: If the import source type is `LOCAL_FILE`, only the `CSV` source format type is supported.
	// Example: s3://example-bucket/example-source-data/
	// Required: true
	URI *string `json:"uri"`
}

GetImportTaskOKBodySpecSource ImportSource // // The data source settings of the import task. swagger:model GetImportTaskOKBodySpecSource

func (*GetImportTaskOKBodySpecSource) ContextValidate

func (o *GetImportTaskOKBodySpecSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get import task o k body spec source based on the context it is used

func (*GetImportTaskOKBodySpecSource) MarshalBinary

func (o *GetImportTaskOKBodySpecSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSource) UnmarshalBinary

func (o *GetImportTaskOKBodySpecSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSource) Validate

func (o *GetImportTaskOKBodySpecSource) Validate(formats strfmt.Registry) error

Validate validates this get import task o k body spec source

type GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess

type GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess struct {

	// The specific AWS role ARN that needs to be assumed to access the Amazon S3 data source.
	// Example: arn:aws:iam::999999999999:role/sample-role
	// Required: true
	AssumeRole *string `json:"assume_role"`
}

GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess AwsAssumeRoleAccess // // The settings to access the S3 data by assuming a specific AWS role. This field is only needed if you need to access S3 data by assuming an AWS role. // // **Note:** Provide only one of `aws_assume_role_access` and `aws_key_access`. If both `aws_assume_role_access` and `aws_key_access` are provided, an error will be reported. swagger:model GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess

func (*GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) ContextValidate

ContextValidate validates this get import task o k body spec source aws assume role access based on context it is used

func (*GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) MarshalBinary

MarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) Validate

Validate validates this get import task o k body spec source aws assume role access

type GetImportTaskOKBodySpecSourceAwsKeyAccess

type GetImportTaskOKBodySpecSourceAwsKeyAccess struct {

	// The access key ID of the account to access the data. This information will be redacted when it is retrieved to obtain the import task information.
	// Example: YOUR_ACCESS_KEY_ID
	// Required: true
	AccessKeyID *string `json:"access_key_id"`

	// The secret access key for the account to access the data. This information will be redacted when it is retrieved to obtain the import task information.
	// Example: YOUR_SECRET_ACCESS_KEY
	// Required: true
	SecretAccessKey *string `json:"secret_access_key"`
}

GetImportTaskOKBodySpecSourceAwsKeyAccess AwsKeyAccess // // The settings to access the S3 data with an access key. This field is only needed if you want to access the S3 data with an access key. // // **Note:** Provide only one of `aws_assume_role_access` and `aws_key_access`. If both `aws_assume_role_access` and `aws_key_access` are provided, an error will be reported. swagger:model GetImportTaskOKBodySpecSourceAwsKeyAccess

func (*GetImportTaskOKBodySpecSourceAwsKeyAccess) ContextValidate

ContextValidate validates this get import task o k body spec source aws key access based on context it is used

func (*GetImportTaskOKBodySpecSourceAwsKeyAccess) MarshalBinary

func (o *GetImportTaskOKBodySpecSourceAwsKeyAccess) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSourceAwsKeyAccess) UnmarshalBinary

func (o *GetImportTaskOKBodySpecSourceAwsKeyAccess) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSourceAwsKeyAccess) Validate

Validate validates this get import task o k body spec source aws key access

type GetImportTaskOKBodySpecSourceFormat

type GetImportTaskOKBodySpecSourceFormat struct {

	// csv config
	CsvConfig *GetImportTaskOKBodySpecSourceFormatCsvConfig `json:"csv_config,omitempty"`

	// The format type of an import source.
	// Example: CSV
	// Required: true
	// Enum: [CSV PARQUET SQL AURORA_SNAPSHOT]
	Type *string `json:"type"`
}

GetImportTaskOKBodySpecSourceFormat ImportSourceFormat // // The format settings of the import data source. swagger:model GetImportTaskOKBodySpecSourceFormat

func (*GetImportTaskOKBodySpecSourceFormat) ContextValidate

func (o *GetImportTaskOKBodySpecSourceFormat) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get import task o k body spec source format based on the context it is used

func (*GetImportTaskOKBodySpecSourceFormat) MarshalBinary

func (o *GetImportTaskOKBodySpecSourceFormat) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSourceFormat) UnmarshalBinary

func (o *GetImportTaskOKBodySpecSourceFormat) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSourceFormat) Validate

Validate validates this get import task o k body spec source format

type GetImportTaskOKBodySpecSourceFormatCsvConfig

type GetImportTaskOKBodySpecSourceFormatCsvConfig struct {

	// Whether a backslash (`\`) symbol followed by a character should be combined as a whole and treated as an escape sequence in a CSV field. For example, if this parameter is set to `true`, `\n` will be treated as a 'new-line' character. If it is set to `false`, `\n` will be treated as two separate characters: backslash and `n`.
	//
	// Currently, these are several supported escape sequences: `\0`, `\b`, `\n`, `\r`, `\t`, and `\Z`. If the parameter is set to `true`, but the backslash escape sequence is not recognized, the backslash character is ignored.
	BackslashEscape *bool `json:"backslash_escape,omitempty"`

	// The delimiter character used to separate fields in the CSV data.
	Delimiter *string `json:"delimiter,omitempty"`

	// Whether the CSV data has a header row, which is not part of the data. If it is set to `true`, the import task will use the column names in the header row to match the column names in the target table.
	HasHeaderRow *bool `json:"has_header_row,omitempty"`

	// The character used to quote the fields in the CSV data.
	Quote *string `json:"quote,omitempty"`
}

GetImportTaskOKBodySpecSourceFormatCsvConfig ImportSourceCSVConfig // // The CSV format settings to parse the source CSV files. This field is only needed if the source format is CSV. swagger:model GetImportTaskOKBodySpecSourceFormatCsvConfig

func (*GetImportTaskOKBodySpecSourceFormatCsvConfig) ContextValidate

ContextValidate validates this get import task o k body spec source format csv config based on context it is used

func (*GetImportTaskOKBodySpecSourceFormatCsvConfig) MarshalBinary

MarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSourceFormatCsvConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodySpecSourceFormatCsvConfig) Validate

Validate validates this get import task o k body spec source format csv config

type GetImportTaskOKBodySpecTarget

type GetImportTaskOKBodySpecTarget struct {

	// The settings for each target table that is being imported for the import task. If you leave it empty, the system will scan all the files in the data source using the default file patterns and collect all the tables to import. The files include data files, table schema files, and DB schema files. If you provide a list of tables, only those tables will be imported. For more information about the default file pattern, see [Import CSV Files from Amazon S3 or GCS into TiDB Cloud](https://docs.pingcap.com/tidbcloud/import-csv-files).
	//
	// **Limitations:**
	// * Currently, if you want to use a custom filename pattern, you can only specify one table. If all the tables use the default filename pattern, you can specify more than one target table in `tables`.
	// * It is recommended that you pre-create the target tables before creating an import task. You can do this either by executing the `CREATE TABLE` statement in the cluster or by specifying the table definition in the table creation options.
	// * If a target table is not created, the import module tries to find a **TABLE SCHEMA FILE** containing the `CREATE TABLE` statement of the table in the data source folder with the name `${db_name}.${table_name}-schema.sql` (for example, `db01.tbl01-schema.sql`). If this file is found, the `CREATE TABLE` statement is automatically executed if the table doesn't exist before the actual import process starts. If the table is still missing after this pre-create step, an error will occur.
	Tables []*GetImportTaskOKBodySpecTargetTablesItems0 `json:"tables"`
}

GetImportTaskOKBodySpecTarget ImportTarget // // The target settings of the import task. swagger:model GetImportTaskOKBodySpecTarget

func (*GetImportTaskOKBodySpecTarget) ContextValidate

func (o *GetImportTaskOKBodySpecTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get import task o k body spec target based on the context it is used

func (*GetImportTaskOKBodySpecTarget) MarshalBinary

func (o *GetImportTaskOKBodySpecTarget) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBodySpecTarget) UnmarshalBinary

func (o *GetImportTaskOKBodySpecTarget) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodySpecTarget) Validate

func (o *GetImportTaskOKBodySpecTarget) Validate(formats strfmt.Registry) error

Validate validates this get import task o k body spec target

type GetImportTaskOKBodySpecTargetTablesItems0

type GetImportTaskOKBodySpecTargetTablesItems0 struct {

	// The target database name.
	// Example: db01
	// Required: true
	DatabaseName *string `json:"database_name"`

	// The filename pattern used to map the files in the data source to this target table. The pattern should be a simple glob pattern. Here are some examples:
	// * `my-data?.csv`: all CSV files starting with `my-data` and one character (such as `my-data1.csv` and `my-data2.csv`) will be imported into the same target table.
	// * `my-data*.csv`: all CSV files starting with `my-data` will be imported into the same target table.
	//
	// If no pattern is specified, a default pattern is used. The default pattern will try to find files with this naming convention as the data files for this table: `${db_name}.${table_name}.[numeric_index].${format_suffix}`.
	//
	// Here are some examples of filenames that can be matched as data files for the table `db01.table01`: `db01.table01.csv`, `db01.table01.00001.csv`.
	//
	// For more information about the custom file pattern and the default pattern, refer to [Import CSV Files from Amazon S3 or GCS into TiDB Cloud](https://docs.pingcap.com/tidbcloud/import-csv-files).
	//
	// **Note:** For `LOCAL_FILE` import tasks, use the local file name for this field. The local file name must match the local file name in [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile).
	// Example: data/db01/table01.*.csv
	FileNamePattern string `json:"file_name_pattern,omitempty"`

	// The target table name.
	// Example: table01
	// Required: true
	TableName *string `json:"table_name"`
}

GetImportTaskOKBodySpecTargetTablesItems0 ImportTargetTable // // ImportTargetTable represents the settings for importing source data into a single target table of an import task. swagger:model GetImportTaskOKBodySpecTargetTablesItems0

func (*GetImportTaskOKBodySpecTargetTablesItems0) ContextValidate

ContextValidate validates this get import task o k body spec target tables items0 based on context it is used

func (*GetImportTaskOKBodySpecTargetTablesItems0) MarshalBinary

func (o *GetImportTaskOKBodySpecTargetTablesItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBodySpecTargetTablesItems0) UnmarshalBinary

func (o *GetImportTaskOKBodySpecTargetTablesItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodySpecTargetTablesItems0) Validate

Validate validates this get import task o k body spec target tables items0

type GetImportTaskOKBodyStatus

type GetImportTaskOKBodyStatus struct {

	// The end timestamp of the import task. The format is Unix timestamp (the seconds elapsed since the Unix epoch).
	// Example: 1676450897
	EndTimestamp string `json:"end_timestamp,omitempty"`

	// The error message of the import task.
	// Example: some error occurs
	ErrorMessage string `json:"error_message,omitempty"`

	// The current phase that the import task is in.
	// Example: IMPORTING
	// Required: true
	// Enum: [PREPARING IMPORTING COMPLETED FAILED CANCELING CANCELED]
	Phase *string `json:"phase"`

	// progress
	Progress *GetImportTaskOKBodyStatusProgress `json:"progress,omitempty"`

	// The total size of the import task's data source. The unit is bytes.
	// Example: 10737418240
	SourceTotalSizeBytes string `json:"source_total_size_bytes,omitempty"`

	// The start timestamp of the import task. The format is Unix timestamp (the seconds elapsed since the Unix epoch)
	// Example: 1676450597
	StartTimestamp string `json:"start_timestamp,omitempty"`
}

GetImportTaskOKBodyStatus ImportStatus // // The status of the import task. swagger:model GetImportTaskOKBodyStatus

func (*GetImportTaskOKBodyStatus) ContextValidate

func (o *GetImportTaskOKBodyStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get import task o k body status based on the context it is used

func (*GetImportTaskOKBodyStatus) MarshalBinary

func (o *GetImportTaskOKBodyStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBodyStatus) UnmarshalBinary

func (o *GetImportTaskOKBodyStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodyStatus) Validate

func (o *GetImportTaskOKBodyStatus) Validate(formats strfmt.Registry) error

Validate validates this get import task o k body status

type GetImportTaskOKBodyStatusProgress

type GetImportTaskOKBodyStatusProgress struct {

	// The overall importing progress of the import task.
	// Example: 59
	// Required: true
	// Maximum: 100
	ImportProgress *float64 `json:"import_progress"`

	// The overall validation progress of the import task after the data has been imported into the target cluster.
	// Example: 59
	// Required: true
	// Maximum: 100
	ValidationProgress *float64 `json:"validation_progress"`
}

GetImportTaskOKBodyStatusProgress ImportProgress // // The progress of the import task. swagger:model GetImportTaskOKBodyStatusProgress

func (*GetImportTaskOKBodyStatusProgress) ContextValidate

func (o *GetImportTaskOKBodyStatusProgress) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task o k body status progress based on context it is used

func (*GetImportTaskOKBodyStatusProgress) MarshalBinary

func (o *GetImportTaskOKBodyStatusProgress) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskOKBodyStatusProgress) UnmarshalBinary

func (o *GetImportTaskOKBodyStatusProgress) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskOKBodyStatusProgress) Validate

Validate validates this get import task o k body status progress

type GetImportTaskParams

type GetImportTaskParams struct {

	/* ClusterID.

	   The ID of your cluster. You can get the cluster ID from the response of [List all clusters in a project](#tag/Cluster/operation/ListClustersOfProject).

	   Format: uint64
	*/
	ClusterID string

	/* ImportID.

	   The ID of your import task. You can get the import ID from the response of [List import tasks for a cluster](#tag/Project/operation/ListImportTasks).

	   Format: uint64
	*/
	ImportID string

	/* ProjectID.

	   The ID of your project. You can get the project ID from the response of [List all accessible projects](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetImportTaskParams contains all the parameters to send to the API endpoint

for the get import task operation.

Typically these are written to a http.Request.

func NewGetImportTaskParams

func NewGetImportTaskParams() *GetImportTaskParams

NewGetImportTaskParams creates a new GetImportTaskParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetImportTaskParamsWithContext

func NewGetImportTaskParamsWithContext(ctx context.Context) *GetImportTaskParams

NewGetImportTaskParamsWithContext creates a new GetImportTaskParams object with the ability to set a context for a request.

func NewGetImportTaskParamsWithHTTPClient

func NewGetImportTaskParamsWithHTTPClient(client *http.Client) *GetImportTaskParams

NewGetImportTaskParamsWithHTTPClient creates a new GetImportTaskParams object with the ability to set a custom HTTPClient for a request.

func NewGetImportTaskParamsWithTimeout

func NewGetImportTaskParamsWithTimeout(timeout time.Duration) *GetImportTaskParams

NewGetImportTaskParamsWithTimeout creates a new GetImportTaskParams object with the ability to set a timeout on a request.

func (*GetImportTaskParams) SetClusterID

func (o *GetImportTaskParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get import task params

func (*GetImportTaskParams) SetContext

func (o *GetImportTaskParams) SetContext(ctx context.Context)

SetContext adds the context to the get import task params

func (*GetImportTaskParams) SetDefaults

func (o *GetImportTaskParams) SetDefaults()

SetDefaults hydrates default values in the get import task params (not the query body).

All values with no default are reset to their zero value.

func (*GetImportTaskParams) SetHTTPClient

func (o *GetImportTaskParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get import task params

func (*GetImportTaskParams) SetImportID

func (o *GetImportTaskParams) SetImportID(importID string)

SetImportID adds the importId to the get import task params

func (*GetImportTaskParams) SetProjectID

func (o *GetImportTaskParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the get import task params

func (*GetImportTaskParams) SetTimeout

func (o *GetImportTaskParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get import task params

func (*GetImportTaskParams) WithClusterID

func (o *GetImportTaskParams) WithClusterID(clusterID string) *GetImportTaskParams

WithClusterID adds the clusterID to the get import task params

func (*GetImportTaskParams) WithContext

WithContext adds the context to the get import task params

func (*GetImportTaskParams) WithDefaults

func (o *GetImportTaskParams) WithDefaults() *GetImportTaskParams

WithDefaults hydrates default values in the get import task params (not the query body).

All values with no default are reset to their zero value.

func (*GetImportTaskParams) WithHTTPClient

func (o *GetImportTaskParams) WithHTTPClient(client *http.Client) *GetImportTaskParams

WithHTTPClient adds the HTTPClient to the get import task params

func (*GetImportTaskParams) WithImportID

func (o *GetImportTaskParams) WithImportID(importID string) *GetImportTaskParams

WithImportID adds the importID to the get import task params

func (*GetImportTaskParams) WithProjectID

func (o *GetImportTaskParams) WithProjectID(projectID string) *GetImportTaskParams

WithProjectID adds the projectID to the get import task params

func (*GetImportTaskParams) WithTimeout

func (o *GetImportTaskParams) WithTimeout(timeout time.Duration) *GetImportTaskParams

WithTimeout adds the timeout to the get import task params

func (*GetImportTaskParams) WriteToRequest

func (o *GetImportTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetImportTaskReader

type GetImportTaskReader struct {
	// contains filtered or unexported fields
}

GetImportTaskReader is a Reader for the GetImportTask structure.

func (*GetImportTaskReader) ReadResponse

func (o *GetImportTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetImportTaskRoleInfoBadRequest

type GetImportTaskRoleInfoBadRequest struct {
	Payload *GetImportTaskRoleInfoBadRequestBody
}

GetImportTaskRoleInfoBadRequest describes a response with status code 400, with default header values.

A request field is invalid.

func NewGetImportTaskRoleInfoBadRequest

func NewGetImportTaskRoleInfoBadRequest() *GetImportTaskRoleInfoBadRequest

NewGetImportTaskRoleInfoBadRequest creates a GetImportTaskRoleInfoBadRequest with default headers values

func (*GetImportTaskRoleInfoBadRequest) Code

Code gets the status code for the get import task role info bad request response

func (*GetImportTaskRoleInfoBadRequest) Error

func (*GetImportTaskRoleInfoBadRequest) GetPayload

func (*GetImportTaskRoleInfoBadRequest) IsClientError

func (o *GetImportTaskRoleInfoBadRequest) IsClientError() bool

IsClientError returns true when this get import task role info bad request response has a 4xx status code

func (*GetImportTaskRoleInfoBadRequest) IsCode

func (o *GetImportTaskRoleInfoBadRequest) IsCode(code int) bool

IsCode returns true when this get import task role info bad request response a status code equal to that given

func (*GetImportTaskRoleInfoBadRequest) IsRedirect

func (o *GetImportTaskRoleInfoBadRequest) IsRedirect() bool

IsRedirect returns true when this get import task role info bad request response has a 3xx status code

func (*GetImportTaskRoleInfoBadRequest) IsServerError

func (o *GetImportTaskRoleInfoBadRequest) IsServerError() bool

IsServerError returns true when this get import task role info bad request response has a 5xx status code

func (*GetImportTaskRoleInfoBadRequest) IsSuccess

func (o *GetImportTaskRoleInfoBadRequest) IsSuccess() bool

IsSuccess returns true when this get import task role info bad request response has a 2xx status code

func (*GetImportTaskRoleInfoBadRequest) String

type GetImportTaskRoleInfoBadRequestBody

type GetImportTaskRoleInfoBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskRoleInfoBadRequestBody get import task role info bad request body swagger:model GetImportTaskRoleInfoBadRequestBody

func (*GetImportTaskRoleInfoBadRequestBody) ContextValidate

func (o *GetImportTaskRoleInfoBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task role info bad request body based on context it is used

func (*GetImportTaskRoleInfoBadRequestBody) MarshalBinary

func (o *GetImportTaskRoleInfoBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoBadRequestBody) UnmarshalBinary

func (o *GetImportTaskRoleInfoBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoBadRequestBody) Validate

Validate validates this get import task role info bad request body

type GetImportTaskRoleInfoDefault

type GetImportTaskRoleInfoDefault struct {
	Payload *GetImportTaskRoleInfoDefaultBody
	// contains filtered or unexported fields
}

GetImportTaskRoleInfoDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetImportTaskRoleInfoDefault

func NewGetImportTaskRoleInfoDefault(code int) *GetImportTaskRoleInfoDefault

NewGetImportTaskRoleInfoDefault creates a GetImportTaskRoleInfoDefault with default headers values

func (*GetImportTaskRoleInfoDefault) Code

Code gets the status code for the get import task role info default response

func (*GetImportTaskRoleInfoDefault) Error

func (*GetImportTaskRoleInfoDefault) GetPayload

func (*GetImportTaskRoleInfoDefault) IsClientError

func (o *GetImportTaskRoleInfoDefault) IsClientError() bool

IsClientError returns true when this get import task role info default response has a 4xx status code

func (*GetImportTaskRoleInfoDefault) IsCode

func (o *GetImportTaskRoleInfoDefault) IsCode(code int) bool

IsCode returns true when this get import task role info default response a status code equal to that given

func (*GetImportTaskRoleInfoDefault) IsRedirect

func (o *GetImportTaskRoleInfoDefault) IsRedirect() bool

IsRedirect returns true when this get import task role info default response has a 3xx status code

func (*GetImportTaskRoleInfoDefault) IsServerError

func (o *GetImportTaskRoleInfoDefault) IsServerError() bool

IsServerError returns true when this get import task role info default response has a 5xx status code

func (*GetImportTaskRoleInfoDefault) IsSuccess

func (o *GetImportTaskRoleInfoDefault) IsSuccess() bool

IsSuccess returns true when this get import task role info default response has a 2xx status code

func (*GetImportTaskRoleInfoDefault) String

type GetImportTaskRoleInfoDefaultBody

type GetImportTaskRoleInfoDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*GetImportTaskRoleInfoDefaultBodyDetailsItems0 `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

GetImportTaskRoleInfoDefaultBody get import task role info default body swagger:model GetImportTaskRoleInfoDefaultBody

func (*GetImportTaskRoleInfoDefaultBody) ContextValidate

func (o *GetImportTaskRoleInfoDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get import task role info default body based on the context it is used

func (*GetImportTaskRoleInfoDefaultBody) MarshalBinary

func (o *GetImportTaskRoleInfoDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoDefaultBody) UnmarshalBinary

func (o *GetImportTaskRoleInfoDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoDefaultBody) Validate

Validate validates this get import task role info default body

type GetImportTaskRoleInfoDefaultBodyDetailsItems0

type GetImportTaskRoleInfoDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

GetImportTaskRoleInfoDefaultBodyDetailsItems0 get import task role info default body details items0 swagger:model GetImportTaskRoleInfoDefaultBodyDetailsItems0

func (*GetImportTaskRoleInfoDefaultBodyDetailsItems0) ContextValidate

ContextValidate validates this get import task role info default body details items0 based on context it is used

func (*GetImportTaskRoleInfoDefaultBodyDetailsItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoDefaultBodyDetailsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoDefaultBodyDetailsItems0) Validate

Validate validates this get import task role info default body details items0

type GetImportTaskRoleInfoForbidden

type GetImportTaskRoleInfoForbidden struct {
	Payload *GetImportTaskRoleInfoForbiddenBody
}

GetImportTaskRoleInfoForbidden describes a response with status code 403, with default header values.

The API key does not have permission to access the resource.

func NewGetImportTaskRoleInfoForbidden

func NewGetImportTaskRoleInfoForbidden() *GetImportTaskRoleInfoForbidden

NewGetImportTaskRoleInfoForbidden creates a GetImportTaskRoleInfoForbidden with default headers values

func (*GetImportTaskRoleInfoForbidden) Code

Code gets the status code for the get import task role info forbidden response

func (*GetImportTaskRoleInfoForbidden) Error

func (*GetImportTaskRoleInfoForbidden) GetPayload

func (*GetImportTaskRoleInfoForbidden) IsClientError

func (o *GetImportTaskRoleInfoForbidden) IsClientError() bool

IsClientError returns true when this get import task role info forbidden response has a 4xx status code

func (*GetImportTaskRoleInfoForbidden) IsCode

func (o *GetImportTaskRoleInfoForbidden) IsCode(code int) bool

IsCode returns true when this get import task role info forbidden response a status code equal to that given

func (*GetImportTaskRoleInfoForbidden) IsRedirect

func (o *GetImportTaskRoleInfoForbidden) IsRedirect() bool

IsRedirect returns true when this get import task role info forbidden response has a 3xx status code

func (*GetImportTaskRoleInfoForbidden) IsServerError

func (o *GetImportTaskRoleInfoForbidden) IsServerError() bool

IsServerError returns true when this get import task role info forbidden response has a 5xx status code

func (*GetImportTaskRoleInfoForbidden) IsSuccess

func (o *GetImportTaskRoleInfoForbidden) IsSuccess() bool

IsSuccess returns true when this get import task role info forbidden response has a 2xx status code

func (*GetImportTaskRoleInfoForbidden) String

type GetImportTaskRoleInfoForbiddenBody

type GetImportTaskRoleInfoForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskRoleInfoForbiddenBody get import task role info forbidden body swagger:model GetImportTaskRoleInfoForbiddenBody

func (*GetImportTaskRoleInfoForbiddenBody) ContextValidate

func (o *GetImportTaskRoleInfoForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task role info forbidden body based on context it is used

func (*GetImportTaskRoleInfoForbiddenBody) MarshalBinary

func (o *GetImportTaskRoleInfoForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoForbiddenBody) UnmarshalBinary

func (o *GetImportTaskRoleInfoForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoForbiddenBody) Validate

Validate validates this get import task role info forbidden body

type GetImportTaskRoleInfoInternalServerError

type GetImportTaskRoleInfoInternalServerError struct {
	Payload *GetImportTaskRoleInfoInternalServerErrorBody
}

GetImportTaskRoleInfoInternalServerError describes a response with status code 500, with default header values.

Server error.

func NewGetImportTaskRoleInfoInternalServerError

func NewGetImportTaskRoleInfoInternalServerError() *GetImportTaskRoleInfoInternalServerError

NewGetImportTaskRoleInfoInternalServerError creates a GetImportTaskRoleInfoInternalServerError with default headers values

func (*GetImportTaskRoleInfoInternalServerError) Code

Code gets the status code for the get import task role info internal server error response

func (*GetImportTaskRoleInfoInternalServerError) Error

func (*GetImportTaskRoleInfoInternalServerError) GetPayload

func (*GetImportTaskRoleInfoInternalServerError) IsClientError

IsClientError returns true when this get import task role info internal server error response has a 4xx status code

func (*GetImportTaskRoleInfoInternalServerError) IsCode

IsCode returns true when this get import task role info internal server error response a status code equal to that given

func (*GetImportTaskRoleInfoInternalServerError) IsRedirect

IsRedirect returns true when this get import task role info internal server error response has a 3xx status code

func (*GetImportTaskRoleInfoInternalServerError) IsServerError

IsServerError returns true when this get import task role info internal server error response has a 5xx status code

func (*GetImportTaskRoleInfoInternalServerError) IsSuccess

IsSuccess returns true when this get import task role info internal server error response has a 2xx status code

func (*GetImportTaskRoleInfoInternalServerError) String

type GetImportTaskRoleInfoInternalServerErrorBody

type GetImportTaskRoleInfoInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskRoleInfoInternalServerErrorBody get import task role info internal server error body swagger:model GetImportTaskRoleInfoInternalServerErrorBody

func (*GetImportTaskRoleInfoInternalServerErrorBody) ContextValidate

ContextValidate validates this get import task role info internal server error body based on context it is used

func (*GetImportTaskRoleInfoInternalServerErrorBody) MarshalBinary

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoInternalServerErrorBody) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoInternalServerErrorBody) Validate

Validate validates this get import task role info internal server error body

type GetImportTaskRoleInfoNotFound

type GetImportTaskRoleInfoNotFound struct {
	Payload *GetImportTaskRoleInfoNotFoundBody
}

GetImportTaskRoleInfoNotFound describes a response with status code 404, with default header values.

The requested resource does not exist.

func NewGetImportTaskRoleInfoNotFound

func NewGetImportTaskRoleInfoNotFound() *GetImportTaskRoleInfoNotFound

NewGetImportTaskRoleInfoNotFound creates a GetImportTaskRoleInfoNotFound with default headers values

func (*GetImportTaskRoleInfoNotFound) Code

Code gets the status code for the get import task role info not found response

func (*GetImportTaskRoleInfoNotFound) Error

func (*GetImportTaskRoleInfoNotFound) GetPayload

func (*GetImportTaskRoleInfoNotFound) IsClientError

func (o *GetImportTaskRoleInfoNotFound) IsClientError() bool

IsClientError returns true when this get import task role info not found response has a 4xx status code

func (*GetImportTaskRoleInfoNotFound) IsCode

func (o *GetImportTaskRoleInfoNotFound) IsCode(code int) bool

IsCode returns true when this get import task role info not found response a status code equal to that given

func (*GetImportTaskRoleInfoNotFound) IsRedirect

func (o *GetImportTaskRoleInfoNotFound) IsRedirect() bool

IsRedirect returns true when this get import task role info not found response has a 3xx status code

func (*GetImportTaskRoleInfoNotFound) IsServerError

func (o *GetImportTaskRoleInfoNotFound) IsServerError() bool

IsServerError returns true when this get import task role info not found response has a 5xx status code

func (*GetImportTaskRoleInfoNotFound) IsSuccess

func (o *GetImportTaskRoleInfoNotFound) IsSuccess() bool

IsSuccess returns true when this get import task role info not found response has a 2xx status code

func (*GetImportTaskRoleInfoNotFound) String

type GetImportTaskRoleInfoNotFoundBody

type GetImportTaskRoleInfoNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskRoleInfoNotFoundBody get import task role info not found body swagger:model GetImportTaskRoleInfoNotFoundBody

func (*GetImportTaskRoleInfoNotFoundBody) ContextValidate

func (o *GetImportTaskRoleInfoNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task role info not found body based on context it is used

func (*GetImportTaskRoleInfoNotFoundBody) MarshalBinary

func (o *GetImportTaskRoleInfoNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoNotFoundBody) UnmarshalBinary

func (o *GetImportTaskRoleInfoNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoNotFoundBody) Validate

Validate validates this get import task role info not found body

type GetImportTaskRoleInfoOK

type GetImportTaskRoleInfoOK struct {
	Payload *GetImportTaskRoleInfoOKBody
}

GetImportTaskRoleInfoOK describes a response with status code 200, with default header values.

A successful response.

func NewGetImportTaskRoleInfoOK

func NewGetImportTaskRoleInfoOK() *GetImportTaskRoleInfoOK

NewGetImportTaskRoleInfoOK creates a GetImportTaskRoleInfoOK with default headers values

func (*GetImportTaskRoleInfoOK) Code

func (o *GetImportTaskRoleInfoOK) Code() int

Code gets the status code for the get import task role info o k response

func (*GetImportTaskRoleInfoOK) Error

func (o *GetImportTaskRoleInfoOK) Error() string

func (*GetImportTaskRoleInfoOK) GetPayload

func (*GetImportTaskRoleInfoOK) IsClientError

func (o *GetImportTaskRoleInfoOK) IsClientError() bool

IsClientError returns true when this get import task role info o k response has a 4xx status code

func (*GetImportTaskRoleInfoOK) IsCode

func (o *GetImportTaskRoleInfoOK) IsCode(code int) bool

IsCode returns true when this get import task role info o k response a status code equal to that given

func (*GetImportTaskRoleInfoOK) IsRedirect

func (o *GetImportTaskRoleInfoOK) IsRedirect() bool

IsRedirect returns true when this get import task role info o k response has a 3xx status code

func (*GetImportTaskRoleInfoOK) IsServerError

func (o *GetImportTaskRoleInfoOK) IsServerError() bool

IsServerError returns true when this get import task role info o k response has a 5xx status code

func (*GetImportTaskRoleInfoOK) IsSuccess

func (o *GetImportTaskRoleInfoOK) IsSuccess() bool

IsSuccess returns true when this get import task role info o k response has a 2xx status code

func (*GetImportTaskRoleInfoOK) String

func (o *GetImportTaskRoleInfoOK) String() string

type GetImportTaskRoleInfoOKBody

type GetImportTaskRoleInfoOKBody struct {

	// aws import role
	AwsImportRole *GetImportTaskRoleInfoOKBodyAwsImportRole `json:"aws_import_role,omitempty"`

	// gcp import role
	GcpImportRole *GetImportTaskRoleInfoOKBodyGcpImportRole `json:"gcp_import_role,omitempty"`
}

GetImportTaskRoleInfoOKBody ImportTaskRoleInfo // // ImportTaskRoleInfo is the role information for import tasks on a cluster. You can use this information to configure the access for the import tasks to retrieve the data from the data source. swagger:model GetImportTaskRoleInfoOKBody

func (*GetImportTaskRoleInfoOKBody) ContextValidate

func (o *GetImportTaskRoleInfoOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get import task role info o k body based on the context it is used

func (*GetImportTaskRoleInfoOKBody) MarshalBinary

func (o *GetImportTaskRoleInfoOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoOKBody) UnmarshalBinary

func (o *GetImportTaskRoleInfoOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoOKBody) Validate

func (o *GetImportTaskRoleInfoOKBody) Validate(formats strfmt.Registry) error

Validate validates this get import task role info o k body

type GetImportTaskRoleInfoOKBodyAwsImportRole

type GetImportTaskRoleInfoOKBodyAwsImportRole struct {

	// The account ID under which the import tasks for this cluster are running.
	// Example: 999999999999
	// Required: true
	AccountID *string `json:"account_id"`

	// The unique external ID that binds to the cluster, which is a long string. When an import task starts and attempts to assume a specified role, it automatically attaches this external ID. This means that you can configure this external ID in the assumed role's trust relationship, so that only the import task of that specified cluster can access the data by assuming the role. This can provide additional security.
	// Example: abcdefghijklmnopqrstuvwxyz0123456789xxxxxxxxxxxxxx
	// Required: true
	ExternalID *string `json:"external_id"`
}

GetImportTaskRoleInfoOKBodyAwsImportRole AwsImportTaskRoleInfo // // The import role information for an AWS cluster. Only TiDB clusters on AWS return this information. If the TiDB cluster is deployed on GCP, this field is not returned. swagger:model GetImportTaskRoleInfoOKBodyAwsImportRole

func (*GetImportTaskRoleInfoOKBodyAwsImportRole) ContextValidate

ContextValidate validates this get import task role info o k body aws import role based on context it is used

func (*GetImportTaskRoleInfoOKBodyAwsImportRole) MarshalBinary

func (o *GetImportTaskRoleInfoOKBodyAwsImportRole) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoOKBodyAwsImportRole) UnmarshalBinary

func (o *GetImportTaskRoleInfoOKBodyAwsImportRole) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoOKBodyAwsImportRole) Validate

Validate validates this get import task role info o k body aws import role

type GetImportTaskRoleInfoOKBodyGcpImportRole

type GetImportTaskRoleInfoOKBodyGcpImportRole struct {

	// The account ID under which the import tasks for this cluster are running.
	// Example: example-account@example.com
	// Required: true
	AccountID *string `json:"account_id"`
}

GetImportTaskRoleInfoOKBodyGcpImportRole GcpImportTaskRoleInfo // // The import role information for a GCP cluster. Only TiDB clusters on GCP return this information. If the TiDB cluster is deployed on AWS, this field is not returned. swagger:model GetImportTaskRoleInfoOKBodyGcpImportRole

func (*GetImportTaskRoleInfoOKBodyGcpImportRole) ContextValidate

ContextValidate validates this get import task role info o k body gcp import role based on context it is used

func (*GetImportTaskRoleInfoOKBodyGcpImportRole) MarshalBinary

func (o *GetImportTaskRoleInfoOKBodyGcpImportRole) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoOKBodyGcpImportRole) UnmarshalBinary

func (o *GetImportTaskRoleInfoOKBodyGcpImportRole) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoOKBodyGcpImportRole) Validate

Validate validates this get import task role info o k body gcp import role

type GetImportTaskRoleInfoParams

type GetImportTaskRoleInfoParams struct {

	/* ClusterID.

	   The ID of your cluster. You can get the cluster ID from the response of [List all clusters in a project](#tag/Cluster/operation/ListClustersOfProject).

	   Format: uint64
	*/
	ClusterID string

	/* ProjectID.

	   The ID of your project. You can get the project ID from the response of [List all accessible projects](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetImportTaskRoleInfoParams contains all the parameters to send to the API endpoint

for the get import task role info operation.

Typically these are written to a http.Request.

func NewGetImportTaskRoleInfoParams

func NewGetImportTaskRoleInfoParams() *GetImportTaskRoleInfoParams

NewGetImportTaskRoleInfoParams creates a new GetImportTaskRoleInfoParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetImportTaskRoleInfoParamsWithContext

func NewGetImportTaskRoleInfoParamsWithContext(ctx context.Context) *GetImportTaskRoleInfoParams

NewGetImportTaskRoleInfoParamsWithContext creates a new GetImportTaskRoleInfoParams object with the ability to set a context for a request.

func NewGetImportTaskRoleInfoParamsWithHTTPClient

func NewGetImportTaskRoleInfoParamsWithHTTPClient(client *http.Client) *GetImportTaskRoleInfoParams

NewGetImportTaskRoleInfoParamsWithHTTPClient creates a new GetImportTaskRoleInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetImportTaskRoleInfoParamsWithTimeout

func NewGetImportTaskRoleInfoParamsWithTimeout(timeout time.Duration) *GetImportTaskRoleInfoParams

NewGetImportTaskRoleInfoParamsWithTimeout creates a new GetImportTaskRoleInfoParams object with the ability to set a timeout on a request.

func (*GetImportTaskRoleInfoParams) SetClusterID

func (o *GetImportTaskRoleInfoParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get import task role info params

func (*GetImportTaskRoleInfoParams) SetContext

func (o *GetImportTaskRoleInfoParams) SetContext(ctx context.Context)

SetContext adds the context to the get import task role info params

func (*GetImportTaskRoleInfoParams) SetDefaults

func (o *GetImportTaskRoleInfoParams) SetDefaults()

SetDefaults hydrates default values in the get import task role info params (not the query body).

All values with no default are reset to their zero value.

func (*GetImportTaskRoleInfoParams) SetHTTPClient

func (o *GetImportTaskRoleInfoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get import task role info params

func (*GetImportTaskRoleInfoParams) SetProjectID

func (o *GetImportTaskRoleInfoParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the get import task role info params

func (*GetImportTaskRoleInfoParams) SetTimeout

func (o *GetImportTaskRoleInfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get import task role info params

func (*GetImportTaskRoleInfoParams) WithClusterID

func (o *GetImportTaskRoleInfoParams) WithClusterID(clusterID string) *GetImportTaskRoleInfoParams

WithClusterID adds the clusterID to the get import task role info params

func (*GetImportTaskRoleInfoParams) WithContext

WithContext adds the context to the get import task role info params

func (*GetImportTaskRoleInfoParams) WithDefaults

WithDefaults hydrates default values in the get import task role info params (not the query body).

All values with no default are reset to their zero value.

func (*GetImportTaskRoleInfoParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get import task role info params

func (*GetImportTaskRoleInfoParams) WithProjectID

func (o *GetImportTaskRoleInfoParams) WithProjectID(projectID string) *GetImportTaskRoleInfoParams

WithProjectID adds the projectID to the get import task role info params

func (*GetImportTaskRoleInfoParams) WithTimeout

WithTimeout adds the timeout to the get import task role info params

func (*GetImportTaskRoleInfoParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetImportTaskRoleInfoReader

type GetImportTaskRoleInfoReader struct {
	// contains filtered or unexported fields
}

GetImportTaskRoleInfoReader is a Reader for the GetImportTaskRoleInfo structure.

func (*GetImportTaskRoleInfoReader) ReadResponse

func (o *GetImportTaskRoleInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetImportTaskRoleInfoTooManyRequests

type GetImportTaskRoleInfoTooManyRequests struct {
	Payload *GetImportTaskRoleInfoTooManyRequestsBody
}

GetImportTaskRoleInfoTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewGetImportTaskRoleInfoTooManyRequests

func NewGetImportTaskRoleInfoTooManyRequests() *GetImportTaskRoleInfoTooManyRequests

NewGetImportTaskRoleInfoTooManyRequests creates a GetImportTaskRoleInfoTooManyRequests with default headers values

func (*GetImportTaskRoleInfoTooManyRequests) Code

Code gets the status code for the get import task role info too many requests response

func (*GetImportTaskRoleInfoTooManyRequests) Error

func (*GetImportTaskRoleInfoTooManyRequests) GetPayload

func (*GetImportTaskRoleInfoTooManyRequests) IsClientError

func (o *GetImportTaskRoleInfoTooManyRequests) IsClientError() bool

IsClientError returns true when this get import task role info too many requests response has a 4xx status code

func (*GetImportTaskRoleInfoTooManyRequests) IsCode

IsCode returns true when this get import task role info too many requests response a status code equal to that given

func (*GetImportTaskRoleInfoTooManyRequests) IsRedirect

IsRedirect returns true when this get import task role info too many requests response has a 3xx status code

func (*GetImportTaskRoleInfoTooManyRequests) IsServerError

func (o *GetImportTaskRoleInfoTooManyRequests) IsServerError() bool

IsServerError returns true when this get import task role info too many requests response has a 5xx status code

func (*GetImportTaskRoleInfoTooManyRequests) IsSuccess

IsSuccess returns true when this get import task role info too many requests response has a 2xx status code

func (*GetImportTaskRoleInfoTooManyRequests) String

type GetImportTaskRoleInfoTooManyRequestsBody

type GetImportTaskRoleInfoTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskRoleInfoTooManyRequestsBody get import task role info too many requests body swagger:model GetImportTaskRoleInfoTooManyRequestsBody

func (*GetImportTaskRoleInfoTooManyRequestsBody) ContextValidate

ContextValidate validates this get import task role info too many requests body based on context it is used

func (*GetImportTaskRoleInfoTooManyRequestsBody) MarshalBinary

func (o *GetImportTaskRoleInfoTooManyRequestsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskRoleInfoTooManyRequestsBody) UnmarshalBinary

func (o *GetImportTaskRoleInfoTooManyRequestsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskRoleInfoTooManyRequestsBody) Validate

Validate validates this get import task role info too many requests body

type GetImportTaskRoleInfoUnauthorized

type GetImportTaskRoleInfoUnauthorized struct {
	Payload interface{}
}

GetImportTaskRoleInfoUnauthorized describes a response with status code 401, with default header values.

The API key cannot be authenticated.

func NewGetImportTaskRoleInfoUnauthorized

func NewGetImportTaskRoleInfoUnauthorized() *GetImportTaskRoleInfoUnauthorized

NewGetImportTaskRoleInfoUnauthorized creates a GetImportTaskRoleInfoUnauthorized with default headers values

func (*GetImportTaskRoleInfoUnauthorized) Code

Code gets the status code for the get import task role info unauthorized response

func (*GetImportTaskRoleInfoUnauthorized) Error

func (*GetImportTaskRoleInfoUnauthorized) GetPayload

func (o *GetImportTaskRoleInfoUnauthorized) GetPayload() interface{}

func (*GetImportTaskRoleInfoUnauthorized) IsClientError

func (o *GetImportTaskRoleInfoUnauthorized) IsClientError() bool

IsClientError returns true when this get import task role info unauthorized response has a 4xx status code

func (*GetImportTaskRoleInfoUnauthorized) IsCode

func (o *GetImportTaskRoleInfoUnauthorized) IsCode(code int) bool

IsCode returns true when this get import task role info unauthorized response a status code equal to that given

func (*GetImportTaskRoleInfoUnauthorized) IsRedirect

func (o *GetImportTaskRoleInfoUnauthorized) IsRedirect() bool

IsRedirect returns true when this get import task role info unauthorized response has a 3xx status code

func (*GetImportTaskRoleInfoUnauthorized) IsServerError

func (o *GetImportTaskRoleInfoUnauthorized) IsServerError() bool

IsServerError returns true when this get import task role info unauthorized response has a 5xx status code

func (*GetImportTaskRoleInfoUnauthorized) IsSuccess

func (o *GetImportTaskRoleInfoUnauthorized) IsSuccess() bool

IsSuccess returns true when this get import task role info unauthorized response has a 2xx status code

func (*GetImportTaskRoleInfoUnauthorized) String

type GetImportTaskTooManyRequests

type GetImportTaskTooManyRequests struct {
	Payload *GetImportTaskTooManyRequestsBody
}

GetImportTaskTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewGetImportTaskTooManyRequests

func NewGetImportTaskTooManyRequests() *GetImportTaskTooManyRequests

NewGetImportTaskTooManyRequests creates a GetImportTaskTooManyRequests with default headers values

func (*GetImportTaskTooManyRequests) Code

Code gets the status code for the get import task too many requests response

func (*GetImportTaskTooManyRequests) Error

func (*GetImportTaskTooManyRequests) GetPayload

func (*GetImportTaskTooManyRequests) IsClientError

func (o *GetImportTaskTooManyRequests) IsClientError() bool

IsClientError returns true when this get import task too many requests response has a 4xx status code

func (*GetImportTaskTooManyRequests) IsCode

func (o *GetImportTaskTooManyRequests) IsCode(code int) bool

IsCode returns true when this get import task too many requests response a status code equal to that given

func (*GetImportTaskTooManyRequests) IsRedirect

func (o *GetImportTaskTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get import task too many requests response has a 3xx status code

func (*GetImportTaskTooManyRequests) IsServerError

func (o *GetImportTaskTooManyRequests) IsServerError() bool

IsServerError returns true when this get import task too many requests response has a 5xx status code

func (*GetImportTaskTooManyRequests) IsSuccess

func (o *GetImportTaskTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get import task too many requests response has a 2xx status code

func (*GetImportTaskTooManyRequests) String

type GetImportTaskTooManyRequestsBody

type GetImportTaskTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

GetImportTaskTooManyRequestsBody get import task too many requests body swagger:model GetImportTaskTooManyRequestsBody

func (*GetImportTaskTooManyRequestsBody) ContextValidate

func (o *GetImportTaskTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get import task too many requests body based on context it is used

func (*GetImportTaskTooManyRequestsBody) MarshalBinary

func (o *GetImportTaskTooManyRequestsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImportTaskTooManyRequestsBody) UnmarshalBinary

func (o *GetImportTaskTooManyRequestsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImportTaskTooManyRequestsBody) Validate

Validate validates this get import task too many requests body

type GetImportTaskUnauthorized

type GetImportTaskUnauthorized struct {
	Payload interface{}
}

GetImportTaskUnauthorized describes a response with status code 401, with default header values.

The API key cannot be authenticated.

func NewGetImportTaskUnauthorized

func NewGetImportTaskUnauthorized() *GetImportTaskUnauthorized

NewGetImportTaskUnauthorized creates a GetImportTaskUnauthorized with default headers values

func (*GetImportTaskUnauthorized) Code

func (o *GetImportTaskUnauthorized) Code() int

Code gets the status code for the get import task unauthorized response

func (*GetImportTaskUnauthorized) Error

func (o *GetImportTaskUnauthorized) Error() string

func (*GetImportTaskUnauthorized) GetPayload

func (o *GetImportTaskUnauthorized) GetPayload() interface{}

func (*GetImportTaskUnauthorized) IsClientError

func (o *GetImportTaskUnauthorized) IsClientError() bool

IsClientError returns true when this get import task unauthorized response has a 4xx status code

func (*GetImportTaskUnauthorized) IsCode

func (o *GetImportTaskUnauthorized) IsCode(code int) bool

IsCode returns true when this get import task unauthorized response a status code equal to that given

func (*GetImportTaskUnauthorized) IsRedirect

func (o *GetImportTaskUnauthorized) IsRedirect() bool

IsRedirect returns true when this get import task unauthorized response has a 3xx status code

func (*GetImportTaskUnauthorized) IsServerError

func (o *GetImportTaskUnauthorized) IsServerError() bool

IsServerError returns true when this get import task unauthorized response has a 5xx status code

func (*GetImportTaskUnauthorized) IsSuccess

func (o *GetImportTaskUnauthorized) IsSuccess() bool

IsSuccess returns true when this get import task unauthorized response has a 2xx status code

func (*GetImportTaskUnauthorized) String

func (o *GetImportTaskUnauthorized) String() string

type ListImportTasksBadRequest

type ListImportTasksBadRequest struct {
	Payload *ListImportTasksBadRequestBody
}

ListImportTasksBadRequest describes a response with status code 400, with default header values.

A request field is invalid.

func NewListImportTasksBadRequest

func NewListImportTasksBadRequest() *ListImportTasksBadRequest

NewListImportTasksBadRequest creates a ListImportTasksBadRequest with default headers values

func (*ListImportTasksBadRequest) Code

func (o *ListImportTasksBadRequest) Code() int

Code gets the status code for the list import tasks bad request response

func (*ListImportTasksBadRequest) Error

func (o *ListImportTasksBadRequest) Error() string

func (*ListImportTasksBadRequest) GetPayload

func (*ListImportTasksBadRequest) IsClientError

func (o *ListImportTasksBadRequest) IsClientError() bool

IsClientError returns true when this list import tasks bad request response has a 4xx status code

func (*ListImportTasksBadRequest) IsCode

func (o *ListImportTasksBadRequest) IsCode(code int) bool

IsCode returns true when this list import tasks bad request response a status code equal to that given

func (*ListImportTasksBadRequest) IsRedirect

func (o *ListImportTasksBadRequest) IsRedirect() bool

IsRedirect returns true when this list import tasks bad request response has a 3xx status code

func (*ListImportTasksBadRequest) IsServerError

func (o *ListImportTasksBadRequest) IsServerError() bool

IsServerError returns true when this list import tasks bad request response has a 5xx status code

func (*ListImportTasksBadRequest) IsSuccess

func (o *ListImportTasksBadRequest) IsSuccess() bool

IsSuccess returns true when this list import tasks bad request response has a 2xx status code

func (*ListImportTasksBadRequest) String

func (o *ListImportTasksBadRequest) String() string

type ListImportTasksBadRequestBody

type ListImportTasksBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListImportTasksBadRequestBody list import tasks bad request body swagger:model ListImportTasksBadRequestBody

func (*ListImportTasksBadRequestBody) ContextValidate

func (o *ListImportTasksBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list import tasks bad request body based on context it is used

func (*ListImportTasksBadRequestBody) MarshalBinary

func (o *ListImportTasksBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksBadRequestBody) UnmarshalBinary

func (o *ListImportTasksBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksBadRequestBody) Validate

func (o *ListImportTasksBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this list import tasks bad request body

type ListImportTasksDefault

type ListImportTasksDefault struct {
	Payload *ListImportTasksDefaultBody
	// contains filtered or unexported fields
}

ListImportTasksDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListImportTasksDefault

func NewListImportTasksDefault(code int) *ListImportTasksDefault

NewListImportTasksDefault creates a ListImportTasksDefault with default headers values

func (*ListImportTasksDefault) Code

func (o *ListImportTasksDefault) Code() int

Code gets the status code for the list import tasks default response

func (*ListImportTasksDefault) Error

func (o *ListImportTasksDefault) Error() string

func (*ListImportTasksDefault) GetPayload

func (*ListImportTasksDefault) IsClientError

func (o *ListImportTasksDefault) IsClientError() bool

IsClientError returns true when this list import tasks default response has a 4xx status code

func (*ListImportTasksDefault) IsCode

func (o *ListImportTasksDefault) IsCode(code int) bool

IsCode returns true when this list import tasks default response a status code equal to that given

func (*ListImportTasksDefault) IsRedirect

func (o *ListImportTasksDefault) IsRedirect() bool

IsRedirect returns true when this list import tasks default response has a 3xx status code

func (*ListImportTasksDefault) IsServerError

func (o *ListImportTasksDefault) IsServerError() bool

IsServerError returns true when this list import tasks default response has a 5xx status code

func (*ListImportTasksDefault) IsSuccess

func (o *ListImportTasksDefault) IsSuccess() bool

IsSuccess returns true when this list import tasks default response has a 2xx status code

func (*ListImportTasksDefault) String

func (o *ListImportTasksDefault) String() string

type ListImportTasksDefaultBody

type ListImportTasksDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*ListImportTasksDefaultBodyDetailsItems0 `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

ListImportTasksDefaultBody list import tasks default body swagger:model ListImportTasksDefaultBody

func (*ListImportTasksDefaultBody) ContextValidate

func (o *ListImportTasksDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list import tasks default body based on the context it is used

func (*ListImportTasksDefaultBody) MarshalBinary

func (o *ListImportTasksDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksDefaultBody) UnmarshalBinary

func (o *ListImportTasksDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksDefaultBody) Validate

func (o *ListImportTasksDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this list import tasks default body

type ListImportTasksDefaultBodyDetailsItems0

type ListImportTasksDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

ListImportTasksDefaultBodyDetailsItems0 list import tasks default body details items0 swagger:model ListImportTasksDefaultBodyDetailsItems0

func (*ListImportTasksDefaultBodyDetailsItems0) ContextValidate

ContextValidate validates this list import tasks default body details items0 based on context it is used

func (*ListImportTasksDefaultBodyDetailsItems0) MarshalBinary

func (o *ListImportTasksDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksDefaultBodyDetailsItems0) UnmarshalBinary

func (o *ListImportTasksDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksDefaultBodyDetailsItems0) Validate

Validate validates this list import tasks default body details items0

type ListImportTasksForbidden

type ListImportTasksForbidden struct {
	Payload *ListImportTasksForbiddenBody
}

ListImportTasksForbidden describes a response with status code 403, with default header values.

The API key does not have permission to access the resource.

func NewListImportTasksForbidden

func NewListImportTasksForbidden() *ListImportTasksForbidden

NewListImportTasksForbidden creates a ListImportTasksForbidden with default headers values

func (*ListImportTasksForbidden) Code

func (o *ListImportTasksForbidden) Code() int

Code gets the status code for the list import tasks forbidden response

func (*ListImportTasksForbidden) Error

func (o *ListImportTasksForbidden) Error() string

func (*ListImportTasksForbidden) GetPayload

func (*ListImportTasksForbidden) IsClientError

func (o *ListImportTasksForbidden) IsClientError() bool

IsClientError returns true when this list import tasks forbidden response has a 4xx status code

func (*ListImportTasksForbidden) IsCode

func (o *ListImportTasksForbidden) IsCode(code int) bool

IsCode returns true when this list import tasks forbidden response a status code equal to that given

func (*ListImportTasksForbidden) IsRedirect

func (o *ListImportTasksForbidden) IsRedirect() bool

IsRedirect returns true when this list import tasks forbidden response has a 3xx status code

func (*ListImportTasksForbidden) IsServerError

func (o *ListImportTasksForbidden) IsServerError() bool

IsServerError returns true when this list import tasks forbidden response has a 5xx status code

func (*ListImportTasksForbidden) IsSuccess

func (o *ListImportTasksForbidden) IsSuccess() bool

IsSuccess returns true when this list import tasks forbidden response has a 2xx status code

func (*ListImportTasksForbidden) String

func (o *ListImportTasksForbidden) String() string

type ListImportTasksForbiddenBody

type ListImportTasksForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListImportTasksForbiddenBody list import tasks forbidden body swagger:model ListImportTasksForbiddenBody

func (*ListImportTasksForbiddenBody) ContextValidate

func (o *ListImportTasksForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list import tasks forbidden body based on context it is used

func (*ListImportTasksForbiddenBody) MarshalBinary

func (o *ListImportTasksForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksForbiddenBody) UnmarshalBinary

func (o *ListImportTasksForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksForbiddenBody) Validate

func (o *ListImportTasksForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this list import tasks forbidden body

type ListImportTasksInternalServerError

type ListImportTasksInternalServerError struct {
	Payload *ListImportTasksInternalServerErrorBody
}

ListImportTasksInternalServerError describes a response with status code 500, with default header values.

Server error.

func NewListImportTasksInternalServerError

func NewListImportTasksInternalServerError() *ListImportTasksInternalServerError

NewListImportTasksInternalServerError creates a ListImportTasksInternalServerError with default headers values

func (*ListImportTasksInternalServerError) Code

Code gets the status code for the list import tasks internal server error response

func (*ListImportTasksInternalServerError) Error

func (*ListImportTasksInternalServerError) GetPayload

func (*ListImportTasksInternalServerError) IsClientError

func (o *ListImportTasksInternalServerError) IsClientError() bool

IsClientError returns true when this list import tasks internal server error response has a 4xx status code

func (*ListImportTasksInternalServerError) IsCode

IsCode returns true when this list import tasks internal server error response a status code equal to that given

func (*ListImportTasksInternalServerError) IsRedirect

func (o *ListImportTasksInternalServerError) IsRedirect() bool

IsRedirect returns true when this list import tasks internal server error response has a 3xx status code

func (*ListImportTasksInternalServerError) IsServerError

func (o *ListImportTasksInternalServerError) IsServerError() bool

IsServerError returns true when this list import tasks internal server error response has a 5xx status code

func (*ListImportTasksInternalServerError) IsSuccess

IsSuccess returns true when this list import tasks internal server error response has a 2xx status code

func (*ListImportTasksInternalServerError) String

type ListImportTasksInternalServerErrorBody

type ListImportTasksInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListImportTasksInternalServerErrorBody list import tasks internal server error body swagger:model ListImportTasksInternalServerErrorBody

func (*ListImportTasksInternalServerErrorBody) ContextValidate

ContextValidate validates this list import tasks internal server error body based on context it is used

func (*ListImportTasksInternalServerErrorBody) MarshalBinary

func (o *ListImportTasksInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksInternalServerErrorBody) UnmarshalBinary

func (o *ListImportTasksInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksInternalServerErrorBody) Validate

Validate validates this list import tasks internal server error body

type ListImportTasksNotFound

type ListImportTasksNotFound struct {
	Payload *ListImportTasksNotFoundBody
}

ListImportTasksNotFound describes a response with status code 404, with default header values.

The requested resource does not exist.

func NewListImportTasksNotFound

func NewListImportTasksNotFound() *ListImportTasksNotFound

NewListImportTasksNotFound creates a ListImportTasksNotFound with default headers values

func (*ListImportTasksNotFound) Code

func (o *ListImportTasksNotFound) Code() int

Code gets the status code for the list import tasks not found response

func (*ListImportTasksNotFound) Error

func (o *ListImportTasksNotFound) Error() string

func (*ListImportTasksNotFound) GetPayload

func (*ListImportTasksNotFound) IsClientError

func (o *ListImportTasksNotFound) IsClientError() bool

IsClientError returns true when this list import tasks not found response has a 4xx status code

func (*ListImportTasksNotFound) IsCode

func (o *ListImportTasksNotFound) IsCode(code int) bool

IsCode returns true when this list import tasks not found response a status code equal to that given

func (*ListImportTasksNotFound) IsRedirect

func (o *ListImportTasksNotFound) IsRedirect() bool

IsRedirect returns true when this list import tasks not found response has a 3xx status code

func (*ListImportTasksNotFound) IsServerError

func (o *ListImportTasksNotFound) IsServerError() bool

IsServerError returns true when this list import tasks not found response has a 5xx status code

func (*ListImportTasksNotFound) IsSuccess

func (o *ListImportTasksNotFound) IsSuccess() bool

IsSuccess returns true when this list import tasks not found response has a 2xx status code

func (*ListImportTasksNotFound) String

func (o *ListImportTasksNotFound) String() string

type ListImportTasksNotFoundBody

type ListImportTasksNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListImportTasksNotFoundBody list import tasks not found body swagger:model ListImportTasksNotFoundBody

func (*ListImportTasksNotFoundBody) ContextValidate

func (o *ListImportTasksNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list import tasks not found body based on context it is used

func (*ListImportTasksNotFoundBody) MarshalBinary

func (o *ListImportTasksNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksNotFoundBody) UnmarshalBinary

func (o *ListImportTasksNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksNotFoundBody) Validate

func (o *ListImportTasksNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this list import tasks not found body

type ListImportTasksOK

type ListImportTasksOK struct {
	Payload *ListImportTasksOKBody
}

ListImportTasksOK describes a response with status code 200, with default header values.

A successful response.

func NewListImportTasksOK

func NewListImportTasksOK() *ListImportTasksOK

NewListImportTasksOK creates a ListImportTasksOK with default headers values

func (*ListImportTasksOK) Code

func (o *ListImportTasksOK) Code() int

Code gets the status code for the list import tasks o k response

func (*ListImportTasksOK) Error

func (o *ListImportTasksOK) Error() string

func (*ListImportTasksOK) GetPayload

func (o *ListImportTasksOK) GetPayload() *ListImportTasksOKBody

func (*ListImportTasksOK) IsClientError

func (o *ListImportTasksOK) IsClientError() bool

IsClientError returns true when this list import tasks o k response has a 4xx status code

func (*ListImportTasksOK) IsCode

func (o *ListImportTasksOK) IsCode(code int) bool

IsCode returns true when this list import tasks o k response a status code equal to that given

func (*ListImportTasksOK) IsRedirect

func (o *ListImportTasksOK) IsRedirect() bool

IsRedirect returns true when this list import tasks o k response has a 3xx status code

func (*ListImportTasksOK) IsServerError

func (o *ListImportTasksOK) IsServerError() bool

IsServerError returns true when this list import tasks o k response has a 5xx status code

func (*ListImportTasksOK) IsSuccess

func (o *ListImportTasksOK) IsSuccess() bool

IsSuccess returns true when this list import tasks o k response has a 2xx status code

func (*ListImportTasksOK) String

func (o *ListImportTasksOK) String() string

type ListImportTasksOKBody

type ListImportTasksOKBody struct {

	// The import tasks in the cluster in the request page area.
	// Required: true
	Items []*ListImportTasksOKBodyItemsItems0 `json:"items"`

	// The total number of import tasks in the cluster.
	// Example: 20
	// Required: true
	Total *int64 `json:"total"`
}

ListImportTasksOKBody ListImportTasksResp // // ListImportTasksResp is the response for listing the import tasks of a cluster. swagger:model ListImportTasksOKBody

func (*ListImportTasksOKBody) ContextValidate

func (o *ListImportTasksOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list import tasks o k body based on the context it is used

func (*ListImportTasksOKBody) MarshalBinary

func (o *ListImportTasksOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksOKBody) UnmarshalBinary

func (o *ListImportTasksOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksOKBody) Validate

func (o *ListImportTasksOKBody) Validate(formats strfmt.Registry) error

Validate validates this list import tasks o k body

type ListImportTasksOKBodyItemsItems0

type ListImportTasksOKBodyItemsItems0 struct {

	// metadata
	Metadata *ListImportTasksOKBodyItemsItems0Metadata `json:"metadata,omitempty"`

	// spec
	Spec *ListImportTasksOKBodyItemsItems0Spec `json:"spec,omitempty"`

	// status
	Status *ListImportTasksOKBodyItemsItems0Status `json:"status,omitempty"`
}

ListImportTasksOKBodyItemsItems0 ImportItem // // ImportItem represents the information of a single import task. swagger:model ListImportTasksOKBodyItemsItems0

func (*ListImportTasksOKBodyItemsItems0) ContextValidate

func (o *ListImportTasksOKBodyItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list import tasks o k body items items0 based on the context it is used

func (*ListImportTasksOKBodyItemsItems0) MarshalBinary

func (o *ListImportTasksOKBodyItemsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0) UnmarshalBinary

func (o *ListImportTasksOKBodyItemsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0) Validate

Validate validates this list import tasks o k body items items0

type ListImportTasksOKBodyItemsItems0Metadata

type ListImportTasksOKBodyItemsItems0Metadata struct {

	// The creation time of the import task in Unix timestamp seconds (epoch time).
	// Example: 1676450597
	// Required: true
	CreateTimestamp *string `json:"create_timestamp"`

	// The ID of the import task.
	// Example: 1
	// Required: true
	ID *string `json:"id"`

	// The name of the import task.
	// Example: my_import
	Name string `json:"name,omitempty"`
}

ListImportTasksOKBodyItemsItems0Metadata ImportMetadata // // The metadata of the import task. swagger:model ListImportTasksOKBodyItemsItems0Metadata

func (*ListImportTasksOKBodyItemsItems0Metadata) ContextValidate

ContextValidate validates this list import tasks o k body items items0 metadata based on context it is used

func (*ListImportTasksOKBodyItemsItems0Metadata) MarshalBinary

func (o *ListImportTasksOKBodyItemsItems0Metadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0Metadata) UnmarshalBinary

func (o *ListImportTasksOKBodyItemsItems0Metadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0Metadata) Validate

Validate validates this list import tasks o k body items items0 metadata

type ListImportTasksOKBodyItemsItems0Spec

type ListImportTasksOKBodyItemsItems0Spec struct {

	// source
	// Required: true
	Source *ListImportTasksOKBodyItemsItems0SpecSource `json:"source"`

	// target
	// Required: true
	Target *ListImportTasksOKBodyItemsItems0SpecTarget `json:"target"`
}

ListImportTasksOKBodyItemsItems0Spec ImportSpec // // The specification of the import task. swagger:model ListImportTasksOKBodyItemsItems0Spec

func (*ListImportTasksOKBodyItemsItems0Spec) ContextValidate

func (o *ListImportTasksOKBodyItemsItems0Spec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list import tasks o k body items items0 spec based on the context it is used

func (*ListImportTasksOKBodyItemsItems0Spec) MarshalBinary

func (o *ListImportTasksOKBodyItemsItems0Spec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0Spec) UnmarshalBinary

func (o *ListImportTasksOKBodyItemsItems0Spec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0Spec) Validate

Validate validates this list import tasks o k body items items0 spec

type ListImportTasksOKBodyItemsItems0SpecSource

type ListImportTasksOKBodyItemsItems0SpecSource struct {

	// aws assume role access
	AwsAssumeRoleAccess *ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess `json:"aws_assume_role_access,omitempty"`

	// aws key access
	AwsKeyAccess *ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess `json:"aws_key_access,omitempty"`

	// format
	// Required: true
	Format *ListImportTasksOKBodyItemsItems0SpecSourceFormat `json:"format"`

	// The data source type of an import task.
	//
	// - `"S3"`: import data from Amazon S3
	// - `"GCS"`: import data from Google Cloud Storage
	// - `"LOCAL_FILE"`: import data from a local file (only available for [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless) clusters). Before you import from a local file, you need to first upload the file using the [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile) endpoint.
	//
	// **Note:** Currently, if this import spec is used for a [preview](#tag/Import/operation/PreviewImportData) request, only the `LOCAL_FILE` source type is supported.
	// Example: S3
	// Required: true
	// Enum: [S3 GCS LOCAL_FILE]
	Type *string `json:"type"`

	// The data source URI of an import task. The URI scheme must match the data source type. Here are the scheme of each source type:
	// * `S3`: `s3://`
	// * `GCS`: `gs://`
	// * `LOCAL_FILE`: `file://`.
	//
	// **Note:** If the import source type is `LOCAL_FILE`, just provide the `upload_stub_id` of the uploaded file from the response of [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile), and make it as the data source folder. For example: `file://12345/`.
	//
	// **Limitation**: If the import source type is `LOCAL_FILE`, only the `CSV` source format type is supported.
	// Example: s3://example-bucket/example-source-data/
	// Required: true
	URI *string `json:"uri"`
}

ListImportTasksOKBodyItemsItems0SpecSource ImportSource // // The data source settings of the import task. swagger:model ListImportTasksOKBodyItemsItems0SpecSource

func (*ListImportTasksOKBodyItemsItems0SpecSource) ContextValidate

ContextValidate validate this list import tasks o k body items items0 spec source based on the context it is used

func (*ListImportTasksOKBodyItemsItems0SpecSource) MarshalBinary

func (o *ListImportTasksOKBodyItemsItems0SpecSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSource) UnmarshalBinary

func (o *ListImportTasksOKBodyItemsItems0SpecSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSource) Validate

Validate validates this list import tasks o k body items items0 spec source

type ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess

type ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess struct {

	// The specific AWS role ARN that needs to be assumed to access the Amazon S3 data source.
	// Example: arn:aws:iam::999999999999:role/sample-role
	// Required: true
	AssumeRole *string `json:"assume_role"`
}

ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess AwsAssumeRoleAccess // // The settings to access the S3 data by assuming a specific AWS role. This field is only needed if you need to access S3 data by assuming an AWS role. // // **Note:** Provide only one of `aws_assume_role_access` and `aws_key_access`. If both `aws_assume_role_access` and `aws_key_access` are provided, an error will be reported. swagger:model ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess

func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) ContextValidate

ContextValidate validates this list import tasks o k body items items0 spec source aws assume role access based on context it is used

func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) MarshalBinary

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) Validate

Validate validates this list import tasks o k body items items0 spec source aws assume role access

type ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess

type ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess struct {

	// The access key ID of the account to access the data. This information will be redacted when it is retrieved to obtain the import task information.
	// Example: YOUR_ACCESS_KEY_ID
	// Required: true
	AccessKeyID *string `json:"access_key_id"`

	// The secret access key for the account to access the data. This information will be redacted when it is retrieved to obtain the import task information.
	// Example: YOUR_SECRET_ACCESS_KEY
	// Required: true
	SecretAccessKey *string `json:"secret_access_key"`
}

ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess AwsKeyAccess // // The settings to access the S3 data with an access key. This field is only needed if you want to access the S3 data with an access key. // // **Note:** Provide only one of `aws_assume_role_access` and `aws_key_access`. If both `aws_assume_role_access` and `aws_key_access` are provided, an error will be reported. swagger:model ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess

func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) ContextValidate

ContextValidate validates this list import tasks o k body items items0 spec source aws key access based on context it is used

func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) MarshalBinary

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) Validate

Validate validates this list import tasks o k body items items0 spec source aws key access

type ListImportTasksOKBodyItemsItems0SpecSourceFormat

type ListImportTasksOKBodyItemsItems0SpecSourceFormat struct {

	// csv config
	CsvConfig *ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig `json:"csv_config,omitempty"`

	// The format type of an import source.
	// Example: CSV
	// Required: true
	// Enum: [CSV PARQUET SQL AURORA_SNAPSHOT]
	Type *string `json:"type"`
}

ListImportTasksOKBodyItemsItems0SpecSourceFormat ImportSourceFormat // // The format settings of the import data source. swagger:model ListImportTasksOKBodyItemsItems0SpecSourceFormat

func (*ListImportTasksOKBodyItemsItems0SpecSourceFormat) ContextValidate

ContextValidate validate this list import tasks o k body items items0 spec source format based on the context it is used

func (*ListImportTasksOKBodyItemsItems0SpecSourceFormat) MarshalBinary

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSourceFormat) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSourceFormat) Validate

Validate validates this list import tasks o k body items items0 spec source format

type ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig

type ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig struct {

	// Whether a backslash (`\`) symbol followed by a character should be combined as a whole and treated as an escape sequence in a CSV field. For example, if this parameter is set to `true`, `\n` will be treated as a 'new-line' character. If it is set to `false`, `\n` will be treated as two separate characters: backslash and `n`.
	//
	// Currently, these are several supported escape sequences: `\0`, `\b`, `\n`, `\r`, `\t`, and `\Z`. If the parameter is set to `true`, but the backslash escape sequence is not recognized, the backslash character is ignored.
	BackslashEscape *bool `json:"backslash_escape,omitempty"`

	// The delimiter character used to separate fields in the CSV data.
	Delimiter *string `json:"delimiter,omitempty"`

	// Whether the CSV data has a header row, which is not part of the data. If it is set to `true`, the import task will use the column names in the header row to match the column names in the target table.
	HasHeaderRow *bool `json:"has_header_row,omitempty"`

	// The character used to quote the fields in the CSV data.
	Quote *string `json:"quote,omitempty"`
}

ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig ImportSourceCSVConfig // // The CSV format settings to parse the source CSV files. This field is only needed if the source format is CSV. swagger:model ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig

func (*ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) ContextValidate

ContextValidate validates this list import tasks o k body items items0 spec source format csv config based on context it is used

func (*ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) MarshalBinary

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) Validate

Validate validates this list import tasks o k body items items0 spec source format csv config

type ListImportTasksOKBodyItemsItems0SpecTarget

type ListImportTasksOKBodyItemsItems0SpecTarget struct {

	// The settings for each target table that is being imported for the import task. If you leave it empty, the system will scan all the files in the data source using the default file patterns and collect all the tables to import. The files include data files, table schema files, and DB schema files. If you provide a list of tables, only those tables will be imported. For more information about the default file pattern, see [Import CSV Files from Amazon S3 or GCS into TiDB Cloud](https://docs.pingcap.com/tidbcloud/import-csv-files).
	//
	// **Limitations:**
	// * Currently, if you want to use a custom filename pattern, you can only specify one table. If all the tables use the default filename pattern, you can specify more than one target table in `tables`.
	// * It is recommended that you pre-create the target tables before creating an import task. You can do this either by executing the `CREATE TABLE` statement in the cluster or by specifying the table definition in the table creation options.
	// * If a target table is not created, the import module tries to find a **TABLE SCHEMA FILE** containing the `CREATE TABLE` statement of the table in the data source folder with the name `${db_name}.${table_name}-schema.sql` (for example, `db01.tbl01-schema.sql`). If this file is found, the `CREATE TABLE` statement is automatically executed if the table doesn't exist before the actual import process starts. If the table is still missing after this pre-create step, an error will occur.
	Tables []*ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0 `json:"tables"`
}

ListImportTasksOKBodyItemsItems0SpecTarget ImportTarget // // The target settings of the import task. swagger:model ListImportTasksOKBodyItemsItems0SpecTarget

func (*ListImportTasksOKBodyItemsItems0SpecTarget) ContextValidate

ContextValidate validate this list import tasks o k body items items0 spec target based on the context it is used

func (*ListImportTasksOKBodyItemsItems0SpecTarget) MarshalBinary

func (o *ListImportTasksOKBodyItemsItems0SpecTarget) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecTarget) UnmarshalBinary

func (o *ListImportTasksOKBodyItemsItems0SpecTarget) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecTarget) Validate

Validate validates this list import tasks o k body items items0 spec target

type ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0

type ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0 struct {

	// The target database name.
	// Example: db01
	// Required: true
	DatabaseName *string `json:"database_name"`

	// The filename pattern used to map the files in the data source to this target table. The pattern should be a simple glob pattern. Here are some examples:
	// * `my-data?.csv`: all CSV files starting with `my-data` and one character (such as `my-data1.csv` and `my-data2.csv`) will be imported into the same target table.
	// * `my-data*.csv`: all CSV files starting with `my-data` will be imported into the same target table.
	//
	// If no pattern is specified, a default pattern is used. The default pattern will try to find files with this naming convention as the data files for this table: `${db_name}.${table_name}.[numeric_index].${format_suffix}`.
	//
	// Here are some examples of filenames that can be matched as data files for the table `db01.table01`: `db01.table01.csv`, `db01.table01.00001.csv`.
	//
	// For more information about the custom file pattern and the default pattern, refer to [Import CSV Files from Amazon S3 or GCS into TiDB Cloud](https://docs.pingcap.com/tidbcloud/import-csv-files).
	//
	// **Note:** For `LOCAL_FILE` import tasks, use the local file name for this field. The local file name must match the local file name in [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile).
	// Example: data/db01/table01.*.csv
	FileNamePattern string `json:"file_name_pattern,omitempty"`

	// The target table name.
	// Example: table01
	// Required: true
	TableName *string `json:"table_name"`
}

ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0 ImportTargetTable // // ImportTargetTable represents the settings for importing source data into a single target table of an import task. swagger:model ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0

func (*ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) ContextValidate

ContextValidate validates this list import tasks o k body items items0 spec target tables items0 based on context it is used

func (*ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) MarshalBinary

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) Validate

Validate validates this list import tasks o k body items items0 spec target tables items0

type ListImportTasksOKBodyItemsItems0Status

type ListImportTasksOKBodyItemsItems0Status struct {

	// The end timestamp of the import task. The format is Unix timestamp (the seconds elapsed since the Unix epoch).
	// Example: 1676450897
	EndTimestamp string `json:"end_timestamp,omitempty"`

	// The error message of the import task.
	// Example: some error occurs
	ErrorMessage string `json:"error_message,omitempty"`

	// The current phase that the import task is in.
	// Example: IMPORTING
	// Required: true
	// Enum: [PREPARING IMPORTING COMPLETED FAILED CANCELING CANCELED]
	Phase *string `json:"phase"`

	// progress
	Progress *ListImportTasksOKBodyItemsItems0StatusProgress `json:"progress,omitempty"`

	// The total size of the import task's data source. The unit is bytes.
	// Example: 10737418240
	SourceTotalSizeBytes string `json:"source_total_size_bytes,omitempty"`

	// The start timestamp of the import task. The format is Unix timestamp (the seconds elapsed since the Unix epoch)
	// Example: 1676450597
	StartTimestamp string `json:"start_timestamp,omitempty"`
}

ListImportTasksOKBodyItemsItems0Status ImportStatus // // The status of the import task. swagger:model ListImportTasksOKBodyItemsItems0Status

func (*ListImportTasksOKBodyItemsItems0Status) ContextValidate

ContextValidate validate this list import tasks o k body items items0 status based on the context it is used

func (*ListImportTasksOKBodyItemsItems0Status) MarshalBinary

func (o *ListImportTasksOKBodyItemsItems0Status) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0Status) UnmarshalBinary

func (o *ListImportTasksOKBodyItemsItems0Status) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0Status) Validate

Validate validates this list import tasks o k body items items0 status

type ListImportTasksOKBodyItemsItems0StatusProgress

type ListImportTasksOKBodyItemsItems0StatusProgress struct {

	// The overall importing progress of the import task.
	// Example: 59
	// Required: true
	// Maximum: 100
	ImportProgress *float64 `json:"import_progress"`

	// The overall validation progress of the import task after the data has been imported into the target cluster.
	// Example: 59
	// Required: true
	// Maximum: 100
	ValidationProgress *float64 `json:"validation_progress"`
}

ListImportTasksOKBodyItemsItems0StatusProgress ImportProgress // // The progress of the import task. swagger:model ListImportTasksOKBodyItemsItems0StatusProgress

func (*ListImportTasksOKBodyItemsItems0StatusProgress) ContextValidate

ContextValidate validates this list import tasks o k body items items0 status progress based on context it is used

func (*ListImportTasksOKBodyItemsItems0StatusProgress) MarshalBinary

MarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0StatusProgress) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListImportTasksOKBodyItemsItems0StatusProgress) Validate

Validate validates this list import tasks o k body items items0 status progress

type ListImportTasksParams

type ListImportTasksParams struct {

	/* ClusterID.

	   The ID of your cluster. You can get the cluster ID from the response of [List all clusters in a project](#tag/Cluster/operation/ListClustersOfProject).

	   Format: uint64
	*/
	ClusterID string

	/* Page.

	   The number of pages.

	   Format: int64
	   Default: 1
	*/
	Page *int64

	/* PageSize.

	   The size of a page.

	   Format: int64
	   Default: 10
	*/
	PageSize *int64

	/* ProjectID.

	   The ID of your project. You can get the project ID from the response of [List all accessible projects](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListImportTasksParams contains all the parameters to send to the API endpoint

for the list import tasks operation.

Typically these are written to a http.Request.

func NewListImportTasksParams

func NewListImportTasksParams() *ListImportTasksParams

NewListImportTasksParams creates a new ListImportTasksParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListImportTasksParamsWithContext

func NewListImportTasksParamsWithContext(ctx context.Context) *ListImportTasksParams

NewListImportTasksParamsWithContext creates a new ListImportTasksParams object with the ability to set a context for a request.

func NewListImportTasksParamsWithHTTPClient

func NewListImportTasksParamsWithHTTPClient(client *http.Client) *ListImportTasksParams

NewListImportTasksParamsWithHTTPClient creates a new ListImportTasksParams object with the ability to set a custom HTTPClient for a request.

func NewListImportTasksParamsWithTimeout

func NewListImportTasksParamsWithTimeout(timeout time.Duration) *ListImportTasksParams

NewListImportTasksParamsWithTimeout creates a new ListImportTasksParams object with the ability to set a timeout on a request.

func (*ListImportTasksParams) SetClusterID

func (o *ListImportTasksParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list import tasks params

func (*ListImportTasksParams) SetContext

func (o *ListImportTasksParams) SetContext(ctx context.Context)

SetContext adds the context to the list import tasks params

func (*ListImportTasksParams) SetDefaults

func (o *ListImportTasksParams) SetDefaults()

SetDefaults hydrates default values in the list import tasks params (not the query body).

All values with no default are reset to their zero value.

func (*ListImportTasksParams) SetHTTPClient

func (o *ListImportTasksParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list import tasks params

func (*ListImportTasksParams) SetPage

func (o *ListImportTasksParams) SetPage(page *int64)

SetPage adds the page to the list import tasks params

func (*ListImportTasksParams) SetPageSize

func (o *ListImportTasksParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list import tasks params

func (*ListImportTasksParams) SetProjectID

func (o *ListImportTasksParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list import tasks params

func (*ListImportTasksParams) SetTimeout

func (o *ListImportTasksParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list import tasks params

func (*ListImportTasksParams) WithClusterID

func (o *ListImportTasksParams) WithClusterID(clusterID string) *ListImportTasksParams

WithClusterID adds the clusterID to the list import tasks params

func (*ListImportTasksParams) WithContext

WithContext adds the context to the list import tasks params

func (*ListImportTasksParams) WithDefaults

func (o *ListImportTasksParams) WithDefaults() *ListImportTasksParams

WithDefaults hydrates default values in the list import tasks params (not the query body).

All values with no default are reset to their zero value.

func (*ListImportTasksParams) WithHTTPClient

func (o *ListImportTasksParams) WithHTTPClient(client *http.Client) *ListImportTasksParams

WithHTTPClient adds the HTTPClient to the list import tasks params

func (*ListImportTasksParams) WithPage

WithPage adds the page to the list import tasks params

func (*ListImportTasksParams) WithPageSize

func (o *ListImportTasksParams) WithPageSize(pageSize *int64) *ListImportTasksParams

WithPageSize adds the pageSize to the list import tasks params

func (*ListImportTasksParams) WithProjectID

func (o *ListImportTasksParams) WithProjectID(projectID string) *ListImportTasksParams

WithProjectID adds the projectID to the list import tasks params

func (*ListImportTasksParams) WithTimeout

func (o *ListImportTasksParams) WithTimeout(timeout time.Duration) *ListImportTasksParams

WithTimeout adds the timeout to the list import tasks params

func (*ListImportTasksParams) WriteToRequest

func (o *ListImportTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListImportTasksReader

type ListImportTasksReader struct {
	// contains filtered or unexported fields
}

ListImportTasksReader is a Reader for the ListImportTasks structure.

func (*ListImportTasksReader) ReadResponse

func (o *ListImportTasksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListImportTasksTooManyRequests

type ListImportTasksTooManyRequests struct {
	Payload *ListImportTasksTooManyRequestsBody
}

ListImportTasksTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewListImportTasksTooManyRequests

func NewListImportTasksTooManyRequests() *ListImportTasksTooManyRequests

NewListImportTasksTooManyRequests creates a ListImportTasksTooManyRequests with default headers values

func (*ListImportTasksTooManyRequests) Code

Code gets the status code for the list import tasks too many requests response

func (*ListImportTasksTooManyRequests) Error

func (*ListImportTasksTooManyRequests) GetPayload

func (*ListImportTasksTooManyRequests) IsClientError

func (o *ListImportTasksTooManyRequests) IsClientError() bool

IsClientError returns true when this list import tasks too many requests response has a 4xx status code

func (*ListImportTasksTooManyRequests) IsCode

func (o *ListImportTasksTooManyRequests) IsCode(code int) bool

IsCode returns true when this list import tasks too many requests response a status code equal to that given

func (*ListImportTasksTooManyRequests) IsRedirect

func (o *ListImportTasksTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list import tasks too many requests response has a 3xx status code

func (*ListImportTasksTooManyRequests) IsServerError

func (o *ListImportTasksTooManyRequests) IsServerError() bool

IsServerError returns true when this list import tasks too many requests response has a 5xx status code

func (*ListImportTasksTooManyRequests) IsSuccess

func (o *ListImportTasksTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list import tasks too many requests response has a 2xx status code

func (*ListImportTasksTooManyRequests) String

type ListImportTasksTooManyRequestsBody

type ListImportTasksTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

ListImportTasksTooManyRequestsBody list import tasks too many requests body swagger:model ListImportTasksTooManyRequestsBody

func (*ListImportTasksTooManyRequestsBody) ContextValidate

func (o *ListImportTasksTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list import tasks too many requests body based on context it is used

func (*ListImportTasksTooManyRequestsBody) MarshalBinary

func (o *ListImportTasksTooManyRequestsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListImportTasksTooManyRequestsBody) UnmarshalBinary

func (o *ListImportTasksTooManyRequestsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListImportTasksTooManyRequestsBody) Validate

Validate validates this list import tasks too many requests body

type ListImportTasksUnauthorized

type ListImportTasksUnauthorized struct {
	Payload interface{}
}

ListImportTasksUnauthorized describes a response with status code 401, with default header values.

The API key cannot be authenticated.

func NewListImportTasksUnauthorized

func NewListImportTasksUnauthorized() *ListImportTasksUnauthorized

NewListImportTasksUnauthorized creates a ListImportTasksUnauthorized with default headers values

func (*ListImportTasksUnauthorized) Code

func (o *ListImportTasksUnauthorized) Code() int

Code gets the status code for the list import tasks unauthorized response

func (*ListImportTasksUnauthorized) Error

func (*ListImportTasksUnauthorized) GetPayload

func (o *ListImportTasksUnauthorized) GetPayload() interface{}

func (*ListImportTasksUnauthorized) IsClientError

func (o *ListImportTasksUnauthorized) IsClientError() bool

IsClientError returns true when this list import tasks unauthorized response has a 4xx status code

func (*ListImportTasksUnauthorized) IsCode

func (o *ListImportTasksUnauthorized) IsCode(code int) bool

IsCode returns true when this list import tasks unauthorized response a status code equal to that given

func (*ListImportTasksUnauthorized) IsRedirect

func (o *ListImportTasksUnauthorized) IsRedirect() bool

IsRedirect returns true when this list import tasks unauthorized response has a 3xx status code

func (*ListImportTasksUnauthorized) IsServerError

func (o *ListImportTasksUnauthorized) IsServerError() bool

IsServerError returns true when this list import tasks unauthorized response has a 5xx status code

func (*ListImportTasksUnauthorized) IsSuccess

func (o *ListImportTasksUnauthorized) IsSuccess() bool

IsSuccess returns true when this list import tasks unauthorized response has a 2xx status code

func (*ListImportTasksUnauthorized) String

func (o *ListImportTasksUnauthorized) String() string

type PreviewImportDataBadRequest

type PreviewImportDataBadRequest struct {
	Payload *PreviewImportDataBadRequestBody
}

PreviewImportDataBadRequest describes a response with status code 400, with default header values.

A request field is invalid.

func NewPreviewImportDataBadRequest

func NewPreviewImportDataBadRequest() *PreviewImportDataBadRequest

NewPreviewImportDataBadRequest creates a PreviewImportDataBadRequest with default headers values

func (*PreviewImportDataBadRequest) Code

func (o *PreviewImportDataBadRequest) Code() int

Code gets the status code for the preview import data bad request response

func (*PreviewImportDataBadRequest) Error

func (*PreviewImportDataBadRequest) GetPayload

func (*PreviewImportDataBadRequest) IsClientError

func (o *PreviewImportDataBadRequest) IsClientError() bool

IsClientError returns true when this preview import data bad request response has a 4xx status code

func (*PreviewImportDataBadRequest) IsCode

func (o *PreviewImportDataBadRequest) IsCode(code int) bool

IsCode returns true when this preview import data bad request response a status code equal to that given

func (*PreviewImportDataBadRequest) IsRedirect

func (o *PreviewImportDataBadRequest) IsRedirect() bool

IsRedirect returns true when this preview import data bad request response has a 3xx status code

func (*PreviewImportDataBadRequest) IsServerError

func (o *PreviewImportDataBadRequest) IsServerError() bool

IsServerError returns true when this preview import data bad request response has a 5xx status code

func (*PreviewImportDataBadRequest) IsSuccess

func (o *PreviewImportDataBadRequest) IsSuccess() bool

IsSuccess returns true when this preview import data bad request response has a 2xx status code

func (*PreviewImportDataBadRequest) String

func (o *PreviewImportDataBadRequest) String() string

type PreviewImportDataBadRequestBody

type PreviewImportDataBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

PreviewImportDataBadRequestBody preview import data bad request body swagger:model PreviewImportDataBadRequestBody

func (*PreviewImportDataBadRequestBody) ContextValidate

func (o *PreviewImportDataBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this preview import data bad request body based on context it is used

func (*PreviewImportDataBadRequestBody) MarshalBinary

func (o *PreviewImportDataBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataBadRequestBody) UnmarshalBinary

func (o *PreviewImportDataBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataBadRequestBody) Validate

Validate validates this preview import data bad request body

type PreviewImportDataBody

type PreviewImportDataBody struct {

	// The maximum number of rows to preview for each table.
	// Example: 10
	// Maximum: 20
	// Minimum: 1
	LimitRowsCount *int64 `json:"limit_rows_count,omitempty"`

	// spec
	// Required: true
	Spec *PreviewImportDataParamsBodySpec `json:"spec"`
}

PreviewImportDataBody PreviewImportDataReq // // PreviewImportDataReq is the request to preview the source data before starting an import task for a cluster. swagger:model PreviewImportDataBody

func (*PreviewImportDataBody) ContextValidate

func (o *PreviewImportDataBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this preview import data body based on the context it is used

func (*PreviewImportDataBody) MarshalBinary

func (o *PreviewImportDataBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataBody) UnmarshalBinary

func (o *PreviewImportDataBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataBody) Validate

func (o *PreviewImportDataBody) Validate(formats strfmt.Registry) error

Validate validates this preview import data body

type PreviewImportDataDefault

type PreviewImportDataDefault struct {
	Payload *PreviewImportDataDefaultBody
	// contains filtered or unexported fields
}

PreviewImportDataDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewPreviewImportDataDefault

func NewPreviewImportDataDefault(code int) *PreviewImportDataDefault

NewPreviewImportDataDefault creates a PreviewImportDataDefault with default headers values

func (*PreviewImportDataDefault) Code

func (o *PreviewImportDataDefault) Code() int

Code gets the status code for the preview import data default response

func (*PreviewImportDataDefault) Error

func (o *PreviewImportDataDefault) Error() string

func (*PreviewImportDataDefault) GetPayload

func (*PreviewImportDataDefault) IsClientError

func (o *PreviewImportDataDefault) IsClientError() bool

IsClientError returns true when this preview import data default response has a 4xx status code

func (*PreviewImportDataDefault) IsCode

func (o *PreviewImportDataDefault) IsCode(code int) bool

IsCode returns true when this preview import data default response a status code equal to that given

func (*PreviewImportDataDefault) IsRedirect

func (o *PreviewImportDataDefault) IsRedirect() bool

IsRedirect returns true when this preview import data default response has a 3xx status code

func (*PreviewImportDataDefault) IsServerError

func (o *PreviewImportDataDefault) IsServerError() bool

IsServerError returns true when this preview import data default response has a 5xx status code

func (*PreviewImportDataDefault) IsSuccess

func (o *PreviewImportDataDefault) IsSuccess() bool

IsSuccess returns true when this preview import data default response has a 2xx status code

func (*PreviewImportDataDefault) String

func (o *PreviewImportDataDefault) String() string

type PreviewImportDataDefaultBody

type PreviewImportDataDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*PreviewImportDataDefaultBodyDetailsItems0 `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

PreviewImportDataDefaultBody preview import data default body swagger:model PreviewImportDataDefaultBody

func (*PreviewImportDataDefaultBody) ContextValidate

func (o *PreviewImportDataDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this preview import data default body based on the context it is used

func (*PreviewImportDataDefaultBody) MarshalBinary

func (o *PreviewImportDataDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataDefaultBody) UnmarshalBinary

func (o *PreviewImportDataDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataDefaultBody) Validate

func (o *PreviewImportDataDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this preview import data default body

type PreviewImportDataDefaultBodyDetailsItems0

type PreviewImportDataDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

PreviewImportDataDefaultBodyDetailsItems0 preview import data default body details items0 swagger:model PreviewImportDataDefaultBodyDetailsItems0

func (*PreviewImportDataDefaultBodyDetailsItems0) ContextValidate

ContextValidate validates this preview import data default body details items0 based on context it is used

func (*PreviewImportDataDefaultBodyDetailsItems0) MarshalBinary

func (o *PreviewImportDataDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataDefaultBodyDetailsItems0) UnmarshalBinary

func (o *PreviewImportDataDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataDefaultBodyDetailsItems0) Validate

Validate validates this preview import data default body details items0

type PreviewImportDataForbidden

type PreviewImportDataForbidden struct {
	Payload *PreviewImportDataForbiddenBody
}

PreviewImportDataForbidden describes a response with status code 403, with default header values.

The API key does not have permission to access the resource.

func NewPreviewImportDataForbidden

func NewPreviewImportDataForbidden() *PreviewImportDataForbidden

NewPreviewImportDataForbidden creates a PreviewImportDataForbidden with default headers values

func (*PreviewImportDataForbidden) Code

func (o *PreviewImportDataForbidden) Code() int

Code gets the status code for the preview import data forbidden response

func (*PreviewImportDataForbidden) Error

func (*PreviewImportDataForbidden) GetPayload

func (*PreviewImportDataForbidden) IsClientError

func (o *PreviewImportDataForbidden) IsClientError() bool

IsClientError returns true when this preview import data forbidden response has a 4xx status code

func (*PreviewImportDataForbidden) IsCode

func (o *PreviewImportDataForbidden) IsCode(code int) bool

IsCode returns true when this preview import data forbidden response a status code equal to that given

func (*PreviewImportDataForbidden) IsRedirect

func (o *PreviewImportDataForbidden) IsRedirect() bool

IsRedirect returns true when this preview import data forbidden response has a 3xx status code

func (*PreviewImportDataForbidden) IsServerError

func (o *PreviewImportDataForbidden) IsServerError() bool

IsServerError returns true when this preview import data forbidden response has a 5xx status code

func (*PreviewImportDataForbidden) IsSuccess

func (o *PreviewImportDataForbidden) IsSuccess() bool

IsSuccess returns true when this preview import data forbidden response has a 2xx status code

func (*PreviewImportDataForbidden) String

func (o *PreviewImportDataForbidden) String() string

type PreviewImportDataForbiddenBody

type PreviewImportDataForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

PreviewImportDataForbiddenBody preview import data forbidden body swagger:model PreviewImportDataForbiddenBody

func (*PreviewImportDataForbiddenBody) ContextValidate

func (o *PreviewImportDataForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this preview import data forbidden body based on context it is used

func (*PreviewImportDataForbiddenBody) MarshalBinary

func (o *PreviewImportDataForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataForbiddenBody) UnmarshalBinary

func (o *PreviewImportDataForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataForbiddenBody) Validate

func (o *PreviewImportDataForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this preview import data forbidden body

type PreviewImportDataInternalServerError

type PreviewImportDataInternalServerError struct {
	Payload *PreviewImportDataInternalServerErrorBody
}

PreviewImportDataInternalServerError describes a response with status code 500, with default header values.

Server error.

func NewPreviewImportDataInternalServerError

func NewPreviewImportDataInternalServerError() *PreviewImportDataInternalServerError

NewPreviewImportDataInternalServerError creates a PreviewImportDataInternalServerError with default headers values

func (*PreviewImportDataInternalServerError) Code

Code gets the status code for the preview import data internal server error response

func (*PreviewImportDataInternalServerError) Error

func (*PreviewImportDataInternalServerError) GetPayload

func (*PreviewImportDataInternalServerError) IsClientError

func (o *PreviewImportDataInternalServerError) IsClientError() bool

IsClientError returns true when this preview import data internal server error response has a 4xx status code

func (*PreviewImportDataInternalServerError) IsCode

IsCode returns true when this preview import data internal server error response a status code equal to that given

func (*PreviewImportDataInternalServerError) IsRedirect

IsRedirect returns true when this preview import data internal server error response has a 3xx status code

func (*PreviewImportDataInternalServerError) IsServerError

func (o *PreviewImportDataInternalServerError) IsServerError() bool

IsServerError returns true when this preview import data internal server error response has a 5xx status code

func (*PreviewImportDataInternalServerError) IsSuccess

IsSuccess returns true when this preview import data internal server error response has a 2xx status code

func (*PreviewImportDataInternalServerError) String

type PreviewImportDataInternalServerErrorBody

type PreviewImportDataInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

PreviewImportDataInternalServerErrorBody preview import data internal server error body swagger:model PreviewImportDataInternalServerErrorBody

func (*PreviewImportDataInternalServerErrorBody) ContextValidate

ContextValidate validates this preview import data internal server error body based on context it is used

func (*PreviewImportDataInternalServerErrorBody) MarshalBinary

func (o *PreviewImportDataInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataInternalServerErrorBody) UnmarshalBinary

func (o *PreviewImportDataInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataInternalServerErrorBody) Validate

Validate validates this preview import data internal server error body

type PreviewImportDataNotFound

type PreviewImportDataNotFound struct {
	Payload *PreviewImportDataNotFoundBody
}

PreviewImportDataNotFound describes a response with status code 404, with default header values.

The requested resource does not exist.

func NewPreviewImportDataNotFound

func NewPreviewImportDataNotFound() *PreviewImportDataNotFound

NewPreviewImportDataNotFound creates a PreviewImportDataNotFound with default headers values

func (*PreviewImportDataNotFound) Code

func (o *PreviewImportDataNotFound) Code() int

Code gets the status code for the preview import data not found response

func (*PreviewImportDataNotFound) Error

func (o *PreviewImportDataNotFound) Error() string

func (*PreviewImportDataNotFound) GetPayload

func (*PreviewImportDataNotFound) IsClientError

func (o *PreviewImportDataNotFound) IsClientError() bool

IsClientError returns true when this preview import data not found response has a 4xx status code

func (*PreviewImportDataNotFound) IsCode

func (o *PreviewImportDataNotFound) IsCode(code int) bool

IsCode returns true when this preview import data not found response a status code equal to that given

func (*PreviewImportDataNotFound) IsRedirect

func (o *PreviewImportDataNotFound) IsRedirect() bool

IsRedirect returns true when this preview import data not found response has a 3xx status code

func (*PreviewImportDataNotFound) IsServerError

func (o *PreviewImportDataNotFound) IsServerError() bool

IsServerError returns true when this preview import data not found response has a 5xx status code

func (*PreviewImportDataNotFound) IsSuccess

func (o *PreviewImportDataNotFound) IsSuccess() bool

IsSuccess returns true when this preview import data not found response has a 2xx status code

func (*PreviewImportDataNotFound) String

func (o *PreviewImportDataNotFound) String() string

type PreviewImportDataNotFoundBody

type PreviewImportDataNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

PreviewImportDataNotFoundBody preview import data not found body swagger:model PreviewImportDataNotFoundBody

func (*PreviewImportDataNotFoundBody) ContextValidate

func (o *PreviewImportDataNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this preview import data not found body based on context it is used

func (*PreviewImportDataNotFoundBody) MarshalBinary

func (o *PreviewImportDataNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataNotFoundBody) UnmarshalBinary

func (o *PreviewImportDataNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataNotFoundBody) Validate

func (o *PreviewImportDataNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this preview import data not found body

type PreviewImportDataOK

type PreviewImportDataOK struct {
	Payload *PreviewImportDataOKBody
}

PreviewImportDataOK describes a response with status code 200, with default header values.

A successful response.

func NewPreviewImportDataOK

func NewPreviewImportDataOK() *PreviewImportDataOK

NewPreviewImportDataOK creates a PreviewImportDataOK with default headers values

func (*PreviewImportDataOK) Code

func (o *PreviewImportDataOK) Code() int

Code gets the status code for the preview import data o k response

func (*PreviewImportDataOK) Error

func (o *PreviewImportDataOK) Error() string

func (*PreviewImportDataOK) GetPayload

func (*PreviewImportDataOK) IsClientError

func (o *PreviewImportDataOK) IsClientError() bool

IsClientError returns true when this preview import data o k response has a 4xx status code

func (*PreviewImportDataOK) IsCode

func (o *PreviewImportDataOK) IsCode(code int) bool

IsCode returns true when this preview import data o k response a status code equal to that given

func (*PreviewImportDataOK) IsRedirect

func (o *PreviewImportDataOK) IsRedirect() bool

IsRedirect returns true when this preview import data o k response has a 3xx status code

func (*PreviewImportDataOK) IsServerError

func (o *PreviewImportDataOK) IsServerError() bool

IsServerError returns true when this preview import data o k response has a 5xx status code

func (*PreviewImportDataOK) IsSuccess

func (o *PreviewImportDataOK) IsSuccess() bool

IsSuccess returns true when this preview import data o k response has a 2xx status code

func (*PreviewImportDataOK) String

func (o *PreviewImportDataOK) String() string

type PreviewImportDataOKBody

type PreviewImportDataOKBody struct {

	// The preview results for each target table from the import task specification.
	TablePreviews []*PreviewImportDataOKBodyTablePreviewsItems0 `json:"table_previews"`
}

PreviewImportDataOKBody PreviewImportDataResp // // PreviewImportDataResp is the response of the source data preview before starting an import task. swagger:model PreviewImportDataOKBody

func (*PreviewImportDataOKBody) ContextValidate

func (o *PreviewImportDataOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this preview import data o k body based on the context it is used

func (*PreviewImportDataOKBody) MarshalBinary

func (o *PreviewImportDataOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataOKBody) UnmarshalBinary

func (o *PreviewImportDataOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataOKBody) Validate

func (o *PreviewImportDataOKBody) Validate(formats strfmt.Registry) error

Validate validates this preview import data o k body

type PreviewImportDataOKBodyTablePreviewsItems0

type PreviewImportDataOKBodyTablePreviewsItems0 struct {

	// data preview
	// Required: true
	DataPreview *PreviewImportDataOKBodyTablePreviewsItems0DataPreview `json:"data_preview"`

	// The database name of the preview table.
	// Example: db01
	// Required: true
	DatabaseName *string `json:"database_name"`

	// schema preview
	SchemaPreview *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview `json:"schema_preview,omitempty"`

	// The table name of the preview table.
	// Example: table01
	// Required: true
	TableName *string `json:"table_name"`
}

PreviewImportDataOKBodyTablePreviewsItems0 TablePreview // // TablePreview is the preview result for a single table. swagger:model PreviewImportDataOKBodyTablePreviewsItems0

func (*PreviewImportDataOKBodyTablePreviewsItems0) ContextValidate

ContextValidate validate this preview import data o k body table previews items0 based on the context it is used

func (*PreviewImportDataOKBodyTablePreviewsItems0) MarshalBinary

func (o *PreviewImportDataOKBodyTablePreviewsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0) UnmarshalBinary

func (o *PreviewImportDataOKBodyTablePreviewsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0) Validate

Validate validates this preview import data o k body table previews items0

type PreviewImportDataOKBodyTablePreviewsItems0DataPreview

type PreviewImportDataOKBodyTablePreviewsItems0DataPreview struct {

	// The column names for the following data samples from a table.
	// Example: ["id","column01"]
	ColumnNames []string `json:"column_names"`

	// The rows sampled from a table.
	// Required: true
	Rows []*PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0 `json:"rows"`
}

PreviewImportDataOKBodyTablePreviewsItems0DataPreview TableData // // The data sample for the preview table. swagger:model PreviewImportDataOKBodyTablePreviewsItems0DataPreview

func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreview) ContextValidate

ContextValidate validate this preview import data o k body table previews items0 data preview based on the context it is used

func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreview) MarshalBinary

MarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreview) UnmarshalBinary

UnmarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreview) Validate

Validate validates this preview import data o k body table previews items0 data preview

type PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0

type PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0 struct {

	// The columns extracted from a table row.
	// Example: ["1","abc"]
	// Required: true
	Columns []string `json:"columns"`
}

PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0 TableDataRow // // TableDataRow is a single row in a table. swagger:model PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0

func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) ContextValidate

ContextValidate validates this preview import data o k body table previews items0 data preview rows items0 based on context it is used

func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) MarshalBinary

MarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) Validate

Validate validates this preview import data o k body table previews items0 data preview rows items0

type PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview

type PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview struct {

	// The column definition for each column in the table.
	// Example: [{"column_name":"id","column_type":"INTEGER"},{"column_name":"column01","column_type":"VARCHAR(255)"}]
	// Required: true
	ColumnDefinitions []*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0 `json:"column_definitions"`

	// The primary key column names for the table. This is optional. The primary key is taken into account when the table is pre-created before an import task is started.
	// Example: ["id"]
	PrimaryKeyColumns []string `json:"primary_key_columns"`
}

PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview TableSchema // // The schema for the preview table. swagger:model PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview

func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) ContextValidate

ContextValidate validate this preview import data o k body table previews items0 schema preview based on the context it is used

func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) MarshalBinary

MarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) UnmarshalBinary

UnmarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) Validate

Validate validates this preview import data o k body table previews items0 schema preview

type PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0

type PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0 struct {

	// The column name.
	// Example: column01
	// Required: true
	ColumnName *string `json:"column_name"`

	// The column type.
	// Example: VARCHAR(255)
	// Required: true
	ColumnType *string `json:"column_type"`
}

PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0 ColumnDefinition // // ColumnDefinition is the definition of a column in a table. swagger:model PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0

func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) ContextValidate

ContextValidate validates this preview import data o k body table previews items0 schema preview column definitions items0 based on context it is used

func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) MarshalBinary

MarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) Validate

Validate validates this preview import data o k body table previews items0 schema preview column definitions items0

type PreviewImportDataParams

type PreviewImportDataParams struct {

	// Body.
	Body PreviewImportDataBody

	/* ClusterID.

	   The ID of your cluster that you want to start an import task. You can get the cluster ID from the response of [List all clusters in a project](#tag/Cluster/operation/ListClustersOfProject).

	   Format: uint64
	*/
	ClusterID string

	/* ProjectID.

	   The ID of your project. You can get the project ID from the response of [List all accessible projects](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PreviewImportDataParams contains all the parameters to send to the API endpoint

for the preview import data operation.

Typically these are written to a http.Request.

func NewPreviewImportDataParams

func NewPreviewImportDataParams() *PreviewImportDataParams

NewPreviewImportDataParams creates a new PreviewImportDataParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPreviewImportDataParamsWithContext

func NewPreviewImportDataParamsWithContext(ctx context.Context) *PreviewImportDataParams

NewPreviewImportDataParamsWithContext creates a new PreviewImportDataParams object with the ability to set a context for a request.

func NewPreviewImportDataParamsWithHTTPClient

func NewPreviewImportDataParamsWithHTTPClient(client *http.Client) *PreviewImportDataParams

NewPreviewImportDataParamsWithHTTPClient creates a new PreviewImportDataParams object with the ability to set a custom HTTPClient for a request.

func NewPreviewImportDataParamsWithTimeout

func NewPreviewImportDataParamsWithTimeout(timeout time.Duration) *PreviewImportDataParams

NewPreviewImportDataParamsWithTimeout creates a new PreviewImportDataParams object with the ability to set a timeout on a request.

func (*PreviewImportDataParams) SetBody

SetBody adds the body to the preview import data params

func (*PreviewImportDataParams) SetClusterID

func (o *PreviewImportDataParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the preview import data params

func (*PreviewImportDataParams) SetContext

func (o *PreviewImportDataParams) SetContext(ctx context.Context)

SetContext adds the context to the preview import data params

func (*PreviewImportDataParams) SetDefaults

func (o *PreviewImportDataParams) SetDefaults()

SetDefaults hydrates default values in the preview import data params (not the query body).

All values with no default are reset to their zero value.

func (*PreviewImportDataParams) SetHTTPClient

func (o *PreviewImportDataParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the preview import data params

func (*PreviewImportDataParams) SetProjectID

func (o *PreviewImportDataParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the preview import data params

func (*PreviewImportDataParams) SetTimeout

func (o *PreviewImportDataParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the preview import data params

func (*PreviewImportDataParams) WithBody

WithBody adds the body to the preview import data params

func (*PreviewImportDataParams) WithClusterID

func (o *PreviewImportDataParams) WithClusterID(clusterID string) *PreviewImportDataParams

WithClusterID adds the clusterID to the preview import data params

func (*PreviewImportDataParams) WithContext

WithContext adds the context to the preview import data params

func (*PreviewImportDataParams) WithDefaults

WithDefaults hydrates default values in the preview import data params (not the query body).

All values with no default are reset to their zero value.

func (*PreviewImportDataParams) WithHTTPClient

func (o *PreviewImportDataParams) WithHTTPClient(client *http.Client) *PreviewImportDataParams

WithHTTPClient adds the HTTPClient to the preview import data params

func (*PreviewImportDataParams) WithProjectID

func (o *PreviewImportDataParams) WithProjectID(projectID string) *PreviewImportDataParams

WithProjectID adds the projectID to the preview import data params

func (*PreviewImportDataParams) WithTimeout

WithTimeout adds the timeout to the preview import data params

func (*PreviewImportDataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PreviewImportDataParamsBodySpec

type PreviewImportDataParamsBodySpec struct {

	// source
	// Required: true
	Source *PreviewImportDataParamsBodySpecSource `json:"source"`

	// target
	// Required: true
	Target *PreviewImportDataParamsBodySpecTarget `json:"target"`
}

PreviewImportDataParamsBodySpec ImportSpec // // The specifications of the import task. // // **Note:** Currently, you can only preview locally uploaded files. This means that only data sources with the `LOCAL_FILE` source type are supported. If you specify a data source other than `LOCAL_FILE`, errors will occur. swagger:model PreviewImportDataParamsBodySpec

func (*PreviewImportDataParamsBodySpec) ContextValidate

func (o *PreviewImportDataParamsBodySpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this preview import data params body spec based on the context it is used

func (*PreviewImportDataParamsBodySpec) MarshalBinary

func (o *PreviewImportDataParamsBodySpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpec) UnmarshalBinary

func (o *PreviewImportDataParamsBodySpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpec) Validate

Validate validates this preview import data params body spec

type PreviewImportDataParamsBodySpecSource

type PreviewImportDataParamsBodySpecSource struct {

	// aws assume role access
	AwsAssumeRoleAccess *PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess `json:"aws_assume_role_access,omitempty"`

	// aws key access
	AwsKeyAccess *PreviewImportDataParamsBodySpecSourceAwsKeyAccess `json:"aws_key_access,omitempty"`

	// format
	// Required: true
	Format *PreviewImportDataParamsBodySpecSourceFormat `json:"format"`

	// The data source type of an import task.
	//
	// - `"S3"`: import data from Amazon S3
	// - `"GCS"`: import data from Google Cloud Storage
	// - `"LOCAL_FILE"`: import data from a local file (only available for [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless) clusters). Before you import from a local file, you need to first upload the file using the [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile) endpoint.
	//
	// **Note:** Currently, if this import spec is used for a [preview](#tag/Import/operation/PreviewImportData) request, only the `LOCAL_FILE` source type is supported.
	// Example: S3
	// Required: true
	// Enum: [S3 GCS LOCAL_FILE]
	Type *string `json:"type"`

	// The data source URI of an import task. The URI scheme must match the data source type. Here are the scheme of each source type:
	// * `S3`: `s3://`
	// * `GCS`: `gs://`
	// * `LOCAL_FILE`: `file://`.
	//
	// **Note:** If the import source type is `LOCAL_FILE`, just provide the `upload_stub_id` of the uploaded file from the response of [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile), and make it as the data source folder. For example: `file://12345/`.
	//
	// **Limitation**: If the import source type is `LOCAL_FILE`, only the `CSV` source format type is supported.
	// Example: s3://example-bucket/example-source-data/
	// Required: true
	URI *string `json:"uri"`
}

PreviewImportDataParamsBodySpecSource ImportSource // // The data source settings of the import task. swagger:model PreviewImportDataParamsBodySpecSource

func (*PreviewImportDataParamsBodySpecSource) ContextValidate

func (o *PreviewImportDataParamsBodySpecSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this preview import data params body spec source based on the context it is used

func (*PreviewImportDataParamsBodySpecSource) MarshalBinary

func (o *PreviewImportDataParamsBodySpecSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSource) UnmarshalBinary

func (o *PreviewImportDataParamsBodySpecSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSource) Validate

Validate validates this preview import data params body spec source

type PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess

type PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess struct {

	// The specific AWS role ARN that needs to be assumed to access the Amazon S3 data source.
	// Example: arn:aws:iam::999999999999:role/sample-role
	// Required: true
	AssumeRole *string `json:"assume_role"`
}

PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess AwsAssumeRoleAccess // // The settings to access the S3 data by assuming a specific AWS role. This field is only needed if you need to access S3 data by assuming an AWS role. // // **Note:** Provide only one of `aws_assume_role_access` and `aws_key_access`. If both `aws_assume_role_access` and `aws_key_access` are provided, an error will be reported. swagger:model PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess

func (*PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) ContextValidate

ContextValidate validates this preview import data params body spec source aws assume role access based on context it is used

func (*PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) MarshalBinary

MarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary

UnmarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) Validate

Validate validates this preview import data params body spec source aws assume role access

type PreviewImportDataParamsBodySpecSourceAwsKeyAccess

type PreviewImportDataParamsBodySpecSourceAwsKeyAccess struct {

	// The access key ID of the account to access the data. This information will be redacted when it is retrieved to obtain the import task information.
	// Example: YOUR_ACCESS_KEY_ID
	// Required: true
	AccessKeyID *string `json:"access_key_id"`

	// The secret access key for the account to access the data. This information will be redacted when it is retrieved to obtain the import task information.
	// Example: YOUR_SECRET_ACCESS_KEY
	// Required: true
	SecretAccessKey *string `json:"secret_access_key"`
}

PreviewImportDataParamsBodySpecSourceAwsKeyAccess AwsKeyAccess // // The settings to access the S3 data with an access key. This field is only needed if you want to access the S3 data with an access key. // // **Note:** Provide only one of `aws_assume_role_access` and `aws_key_access`. If both `aws_assume_role_access` and `aws_key_access` are provided, an error will be reported. swagger:model PreviewImportDataParamsBodySpecSourceAwsKeyAccess

func (*PreviewImportDataParamsBodySpecSourceAwsKeyAccess) ContextValidate

ContextValidate validates this preview import data params body spec source aws key access based on context it is used

func (*PreviewImportDataParamsBodySpecSourceAwsKeyAccess) MarshalBinary

MarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSourceAwsKeyAccess) UnmarshalBinary

UnmarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSourceAwsKeyAccess) Validate

Validate validates this preview import data params body spec source aws key access

type PreviewImportDataParamsBodySpecSourceFormat

type PreviewImportDataParamsBodySpecSourceFormat struct {

	// csv config
	CsvConfig *PreviewImportDataParamsBodySpecSourceFormatCsvConfig `json:"csv_config,omitempty"`

	// The format type of an import source.
	// Example: CSV
	// Required: true
	// Enum: [CSV PARQUET SQL AURORA_SNAPSHOT]
	Type *string `json:"type"`
}

PreviewImportDataParamsBodySpecSourceFormat ImportSourceFormat // // The format settings of the import data source. swagger:model PreviewImportDataParamsBodySpecSourceFormat

func (*PreviewImportDataParamsBodySpecSourceFormat) ContextValidate

ContextValidate validate this preview import data params body spec source format based on the context it is used

func (*PreviewImportDataParamsBodySpecSourceFormat) MarshalBinary

func (o *PreviewImportDataParamsBodySpecSourceFormat) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSourceFormat) UnmarshalBinary

func (o *PreviewImportDataParamsBodySpecSourceFormat) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSourceFormat) Validate

Validate validates this preview import data params body spec source format

type PreviewImportDataParamsBodySpecSourceFormatCsvConfig

type PreviewImportDataParamsBodySpecSourceFormatCsvConfig struct {

	// Whether a backslash (`\`) symbol followed by a character should be combined as a whole and treated as an escape sequence in a CSV field. For example, if this parameter is set to `true`, `\n` will be treated as a 'new-line' character. If it is set to `false`, `\n` will be treated as two separate characters: backslash and `n`.
	//
	// Currently, these are several supported escape sequences: `\0`, `\b`, `\n`, `\r`, `\t`, and `\Z`. If the parameter is set to `true`, but the backslash escape sequence is not recognized, the backslash character is ignored.
	BackslashEscape *bool `json:"backslash_escape,omitempty"`

	// The delimiter character used to separate fields in the CSV data.
	Delimiter *string `json:"delimiter,omitempty"`

	// Whether the CSV data has a header row, which is not part of the data. If it is set to `true`, the import task will use the column names in the header row to match the column names in the target table.
	HasHeaderRow *bool `json:"has_header_row,omitempty"`

	// The character used to quote the fields in the CSV data.
	Quote *string `json:"quote,omitempty"`
}

PreviewImportDataParamsBodySpecSourceFormatCsvConfig ImportSourceCSVConfig // // The CSV format settings to parse the source CSV files. This field is only needed if the source format is CSV. swagger:model PreviewImportDataParamsBodySpecSourceFormatCsvConfig

func (*PreviewImportDataParamsBodySpecSourceFormatCsvConfig) ContextValidate

ContextValidate validates this preview import data params body spec source format csv config based on context it is used

func (*PreviewImportDataParamsBodySpecSourceFormatCsvConfig) MarshalBinary

MarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSourceFormatCsvConfig) UnmarshalBinary

UnmarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecSourceFormatCsvConfig) Validate

Validate validates this preview import data params body spec source format csv config

type PreviewImportDataParamsBodySpecTarget

type PreviewImportDataParamsBodySpecTarget struct {

	// The settings for each target table that is being imported for the import task. If you leave it empty, the system will scan all the files in the data source using the default file patterns and collect all the tables to import. The files include data files, table schema files, and DB schema files. If you provide a list of tables, only those tables will be imported. For more information about the default file pattern, see [Import CSV Files from Amazon S3 or GCS into TiDB Cloud](https://docs.pingcap.com/tidbcloud/import-csv-files).
	//
	// **Limitations:**
	// * Currently, if you want to use a custom filename pattern, you can only specify one table. If all the tables use the default filename pattern, you can specify more than one target table in `tables`.
	// * It is recommended that you pre-create the target tables before creating an import task. You can do this either by executing the `CREATE TABLE` statement in the cluster or by specifying the table definition in the table creation options.
	// * If a target table is not created, the import module tries to find a **TABLE SCHEMA FILE** containing the `CREATE TABLE` statement of the table in the data source folder with the name `${db_name}.${table_name}-schema.sql` (for example, `db01.tbl01-schema.sql`). If this file is found, the `CREATE TABLE` statement is automatically executed if the table doesn't exist before the actual import process starts. If the table is still missing after this pre-create step, an error will occur.
	Tables []*PreviewImportDataParamsBodySpecTargetTablesItems0 `json:"tables"`
}

PreviewImportDataParamsBodySpecTarget ImportTarget // // The target settings of the import task. swagger:model PreviewImportDataParamsBodySpecTarget

func (*PreviewImportDataParamsBodySpecTarget) ContextValidate

func (o *PreviewImportDataParamsBodySpecTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this preview import data params body spec target based on the context it is used

func (*PreviewImportDataParamsBodySpecTarget) MarshalBinary

func (o *PreviewImportDataParamsBodySpecTarget) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecTarget) UnmarshalBinary

func (o *PreviewImportDataParamsBodySpecTarget) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecTarget) Validate

Validate validates this preview import data params body spec target

type PreviewImportDataParamsBodySpecTargetTablesItems0

type PreviewImportDataParamsBodySpecTargetTablesItems0 struct {

	// The target database name.
	// Example: db01
	// Required: true
	DatabaseName *string `json:"database_name"`

	// The filename pattern used to map the files in the data source to this target table. The pattern should be a simple glob pattern. Here are some examples:
	// * `my-data?.csv`: all CSV files starting with `my-data` and one character (such as `my-data1.csv` and `my-data2.csv`) will be imported into the same target table.
	// * `my-data*.csv`: all CSV files starting with `my-data` will be imported into the same target table.
	//
	// If no pattern is specified, a default pattern is used. The default pattern will try to find files with this naming convention as the data files for this table: `${db_name}.${table_name}.[numeric_index].${format_suffix}`.
	//
	// Here are some examples of filenames that can be matched as data files for the table `db01.table01`: `db01.table01.csv`, `db01.table01.00001.csv`.
	//
	// For more information about the custom file pattern and the default pattern, refer to [Import CSV Files from Amazon S3 or GCS into TiDB Cloud](https://docs.pingcap.com/tidbcloud/import-csv-files).
	//
	// **Note:** For `LOCAL_FILE` import tasks, use the local file name for this field. The local file name must match the local file name in [Upload a local file for an import task](#tag/Import/operation/UploadLocalFile).
	// Example: data/db01/table01.*.csv
	FileNamePattern string `json:"file_name_pattern,omitempty"`

	// The target table name.
	// Example: table01
	// Required: true
	TableName *string `json:"table_name"`
}

PreviewImportDataParamsBodySpecTargetTablesItems0 ImportTargetTable // // ImportTargetTable represents the settings for importing source data into a single target table of an import task. swagger:model PreviewImportDataParamsBodySpecTargetTablesItems0

func (*PreviewImportDataParamsBodySpecTargetTablesItems0) ContextValidate

ContextValidate validates this preview import data params body spec target tables items0 based on context it is used

func (*PreviewImportDataParamsBodySpecTargetTablesItems0) MarshalBinary

MarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecTargetTablesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*PreviewImportDataParamsBodySpecTargetTablesItems0) Validate

Validate validates this preview import data params body spec target tables items0

type PreviewImportDataReader

type PreviewImportDataReader struct {
	// contains filtered or unexported fields
}

PreviewImportDataReader is a Reader for the PreviewImportData structure.

func (*PreviewImportDataReader) ReadResponse

func (o *PreviewImportDataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PreviewImportDataTooManyRequests

type PreviewImportDataTooManyRequests struct {
	Payload *PreviewImportDataTooManyRequestsBody
}

PreviewImportDataTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewPreviewImportDataTooManyRequests

func NewPreviewImportDataTooManyRequests() *PreviewImportDataTooManyRequests

NewPreviewImportDataTooManyRequests creates a PreviewImportDataTooManyRequests with default headers values

func (*PreviewImportDataTooManyRequests) Code

Code gets the status code for the preview import data too many requests response

func (*PreviewImportDataTooManyRequests) Error

func (*PreviewImportDataTooManyRequests) GetPayload

func (*PreviewImportDataTooManyRequests) IsClientError

func (o *PreviewImportDataTooManyRequests) IsClientError() bool

IsClientError returns true when this preview import data too many requests response has a 4xx status code

func (*PreviewImportDataTooManyRequests) IsCode

func (o *PreviewImportDataTooManyRequests) IsCode(code int) bool

IsCode returns true when this preview import data too many requests response a status code equal to that given

func (*PreviewImportDataTooManyRequests) IsRedirect

func (o *PreviewImportDataTooManyRequests) IsRedirect() bool

IsRedirect returns true when this preview import data too many requests response has a 3xx status code

func (*PreviewImportDataTooManyRequests) IsServerError

func (o *PreviewImportDataTooManyRequests) IsServerError() bool

IsServerError returns true when this preview import data too many requests response has a 5xx status code

func (*PreviewImportDataTooManyRequests) IsSuccess

func (o *PreviewImportDataTooManyRequests) IsSuccess() bool

IsSuccess returns true when this preview import data too many requests response has a 2xx status code

func (*PreviewImportDataTooManyRequests) String

type PreviewImportDataTooManyRequestsBody

type PreviewImportDataTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

PreviewImportDataTooManyRequestsBody preview import data too many requests body swagger:model PreviewImportDataTooManyRequestsBody

func (*PreviewImportDataTooManyRequestsBody) ContextValidate

func (o *PreviewImportDataTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this preview import data too many requests body based on context it is used

func (*PreviewImportDataTooManyRequestsBody) MarshalBinary

func (o *PreviewImportDataTooManyRequestsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PreviewImportDataTooManyRequestsBody) UnmarshalBinary

func (o *PreviewImportDataTooManyRequestsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PreviewImportDataTooManyRequestsBody) Validate

Validate validates this preview import data too many requests body

type PreviewImportDataUnauthorized

type PreviewImportDataUnauthorized struct {
	Payload interface{}
}

PreviewImportDataUnauthorized describes a response with status code 401, with default header values.

The API key cannot be authenticated.

func NewPreviewImportDataUnauthorized

func NewPreviewImportDataUnauthorized() *PreviewImportDataUnauthorized

NewPreviewImportDataUnauthorized creates a PreviewImportDataUnauthorized with default headers values

func (*PreviewImportDataUnauthorized) Code

Code gets the status code for the preview import data unauthorized response

func (*PreviewImportDataUnauthorized) Error

func (*PreviewImportDataUnauthorized) GetPayload

func (o *PreviewImportDataUnauthorized) GetPayload() interface{}

func (*PreviewImportDataUnauthorized) IsClientError

func (o *PreviewImportDataUnauthorized) IsClientError() bool

IsClientError returns true when this preview import data unauthorized response has a 4xx status code

func (*PreviewImportDataUnauthorized) IsCode

func (o *PreviewImportDataUnauthorized) IsCode(code int) bool

IsCode returns true when this preview import data unauthorized response a status code equal to that given

func (*PreviewImportDataUnauthorized) IsRedirect

func (o *PreviewImportDataUnauthorized) IsRedirect() bool

IsRedirect returns true when this preview import data unauthorized response has a 3xx status code

func (*PreviewImportDataUnauthorized) IsServerError

func (o *PreviewImportDataUnauthorized) IsServerError() bool

IsServerError returns true when this preview import data unauthorized response has a 5xx status code

func (*PreviewImportDataUnauthorized) IsSuccess

func (o *PreviewImportDataUnauthorized) IsSuccess() bool

IsSuccess returns true when this preview import data unauthorized response has a 2xx status code

func (*PreviewImportDataUnauthorized) String

type UpdateImportTaskBadRequest

type UpdateImportTaskBadRequest struct {
	Payload *UpdateImportTaskBadRequestBody
}

UpdateImportTaskBadRequest describes a response with status code 400, with default header values.

A request field is invalid.

func NewUpdateImportTaskBadRequest

func NewUpdateImportTaskBadRequest() *UpdateImportTaskBadRequest

NewUpdateImportTaskBadRequest creates a UpdateImportTaskBadRequest with default headers values

func (*UpdateImportTaskBadRequest) Code

func (o *UpdateImportTaskBadRequest) Code() int

Code gets the status code for the update import task bad request response

func (*UpdateImportTaskBadRequest) Error

func (*UpdateImportTaskBadRequest) GetPayload

func (*UpdateImportTaskBadRequest) IsClientError

func (o *UpdateImportTaskBadRequest) IsClientError() bool

IsClientError returns true when this update import task bad request response has a 4xx status code

func (*UpdateImportTaskBadRequest) IsCode

func (o *UpdateImportTaskBadRequest) IsCode(code int) bool

IsCode returns true when this update import task bad request response a status code equal to that given

func (*UpdateImportTaskBadRequest) IsRedirect

func (o *UpdateImportTaskBadRequest) IsRedirect() bool

IsRedirect returns true when this update import task bad request response has a 3xx status code

func (*UpdateImportTaskBadRequest) IsServerError

func (o *UpdateImportTaskBadRequest) IsServerError() bool

IsServerError returns true when this update import task bad request response has a 5xx status code

func (*UpdateImportTaskBadRequest) IsSuccess

func (o *UpdateImportTaskBadRequest) IsSuccess() bool

IsSuccess returns true when this update import task bad request response has a 2xx status code

func (*UpdateImportTaskBadRequest) String

func (o *UpdateImportTaskBadRequest) String() string

type UpdateImportTaskBadRequestBody

type UpdateImportTaskBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UpdateImportTaskBadRequestBody update import task bad request body swagger:model UpdateImportTaskBadRequestBody

func (*UpdateImportTaskBadRequestBody) ContextValidate

func (o *UpdateImportTaskBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update import task bad request body based on context it is used

func (*UpdateImportTaskBadRequestBody) MarshalBinary

func (o *UpdateImportTaskBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateImportTaskBadRequestBody) UnmarshalBinary

func (o *UpdateImportTaskBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateImportTaskBadRequestBody) Validate

func (o *UpdateImportTaskBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this update import task bad request body

type UpdateImportTaskBody

type UpdateImportTaskBody struct {

	// The action to apply to the import task.
	//
	// **Limitation:**
	// Currently, only `CANCEL` is supported when the import task is in the `PREPARING` or `IMPORTING` phase, meaning that the import task will be cancelled.
	// Example: CANCEL
	// Required: true
	// Enum: [CANCEL]
	Action *string `json:"action"`
}

UpdateImportTaskBody UpdateImportTaskReq // // UpdateImportTaskReq is the request to update an import task. swagger:model UpdateImportTaskBody

func (*UpdateImportTaskBody) ContextValidate

func (o *UpdateImportTaskBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update import task body based on context it is used

func (*UpdateImportTaskBody) MarshalBinary

func (o *UpdateImportTaskBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateImportTaskBody) UnmarshalBinary

func (o *UpdateImportTaskBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateImportTaskBody) Validate

func (o *UpdateImportTaskBody) Validate(formats strfmt.Registry) error

Validate validates this update import task body

type UpdateImportTaskDefault

type UpdateImportTaskDefault struct {
	Payload *UpdateImportTaskDefaultBody
	// contains filtered or unexported fields
}

UpdateImportTaskDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewUpdateImportTaskDefault

func NewUpdateImportTaskDefault(code int) *UpdateImportTaskDefault

NewUpdateImportTaskDefault creates a UpdateImportTaskDefault with default headers values

func (*UpdateImportTaskDefault) Code

func (o *UpdateImportTaskDefault) Code() int

Code gets the status code for the update import task default response

func (*UpdateImportTaskDefault) Error

func (o *UpdateImportTaskDefault) Error() string

func (*UpdateImportTaskDefault) GetPayload

func (*UpdateImportTaskDefault) IsClientError

func (o *UpdateImportTaskDefault) IsClientError() bool

IsClientError returns true when this update import task default response has a 4xx status code

func (*UpdateImportTaskDefault) IsCode

func (o *UpdateImportTaskDefault) IsCode(code int) bool

IsCode returns true when this update import task default response a status code equal to that given

func (*UpdateImportTaskDefault) IsRedirect

func (o *UpdateImportTaskDefault) IsRedirect() bool

IsRedirect returns true when this update import task default response has a 3xx status code

func (*UpdateImportTaskDefault) IsServerError

func (o *UpdateImportTaskDefault) IsServerError() bool

IsServerError returns true when this update import task default response has a 5xx status code

func (*UpdateImportTaskDefault) IsSuccess

func (o *UpdateImportTaskDefault) IsSuccess() bool

IsSuccess returns true when this update import task default response has a 2xx status code

func (*UpdateImportTaskDefault) String

func (o *UpdateImportTaskDefault) String() string

type UpdateImportTaskDefaultBody

type UpdateImportTaskDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*UpdateImportTaskDefaultBodyDetailsItems0 `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

UpdateImportTaskDefaultBody update import task default body swagger:model UpdateImportTaskDefaultBody

func (*UpdateImportTaskDefaultBody) ContextValidate

func (o *UpdateImportTaskDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update import task default body based on the context it is used

func (*UpdateImportTaskDefaultBody) MarshalBinary

func (o *UpdateImportTaskDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateImportTaskDefaultBody) UnmarshalBinary

func (o *UpdateImportTaskDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateImportTaskDefaultBody) Validate

func (o *UpdateImportTaskDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this update import task default body

type UpdateImportTaskDefaultBodyDetailsItems0

type UpdateImportTaskDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

UpdateImportTaskDefaultBodyDetailsItems0 update import task default body details items0 swagger:model UpdateImportTaskDefaultBodyDetailsItems0

func (*UpdateImportTaskDefaultBodyDetailsItems0) ContextValidate

ContextValidate validates this update import task default body details items0 based on context it is used

func (*UpdateImportTaskDefaultBodyDetailsItems0) MarshalBinary

func (o *UpdateImportTaskDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateImportTaskDefaultBodyDetailsItems0) UnmarshalBinary

func (o *UpdateImportTaskDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateImportTaskDefaultBodyDetailsItems0) Validate

Validate validates this update import task default body details items0

type UpdateImportTaskForbidden

type UpdateImportTaskForbidden struct {
	Payload *UpdateImportTaskForbiddenBody
}

UpdateImportTaskForbidden describes a response with status code 403, with default header values.

The API key does not have permission to access the resource.

func NewUpdateImportTaskForbidden

func NewUpdateImportTaskForbidden() *UpdateImportTaskForbidden

NewUpdateImportTaskForbidden creates a UpdateImportTaskForbidden with default headers values

func (*UpdateImportTaskForbidden) Code

func (o *UpdateImportTaskForbidden) Code() int

Code gets the status code for the update import task forbidden response

func (*UpdateImportTaskForbidden) Error

func (o *UpdateImportTaskForbidden) Error() string

func (*UpdateImportTaskForbidden) GetPayload

func (*UpdateImportTaskForbidden) IsClientError

func (o *UpdateImportTaskForbidden) IsClientError() bool

IsClientError returns true when this update import task forbidden response has a 4xx status code

func (*UpdateImportTaskForbidden) IsCode

func (o *UpdateImportTaskForbidden) IsCode(code int) bool

IsCode returns true when this update import task forbidden response a status code equal to that given

func (*UpdateImportTaskForbidden) IsRedirect

func (o *UpdateImportTaskForbidden) IsRedirect() bool

IsRedirect returns true when this update import task forbidden response has a 3xx status code

func (*UpdateImportTaskForbidden) IsServerError

func (o *UpdateImportTaskForbidden) IsServerError() bool

IsServerError returns true when this update import task forbidden response has a 5xx status code

func (*UpdateImportTaskForbidden) IsSuccess

func (o *UpdateImportTaskForbidden) IsSuccess() bool

IsSuccess returns true when this update import task forbidden response has a 2xx status code

func (*UpdateImportTaskForbidden) String

func (o *UpdateImportTaskForbidden) String() string

type UpdateImportTaskForbiddenBody

type UpdateImportTaskForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UpdateImportTaskForbiddenBody update import task forbidden body swagger:model UpdateImportTaskForbiddenBody

func (*UpdateImportTaskForbiddenBody) ContextValidate

func (o *UpdateImportTaskForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update import task forbidden body based on context it is used

func (*UpdateImportTaskForbiddenBody) MarshalBinary

func (o *UpdateImportTaskForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateImportTaskForbiddenBody) UnmarshalBinary

func (o *UpdateImportTaskForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateImportTaskForbiddenBody) Validate

func (o *UpdateImportTaskForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this update import task forbidden body

type UpdateImportTaskInternalServerError

type UpdateImportTaskInternalServerError struct {
	Payload *UpdateImportTaskInternalServerErrorBody
}

UpdateImportTaskInternalServerError describes a response with status code 500, with default header values.

Server error.

func NewUpdateImportTaskInternalServerError

func NewUpdateImportTaskInternalServerError() *UpdateImportTaskInternalServerError

NewUpdateImportTaskInternalServerError creates a UpdateImportTaskInternalServerError with default headers values

func (*UpdateImportTaskInternalServerError) Code

Code gets the status code for the update import task internal server error response

func (*UpdateImportTaskInternalServerError) Error

func (*UpdateImportTaskInternalServerError) GetPayload

func (*UpdateImportTaskInternalServerError) IsClientError

func (o *UpdateImportTaskInternalServerError) IsClientError() bool

IsClientError returns true when this update import task internal server error response has a 4xx status code

func (*UpdateImportTaskInternalServerError) IsCode

IsCode returns true when this update import task internal server error response a status code equal to that given

func (*UpdateImportTaskInternalServerError) IsRedirect

func (o *UpdateImportTaskInternalServerError) IsRedirect() bool

IsRedirect returns true when this update import task internal server error response has a 3xx status code

func (*UpdateImportTaskInternalServerError) IsServerError

func (o *UpdateImportTaskInternalServerError) IsServerError() bool

IsServerError returns true when this update import task internal server error response has a 5xx status code

func (*UpdateImportTaskInternalServerError) IsSuccess

IsSuccess returns true when this update import task internal server error response has a 2xx status code

func (*UpdateImportTaskInternalServerError) String

type UpdateImportTaskInternalServerErrorBody

type UpdateImportTaskInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UpdateImportTaskInternalServerErrorBody update import task internal server error body swagger:model UpdateImportTaskInternalServerErrorBody

func (*UpdateImportTaskInternalServerErrorBody) ContextValidate

ContextValidate validates this update import task internal server error body based on context it is used

func (*UpdateImportTaskInternalServerErrorBody) MarshalBinary

func (o *UpdateImportTaskInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateImportTaskInternalServerErrorBody) UnmarshalBinary

func (o *UpdateImportTaskInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateImportTaskInternalServerErrorBody) Validate

Validate validates this update import task internal server error body

type UpdateImportTaskNotFound

type UpdateImportTaskNotFound struct {
	Payload *UpdateImportTaskNotFoundBody
}

UpdateImportTaskNotFound describes a response with status code 404, with default header values.

The requested resource does not exist.

func NewUpdateImportTaskNotFound

func NewUpdateImportTaskNotFound() *UpdateImportTaskNotFound

NewUpdateImportTaskNotFound creates a UpdateImportTaskNotFound with default headers values

func (*UpdateImportTaskNotFound) Code

func (o *UpdateImportTaskNotFound) Code() int

Code gets the status code for the update import task not found response

func (*UpdateImportTaskNotFound) Error

func (o *UpdateImportTaskNotFound) Error() string

func (*UpdateImportTaskNotFound) GetPayload

func (*UpdateImportTaskNotFound) IsClientError

func (o *UpdateImportTaskNotFound) IsClientError() bool

IsClientError returns true when this update import task not found response has a 4xx status code

func (*UpdateImportTaskNotFound) IsCode

func (o *UpdateImportTaskNotFound) IsCode(code int) bool

IsCode returns true when this update import task not found response a status code equal to that given

func (*UpdateImportTaskNotFound) IsRedirect

func (o *UpdateImportTaskNotFound) IsRedirect() bool

IsRedirect returns true when this update import task not found response has a 3xx status code

func (*UpdateImportTaskNotFound) IsServerError

func (o *UpdateImportTaskNotFound) IsServerError() bool

IsServerError returns true when this update import task not found response has a 5xx status code

func (*UpdateImportTaskNotFound) IsSuccess

func (o *UpdateImportTaskNotFound) IsSuccess() bool

IsSuccess returns true when this update import task not found response has a 2xx status code

func (*UpdateImportTaskNotFound) String

func (o *UpdateImportTaskNotFound) String() string

type UpdateImportTaskNotFoundBody

type UpdateImportTaskNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UpdateImportTaskNotFoundBody update import task not found body swagger:model UpdateImportTaskNotFoundBody

func (*UpdateImportTaskNotFoundBody) ContextValidate

func (o *UpdateImportTaskNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update import task not found body based on context it is used

func (*UpdateImportTaskNotFoundBody) MarshalBinary

func (o *UpdateImportTaskNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateImportTaskNotFoundBody) UnmarshalBinary

func (o *UpdateImportTaskNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateImportTaskNotFoundBody) Validate

func (o *UpdateImportTaskNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this update import task not found body

type UpdateImportTaskOK

type UpdateImportTaskOK struct {
	Payload interface{}
}

UpdateImportTaskOK describes a response with status code 200, with default header values.

A successful response.

func NewUpdateImportTaskOK

func NewUpdateImportTaskOK() *UpdateImportTaskOK

NewUpdateImportTaskOK creates a UpdateImportTaskOK with default headers values

func (*UpdateImportTaskOK) Code

func (o *UpdateImportTaskOK) Code() int

Code gets the status code for the update import task o k response

func (*UpdateImportTaskOK) Error

func (o *UpdateImportTaskOK) Error() string

func (*UpdateImportTaskOK) GetPayload

func (o *UpdateImportTaskOK) GetPayload() interface{}

func (*UpdateImportTaskOK) IsClientError

func (o *UpdateImportTaskOK) IsClientError() bool

IsClientError returns true when this update import task o k response has a 4xx status code

func (*UpdateImportTaskOK) IsCode

func (o *UpdateImportTaskOK) IsCode(code int) bool

IsCode returns true when this update import task o k response a status code equal to that given

func (*UpdateImportTaskOK) IsRedirect

func (o *UpdateImportTaskOK) IsRedirect() bool

IsRedirect returns true when this update import task o k response has a 3xx status code

func (*UpdateImportTaskOK) IsServerError

func (o *UpdateImportTaskOK) IsServerError() bool

IsServerError returns true when this update import task o k response has a 5xx status code

func (*UpdateImportTaskOK) IsSuccess

func (o *UpdateImportTaskOK) IsSuccess() bool

IsSuccess returns true when this update import task o k response has a 2xx status code

func (*UpdateImportTaskOK) String

func (o *UpdateImportTaskOK) String() string

type UpdateImportTaskParams

type UpdateImportTaskParams struct {

	// Body.
	Body UpdateImportTaskBody

	/* ClusterID.

	   The ID of your cluster. You can get the cluster ID from the response of [List all clusters in a project](#tag/Cluster/operation/ListClustersOfProject).

	   Format: uint64
	*/
	ClusterID string

	/* ImportID.

	   The ID of the import task. You can get the import ID from the response of [List import tasks for a cluster](#tag/Project/operation/ListImportTasks).

	   Format: uint64
	*/
	ImportID string

	/* ProjectID.

	   The ID of your project. You can get the project ID from the response of [List all accessible projects](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateImportTaskParams contains all the parameters to send to the API endpoint

for the update import task operation.

Typically these are written to a http.Request.

func NewUpdateImportTaskParams

func NewUpdateImportTaskParams() *UpdateImportTaskParams

NewUpdateImportTaskParams creates a new UpdateImportTaskParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateImportTaskParamsWithContext

func NewUpdateImportTaskParamsWithContext(ctx context.Context) *UpdateImportTaskParams

NewUpdateImportTaskParamsWithContext creates a new UpdateImportTaskParams object with the ability to set a context for a request.

func NewUpdateImportTaskParamsWithHTTPClient

func NewUpdateImportTaskParamsWithHTTPClient(client *http.Client) *UpdateImportTaskParams

NewUpdateImportTaskParamsWithHTTPClient creates a new UpdateImportTaskParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateImportTaskParamsWithTimeout

func NewUpdateImportTaskParamsWithTimeout(timeout time.Duration) *UpdateImportTaskParams

NewUpdateImportTaskParamsWithTimeout creates a new UpdateImportTaskParams object with the ability to set a timeout on a request.

func (*UpdateImportTaskParams) SetBody

SetBody adds the body to the update import task params

func (*UpdateImportTaskParams) SetClusterID

func (o *UpdateImportTaskParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the update import task params

func (*UpdateImportTaskParams) SetContext

func (o *UpdateImportTaskParams) SetContext(ctx context.Context)

SetContext adds the context to the update import task params

func (*UpdateImportTaskParams) SetDefaults

func (o *UpdateImportTaskParams) SetDefaults()

SetDefaults hydrates default values in the update import task params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateImportTaskParams) SetHTTPClient

func (o *UpdateImportTaskParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update import task params

func (*UpdateImportTaskParams) SetImportID

func (o *UpdateImportTaskParams) SetImportID(importID string)

SetImportID adds the importId to the update import task params

func (*UpdateImportTaskParams) SetProjectID

func (o *UpdateImportTaskParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the update import task params

func (*UpdateImportTaskParams) SetTimeout

func (o *UpdateImportTaskParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update import task params

func (*UpdateImportTaskParams) WithBody

WithBody adds the body to the update import task params

func (*UpdateImportTaskParams) WithClusterID

func (o *UpdateImportTaskParams) WithClusterID(clusterID string) *UpdateImportTaskParams

WithClusterID adds the clusterID to the update import task params

func (*UpdateImportTaskParams) WithContext

WithContext adds the context to the update import task params

func (*UpdateImportTaskParams) WithDefaults

WithDefaults hydrates default values in the update import task params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateImportTaskParams) WithHTTPClient

func (o *UpdateImportTaskParams) WithHTTPClient(client *http.Client) *UpdateImportTaskParams

WithHTTPClient adds the HTTPClient to the update import task params

func (*UpdateImportTaskParams) WithImportID

func (o *UpdateImportTaskParams) WithImportID(importID string) *UpdateImportTaskParams

WithImportID adds the importID to the update import task params

func (*UpdateImportTaskParams) WithProjectID

func (o *UpdateImportTaskParams) WithProjectID(projectID string) *UpdateImportTaskParams

WithProjectID adds the projectID to the update import task params

func (*UpdateImportTaskParams) WithTimeout

WithTimeout adds the timeout to the update import task params

func (*UpdateImportTaskParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateImportTaskReader

type UpdateImportTaskReader struct {
	// contains filtered or unexported fields
}

UpdateImportTaskReader is a Reader for the UpdateImportTask structure.

func (*UpdateImportTaskReader) ReadResponse

func (o *UpdateImportTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateImportTaskTooManyRequests

type UpdateImportTaskTooManyRequests struct {
	Payload *UpdateImportTaskTooManyRequestsBody
}

UpdateImportTaskTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewUpdateImportTaskTooManyRequests

func NewUpdateImportTaskTooManyRequests() *UpdateImportTaskTooManyRequests

NewUpdateImportTaskTooManyRequests creates a UpdateImportTaskTooManyRequests with default headers values

func (*UpdateImportTaskTooManyRequests) Code

Code gets the status code for the update import task too many requests response

func (*UpdateImportTaskTooManyRequests) Error

func (*UpdateImportTaskTooManyRequests) GetPayload

func (*UpdateImportTaskTooManyRequests) IsClientError

func (o *UpdateImportTaskTooManyRequests) IsClientError() bool

IsClientError returns true when this update import task too many requests response has a 4xx status code

func (*UpdateImportTaskTooManyRequests) IsCode

func (o *UpdateImportTaskTooManyRequests) IsCode(code int) bool

IsCode returns true when this update import task too many requests response a status code equal to that given

func (*UpdateImportTaskTooManyRequests) IsRedirect

func (o *UpdateImportTaskTooManyRequests) IsRedirect() bool

IsRedirect returns true when this update import task too many requests response has a 3xx status code

func (*UpdateImportTaskTooManyRequests) IsServerError

func (o *UpdateImportTaskTooManyRequests) IsServerError() bool

IsServerError returns true when this update import task too many requests response has a 5xx status code

func (*UpdateImportTaskTooManyRequests) IsSuccess

func (o *UpdateImportTaskTooManyRequests) IsSuccess() bool

IsSuccess returns true when this update import task too many requests response has a 2xx status code

func (*UpdateImportTaskTooManyRequests) String

type UpdateImportTaskTooManyRequestsBody

type UpdateImportTaskTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UpdateImportTaskTooManyRequestsBody update import task too many requests body swagger:model UpdateImportTaskTooManyRequestsBody

func (*UpdateImportTaskTooManyRequestsBody) ContextValidate

func (o *UpdateImportTaskTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update import task too many requests body based on context it is used

func (*UpdateImportTaskTooManyRequestsBody) MarshalBinary

func (o *UpdateImportTaskTooManyRequestsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateImportTaskTooManyRequestsBody) UnmarshalBinary

func (o *UpdateImportTaskTooManyRequestsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateImportTaskTooManyRequestsBody) Validate

Validate validates this update import task too many requests body

type UpdateImportTaskUnauthorized

type UpdateImportTaskUnauthorized struct {
	Payload interface{}
}

UpdateImportTaskUnauthorized describes a response with status code 401, with default header values.

The API key cannot be authenticated.

func NewUpdateImportTaskUnauthorized

func NewUpdateImportTaskUnauthorized() *UpdateImportTaskUnauthorized

NewUpdateImportTaskUnauthorized creates a UpdateImportTaskUnauthorized with default headers values

func (*UpdateImportTaskUnauthorized) Code

Code gets the status code for the update import task unauthorized response

func (*UpdateImportTaskUnauthorized) Error

func (*UpdateImportTaskUnauthorized) GetPayload

func (o *UpdateImportTaskUnauthorized) GetPayload() interface{}

func (*UpdateImportTaskUnauthorized) IsClientError

func (o *UpdateImportTaskUnauthorized) IsClientError() bool

IsClientError returns true when this update import task unauthorized response has a 4xx status code

func (*UpdateImportTaskUnauthorized) IsCode

func (o *UpdateImportTaskUnauthorized) IsCode(code int) bool

IsCode returns true when this update import task unauthorized response a status code equal to that given

func (*UpdateImportTaskUnauthorized) IsRedirect

func (o *UpdateImportTaskUnauthorized) IsRedirect() bool

IsRedirect returns true when this update import task unauthorized response has a 3xx status code

func (*UpdateImportTaskUnauthorized) IsServerError

func (o *UpdateImportTaskUnauthorized) IsServerError() bool

IsServerError returns true when this update import task unauthorized response has a 5xx status code

func (*UpdateImportTaskUnauthorized) IsSuccess

func (o *UpdateImportTaskUnauthorized) IsSuccess() bool

IsSuccess returns true when this update import task unauthorized response has a 2xx status code

func (*UpdateImportTaskUnauthorized) String

type UploadLocalFileBadRequest

type UploadLocalFileBadRequest struct {
	Payload *UploadLocalFileBadRequestBody
}

UploadLocalFileBadRequest describes a response with status code 400, with default header values.

A request field is invalid.

func NewUploadLocalFileBadRequest

func NewUploadLocalFileBadRequest() *UploadLocalFileBadRequest

NewUploadLocalFileBadRequest creates a UploadLocalFileBadRequest with default headers values

func (*UploadLocalFileBadRequest) Code

func (o *UploadLocalFileBadRequest) Code() int

Code gets the status code for the upload local file bad request response

func (*UploadLocalFileBadRequest) Error

func (o *UploadLocalFileBadRequest) Error() string

func (*UploadLocalFileBadRequest) GetPayload

func (*UploadLocalFileBadRequest) IsClientError

func (o *UploadLocalFileBadRequest) IsClientError() bool

IsClientError returns true when this upload local file bad request response has a 4xx status code

func (*UploadLocalFileBadRequest) IsCode

func (o *UploadLocalFileBadRequest) IsCode(code int) bool

IsCode returns true when this upload local file bad request response a status code equal to that given

func (*UploadLocalFileBadRequest) IsRedirect

func (o *UploadLocalFileBadRequest) IsRedirect() bool

IsRedirect returns true when this upload local file bad request response has a 3xx status code

func (*UploadLocalFileBadRequest) IsServerError

func (o *UploadLocalFileBadRequest) IsServerError() bool

IsServerError returns true when this upload local file bad request response has a 5xx status code

func (*UploadLocalFileBadRequest) IsSuccess

func (o *UploadLocalFileBadRequest) IsSuccess() bool

IsSuccess returns true when this upload local file bad request response has a 2xx status code

func (*UploadLocalFileBadRequest) String

func (o *UploadLocalFileBadRequest) String() string

type UploadLocalFileBadRequestBody

type UploadLocalFileBadRequestBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UploadLocalFileBadRequestBody upload local file bad request body swagger:model UploadLocalFileBadRequestBody

func (*UploadLocalFileBadRequestBody) ContextValidate

func (o *UploadLocalFileBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this upload local file bad request body based on context it is used

func (*UploadLocalFileBadRequestBody) MarshalBinary

func (o *UploadLocalFileBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileBadRequestBody) UnmarshalBinary

func (o *UploadLocalFileBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileBadRequestBody) Validate

func (o *UploadLocalFileBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this upload local file bad request body

type UploadLocalFileBody

type UploadLocalFileBody struct {

	// The local file name to be uploaded. Only CSV files are supported. The maximum length of the file name is 255 characters.
	//
	// **Note:**
	// * Provide only the basename of the file. For example, instead of specifying `/foo/bar/example_file.csv`, specify only `example_file.csv`. If you do specify a full file path, this endpoint will only use the basename as the file name.
	// * The directory name is not supported. For example: `/foobar/` is invalid.
	// Example: test.csv
	// Required: true
	// Max Length: 255
	LocalFileName *string `json:"local_file_name"`

	// payload
	// Required: true
	Payload *UploadLocalFileParamsBodyPayload `json:"payload"`
}

UploadLocalFileBody UploadLocalFileReq // // UploadLocalFileReq is the request to upload an import task. swagger:model UploadLocalFileBody

func (*UploadLocalFileBody) ContextValidate

func (o *UploadLocalFileBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this upload local file body based on the context it is used

func (*UploadLocalFileBody) MarshalBinary

func (o *UploadLocalFileBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileBody) UnmarshalBinary

func (o *UploadLocalFileBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileBody) Validate

func (o *UploadLocalFileBody) Validate(formats strfmt.Registry) error

Validate validates this upload local file body

type UploadLocalFileDefault

type UploadLocalFileDefault struct {
	Payload *UploadLocalFileDefaultBody
	// contains filtered or unexported fields
}

UploadLocalFileDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewUploadLocalFileDefault

func NewUploadLocalFileDefault(code int) *UploadLocalFileDefault

NewUploadLocalFileDefault creates a UploadLocalFileDefault with default headers values

func (*UploadLocalFileDefault) Code

func (o *UploadLocalFileDefault) Code() int

Code gets the status code for the upload local file default response

func (*UploadLocalFileDefault) Error

func (o *UploadLocalFileDefault) Error() string

func (*UploadLocalFileDefault) GetPayload

func (*UploadLocalFileDefault) IsClientError

func (o *UploadLocalFileDefault) IsClientError() bool

IsClientError returns true when this upload local file default response has a 4xx status code

func (*UploadLocalFileDefault) IsCode

func (o *UploadLocalFileDefault) IsCode(code int) bool

IsCode returns true when this upload local file default response a status code equal to that given

func (*UploadLocalFileDefault) IsRedirect

func (o *UploadLocalFileDefault) IsRedirect() bool

IsRedirect returns true when this upload local file default response has a 3xx status code

func (*UploadLocalFileDefault) IsServerError

func (o *UploadLocalFileDefault) IsServerError() bool

IsServerError returns true when this upload local file default response has a 5xx status code

func (*UploadLocalFileDefault) IsSuccess

func (o *UploadLocalFileDefault) IsSuccess() bool

IsSuccess returns true when this upload local file default response has a 2xx status code

func (*UploadLocalFileDefault) String

func (o *UploadLocalFileDefault) String() string

type UploadLocalFileDefaultBody

type UploadLocalFileDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*UploadLocalFileDefaultBodyDetailsItems0 `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

UploadLocalFileDefaultBody upload local file default body swagger:model UploadLocalFileDefaultBody

func (*UploadLocalFileDefaultBody) ContextValidate

func (o *UploadLocalFileDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this upload local file default body based on the context it is used

func (*UploadLocalFileDefaultBody) MarshalBinary

func (o *UploadLocalFileDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileDefaultBody) UnmarshalBinary

func (o *UploadLocalFileDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileDefaultBody) Validate

func (o *UploadLocalFileDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this upload local file default body

type UploadLocalFileDefaultBodyDetailsItems0

type UploadLocalFileDefaultBodyDetailsItems0 struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

UploadLocalFileDefaultBodyDetailsItems0 upload local file default body details items0 swagger:model UploadLocalFileDefaultBodyDetailsItems0

func (*UploadLocalFileDefaultBodyDetailsItems0) ContextValidate

ContextValidate validates this upload local file default body details items0 based on context it is used

func (*UploadLocalFileDefaultBodyDetailsItems0) MarshalBinary

func (o *UploadLocalFileDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileDefaultBodyDetailsItems0) UnmarshalBinary

func (o *UploadLocalFileDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileDefaultBodyDetailsItems0) Validate

Validate validates this upload local file default body details items0

type UploadLocalFileForbidden

type UploadLocalFileForbidden struct {
	Payload *UploadLocalFileForbiddenBody
}

UploadLocalFileForbidden describes a response with status code 403, with default header values.

The API key does not have permission to access the resource.

func NewUploadLocalFileForbidden

func NewUploadLocalFileForbidden() *UploadLocalFileForbidden

NewUploadLocalFileForbidden creates a UploadLocalFileForbidden with default headers values

func (*UploadLocalFileForbidden) Code

func (o *UploadLocalFileForbidden) Code() int

Code gets the status code for the upload local file forbidden response

func (*UploadLocalFileForbidden) Error

func (o *UploadLocalFileForbidden) Error() string

func (*UploadLocalFileForbidden) GetPayload

func (*UploadLocalFileForbidden) IsClientError

func (o *UploadLocalFileForbidden) IsClientError() bool

IsClientError returns true when this upload local file forbidden response has a 4xx status code

func (*UploadLocalFileForbidden) IsCode

func (o *UploadLocalFileForbidden) IsCode(code int) bool

IsCode returns true when this upload local file forbidden response a status code equal to that given

func (*UploadLocalFileForbidden) IsRedirect

func (o *UploadLocalFileForbidden) IsRedirect() bool

IsRedirect returns true when this upload local file forbidden response has a 3xx status code

func (*UploadLocalFileForbidden) IsServerError

func (o *UploadLocalFileForbidden) IsServerError() bool

IsServerError returns true when this upload local file forbidden response has a 5xx status code

func (*UploadLocalFileForbidden) IsSuccess

func (o *UploadLocalFileForbidden) IsSuccess() bool

IsSuccess returns true when this upload local file forbidden response has a 2xx status code

func (*UploadLocalFileForbidden) String

func (o *UploadLocalFileForbidden) String() string

type UploadLocalFileForbiddenBody

type UploadLocalFileForbiddenBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UploadLocalFileForbiddenBody upload local file forbidden body swagger:model UploadLocalFileForbiddenBody

func (*UploadLocalFileForbiddenBody) ContextValidate

func (o *UploadLocalFileForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this upload local file forbidden body based on context it is used

func (*UploadLocalFileForbiddenBody) MarshalBinary

func (o *UploadLocalFileForbiddenBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileForbiddenBody) UnmarshalBinary

func (o *UploadLocalFileForbiddenBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileForbiddenBody) Validate

func (o *UploadLocalFileForbiddenBody) Validate(formats strfmt.Registry) error

Validate validates this upload local file forbidden body

type UploadLocalFileInternalServerError

type UploadLocalFileInternalServerError struct {
	Payload *UploadLocalFileInternalServerErrorBody
}

UploadLocalFileInternalServerError describes a response with status code 500, with default header values.

Server error.

func NewUploadLocalFileInternalServerError

func NewUploadLocalFileInternalServerError() *UploadLocalFileInternalServerError

NewUploadLocalFileInternalServerError creates a UploadLocalFileInternalServerError with default headers values

func (*UploadLocalFileInternalServerError) Code

Code gets the status code for the upload local file internal server error response

func (*UploadLocalFileInternalServerError) Error

func (*UploadLocalFileInternalServerError) GetPayload

func (*UploadLocalFileInternalServerError) IsClientError

func (o *UploadLocalFileInternalServerError) IsClientError() bool

IsClientError returns true when this upload local file internal server error response has a 4xx status code

func (*UploadLocalFileInternalServerError) IsCode

IsCode returns true when this upload local file internal server error response a status code equal to that given

func (*UploadLocalFileInternalServerError) IsRedirect

func (o *UploadLocalFileInternalServerError) IsRedirect() bool

IsRedirect returns true when this upload local file internal server error response has a 3xx status code

func (*UploadLocalFileInternalServerError) IsServerError

func (o *UploadLocalFileInternalServerError) IsServerError() bool

IsServerError returns true when this upload local file internal server error response has a 5xx status code

func (*UploadLocalFileInternalServerError) IsSuccess

IsSuccess returns true when this upload local file internal server error response has a 2xx status code

func (*UploadLocalFileInternalServerError) String

type UploadLocalFileInternalServerErrorBody

type UploadLocalFileInternalServerErrorBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UploadLocalFileInternalServerErrorBody upload local file internal server error body swagger:model UploadLocalFileInternalServerErrorBody

func (*UploadLocalFileInternalServerErrorBody) ContextValidate

ContextValidate validates this upload local file internal server error body based on context it is used

func (*UploadLocalFileInternalServerErrorBody) MarshalBinary

func (o *UploadLocalFileInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileInternalServerErrorBody) UnmarshalBinary

func (o *UploadLocalFileInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileInternalServerErrorBody) Validate

Validate validates this upload local file internal server error body

type UploadLocalFileNotFound

type UploadLocalFileNotFound struct {
	Payload *UploadLocalFileNotFoundBody
}

UploadLocalFileNotFound describes a response with status code 404, with default header values.

The requested resource does not exist.

func NewUploadLocalFileNotFound

func NewUploadLocalFileNotFound() *UploadLocalFileNotFound

NewUploadLocalFileNotFound creates a UploadLocalFileNotFound with default headers values

func (*UploadLocalFileNotFound) Code

func (o *UploadLocalFileNotFound) Code() int

Code gets the status code for the upload local file not found response

func (*UploadLocalFileNotFound) Error

func (o *UploadLocalFileNotFound) Error() string

func (*UploadLocalFileNotFound) GetPayload

func (*UploadLocalFileNotFound) IsClientError

func (o *UploadLocalFileNotFound) IsClientError() bool

IsClientError returns true when this upload local file not found response has a 4xx status code

func (*UploadLocalFileNotFound) IsCode

func (o *UploadLocalFileNotFound) IsCode(code int) bool

IsCode returns true when this upload local file not found response a status code equal to that given

func (*UploadLocalFileNotFound) IsRedirect

func (o *UploadLocalFileNotFound) IsRedirect() bool

IsRedirect returns true when this upload local file not found response has a 3xx status code

func (*UploadLocalFileNotFound) IsServerError

func (o *UploadLocalFileNotFound) IsServerError() bool

IsServerError returns true when this upload local file not found response has a 5xx status code

func (*UploadLocalFileNotFound) IsSuccess

func (o *UploadLocalFileNotFound) IsSuccess() bool

IsSuccess returns true when this upload local file not found response has a 2xx status code

func (*UploadLocalFileNotFound) String

func (o *UploadLocalFileNotFound) String() string

type UploadLocalFileNotFoundBody

type UploadLocalFileNotFoundBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UploadLocalFileNotFoundBody upload local file not found body swagger:model UploadLocalFileNotFoundBody

func (*UploadLocalFileNotFoundBody) ContextValidate

func (o *UploadLocalFileNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this upload local file not found body based on context it is used

func (*UploadLocalFileNotFoundBody) MarshalBinary

func (o *UploadLocalFileNotFoundBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileNotFoundBody) UnmarshalBinary

func (o *UploadLocalFileNotFoundBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileNotFoundBody) Validate

func (o *UploadLocalFileNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this upload local file not found body

type UploadLocalFileOK

type UploadLocalFileOK struct {
	Payload *UploadLocalFileOKBody
}

UploadLocalFileOK describes a response with status code 200, with default header values.

A successful response.

func NewUploadLocalFileOK

func NewUploadLocalFileOK() *UploadLocalFileOK

NewUploadLocalFileOK creates a UploadLocalFileOK with default headers values

func (*UploadLocalFileOK) Code

func (o *UploadLocalFileOK) Code() int

Code gets the status code for the upload local file o k response

func (*UploadLocalFileOK) Error

func (o *UploadLocalFileOK) Error() string

func (*UploadLocalFileOK) GetPayload

func (o *UploadLocalFileOK) GetPayload() *UploadLocalFileOKBody

func (*UploadLocalFileOK) IsClientError

func (o *UploadLocalFileOK) IsClientError() bool

IsClientError returns true when this upload local file o k response has a 4xx status code

func (*UploadLocalFileOK) IsCode

func (o *UploadLocalFileOK) IsCode(code int) bool

IsCode returns true when this upload local file o k response a status code equal to that given

func (*UploadLocalFileOK) IsRedirect

func (o *UploadLocalFileOK) IsRedirect() bool

IsRedirect returns true when this upload local file o k response has a 3xx status code

func (*UploadLocalFileOK) IsServerError

func (o *UploadLocalFileOK) IsServerError() bool

IsServerError returns true when this upload local file o k response has a 5xx status code

func (*UploadLocalFileOK) IsSuccess

func (o *UploadLocalFileOK) IsSuccess() bool

IsSuccess returns true when this upload local file o k response has a 2xx status code

func (*UploadLocalFileOK) String

func (o *UploadLocalFileOK) String() string

type UploadLocalFileOKBody

type UploadLocalFileOKBody struct {

	// The stub ID for the uploaded file. You can use this stub ID to [create an import task](#tag/Import/operation/CreateImportTask).
	// Example: 123
	// Required: true
	UploadStubID *string `json:"upload_stub_id"`
}

UploadLocalFileOKBody UploadLocalFileResp // // UploadLocalFileResp is the response to upload an import task. swagger:model UploadLocalFileOKBody

func (*UploadLocalFileOKBody) ContextValidate

func (o *UploadLocalFileOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this upload local file o k body based on context it is used

func (*UploadLocalFileOKBody) MarshalBinary

func (o *UploadLocalFileOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileOKBody) UnmarshalBinary

func (o *UploadLocalFileOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileOKBody) Validate

func (o *UploadLocalFileOKBody) Validate(formats strfmt.Registry) error

Validate validates this upload local file o k body

type UploadLocalFileParams

type UploadLocalFileParams struct {

	// Body.
	Body UploadLocalFileBody

	/* ClusterID.

	   The ID of your cluster. You can get the cluster ID from the response of [List all clusters in a project](#tag/Cluster/operation/ListClustersOfProject).

	   Format: uint64
	*/
	ClusterID string

	/* ProjectID.

	   The ID of your project. You can get the project ID from the response of [List all accessible projects](#tag/Project/operation/ListProjects).

	   Format: uint64
	*/
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UploadLocalFileParams contains all the parameters to send to the API endpoint

for the upload local file operation.

Typically these are written to a http.Request.

func NewUploadLocalFileParams

func NewUploadLocalFileParams() *UploadLocalFileParams

NewUploadLocalFileParams creates a new UploadLocalFileParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUploadLocalFileParamsWithContext

func NewUploadLocalFileParamsWithContext(ctx context.Context) *UploadLocalFileParams

NewUploadLocalFileParamsWithContext creates a new UploadLocalFileParams object with the ability to set a context for a request.

func NewUploadLocalFileParamsWithHTTPClient

func NewUploadLocalFileParamsWithHTTPClient(client *http.Client) *UploadLocalFileParams

NewUploadLocalFileParamsWithHTTPClient creates a new UploadLocalFileParams object with the ability to set a custom HTTPClient for a request.

func NewUploadLocalFileParamsWithTimeout

func NewUploadLocalFileParamsWithTimeout(timeout time.Duration) *UploadLocalFileParams

NewUploadLocalFileParamsWithTimeout creates a new UploadLocalFileParams object with the ability to set a timeout on a request.

func (*UploadLocalFileParams) SetBody

func (o *UploadLocalFileParams) SetBody(body UploadLocalFileBody)

SetBody adds the body to the upload local file params

func (*UploadLocalFileParams) SetClusterID

func (o *UploadLocalFileParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the upload local file params

func (*UploadLocalFileParams) SetContext

func (o *UploadLocalFileParams) SetContext(ctx context.Context)

SetContext adds the context to the upload local file params

func (*UploadLocalFileParams) SetDefaults

func (o *UploadLocalFileParams) SetDefaults()

SetDefaults hydrates default values in the upload local file params (not the query body).

All values with no default are reset to their zero value.

func (*UploadLocalFileParams) SetHTTPClient

func (o *UploadLocalFileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the upload local file params

func (*UploadLocalFileParams) SetProjectID

func (o *UploadLocalFileParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the upload local file params

func (*UploadLocalFileParams) SetTimeout

func (o *UploadLocalFileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the upload local file params

func (*UploadLocalFileParams) WithBody

WithBody adds the body to the upload local file params

func (*UploadLocalFileParams) WithClusterID

func (o *UploadLocalFileParams) WithClusterID(clusterID string) *UploadLocalFileParams

WithClusterID adds the clusterID to the upload local file params

func (*UploadLocalFileParams) WithContext

WithContext adds the context to the upload local file params

func (*UploadLocalFileParams) WithDefaults

func (o *UploadLocalFileParams) WithDefaults() *UploadLocalFileParams

WithDefaults hydrates default values in the upload local file params (not the query body).

All values with no default are reset to their zero value.

func (*UploadLocalFileParams) WithHTTPClient

func (o *UploadLocalFileParams) WithHTTPClient(client *http.Client) *UploadLocalFileParams

WithHTTPClient adds the HTTPClient to the upload local file params

func (*UploadLocalFileParams) WithProjectID

func (o *UploadLocalFileParams) WithProjectID(projectID string) *UploadLocalFileParams

WithProjectID adds the projectID to the upload local file params

func (*UploadLocalFileParams) WithTimeout

func (o *UploadLocalFileParams) WithTimeout(timeout time.Duration) *UploadLocalFileParams

WithTimeout adds the timeout to the upload local file params

func (*UploadLocalFileParams) WriteToRequest

func (o *UploadLocalFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UploadLocalFileParamsBodyPayload

type UploadLocalFileParamsBodyPayload struct {

	// The base64-encoded content of the local file to be imported. The maximum size of the file should be 52428800 (50 MiB).
	//
	// **Note:** Before providing the content, process the file by taking the following steps:
	// 1. Compress the file using the **gzip** algorithm.
	// 2. Encode the compressed data using the **base64** algorithm.
	// Example: H4sIABbP9mMAAyXHOwoAIQwFwN5jvPoh5neggI2w9Z7fSJqBOZt/fvLQIURmLgFlrqE9BbVmPQOt5j0HvRa9AKN2AUwss6dTAAAA
	// Required: true
	// Max Length: 52428800
	// Format: byte
	Content *strfmt.Base64 `json:"content"`

	// The total size of the **ACTUAL** local file contents, not the total size of the `content` field.
	//
	// The unit is byte, and the maximum value is `52428800` (50 MiB). If the given value of `total_size_bytes` exceeds the maximum value, an error will be reported.
	// Example: 83
	// Required: true
	TotalSizeBytes *string `json:"total_size_bytes"`
}

UploadLocalFileParamsBodyPayload LocalFilePayload // // The payload to upload the local file content for an import task. swagger:model UploadLocalFileParamsBodyPayload

func (*UploadLocalFileParamsBodyPayload) ContextValidate

func (o *UploadLocalFileParamsBodyPayload) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this upload local file params body payload based on context it is used

func (*UploadLocalFileParamsBodyPayload) MarshalBinary

func (o *UploadLocalFileParamsBodyPayload) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileParamsBodyPayload) UnmarshalBinary

func (o *UploadLocalFileParamsBodyPayload) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileParamsBodyPayload) Validate

Validate validates this upload local file params body payload

type UploadLocalFileReader

type UploadLocalFileReader struct {
	// contains filtered or unexported fields
}

UploadLocalFileReader is a Reader for the UploadLocalFile structure.

func (*UploadLocalFileReader) ReadResponse

func (o *UploadLocalFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UploadLocalFileTooManyRequests

type UploadLocalFileTooManyRequests struct {
	Payload *UploadLocalFileTooManyRequestsBody
}

UploadLocalFileTooManyRequests describes a response with status code 429, with default header values.

You have exceed the rate limit.

func NewUploadLocalFileTooManyRequests

func NewUploadLocalFileTooManyRequests() *UploadLocalFileTooManyRequests

NewUploadLocalFileTooManyRequests creates a UploadLocalFileTooManyRequests with default headers values

func (*UploadLocalFileTooManyRequests) Code

Code gets the status code for the upload local file too many requests response

func (*UploadLocalFileTooManyRequests) Error

func (*UploadLocalFileTooManyRequests) GetPayload

func (*UploadLocalFileTooManyRequests) IsClientError

func (o *UploadLocalFileTooManyRequests) IsClientError() bool

IsClientError returns true when this upload local file too many requests response has a 4xx status code

func (*UploadLocalFileTooManyRequests) IsCode

func (o *UploadLocalFileTooManyRequests) IsCode(code int) bool

IsCode returns true when this upload local file too many requests response a status code equal to that given

func (*UploadLocalFileTooManyRequests) IsRedirect

func (o *UploadLocalFileTooManyRequests) IsRedirect() bool

IsRedirect returns true when this upload local file too many requests response has a 3xx status code

func (*UploadLocalFileTooManyRequests) IsServerError

func (o *UploadLocalFileTooManyRequests) IsServerError() bool

IsServerError returns true when this upload local file too many requests response has a 5xx status code

func (*UploadLocalFileTooManyRequests) IsSuccess

func (o *UploadLocalFileTooManyRequests) IsSuccess() bool

IsSuccess returns true when this upload local file too many requests response has a 2xx status code

func (*UploadLocalFileTooManyRequests) String

type UploadLocalFileTooManyRequestsBody

type UploadLocalFileTooManyRequestsBody struct {

	// code
	//
	// Error code returned with this error.
	Code int64 `json:"code,omitempty"`

	// details
	//
	// Error details returned with this error.
	Details []string `json:"details"`

	// message
	//
	// Error message returned with this error.
	Message string `json:"message,omitempty"`
}

UploadLocalFileTooManyRequestsBody upload local file too many requests body swagger:model UploadLocalFileTooManyRequestsBody

func (*UploadLocalFileTooManyRequestsBody) ContextValidate

func (o *UploadLocalFileTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this upload local file too many requests body based on context it is used

func (*UploadLocalFileTooManyRequestsBody) MarshalBinary

func (o *UploadLocalFileTooManyRequestsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UploadLocalFileTooManyRequestsBody) UnmarshalBinary

func (o *UploadLocalFileTooManyRequestsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UploadLocalFileTooManyRequestsBody) Validate

Validate validates this upload local file too many requests body

type UploadLocalFileUnauthorized

type UploadLocalFileUnauthorized struct {
	Payload interface{}
}

UploadLocalFileUnauthorized describes a response with status code 401, with default header values.

The API key cannot be authenticated.

func NewUploadLocalFileUnauthorized

func NewUploadLocalFileUnauthorized() *UploadLocalFileUnauthorized

NewUploadLocalFileUnauthorized creates a UploadLocalFileUnauthorized with default headers values

func (*UploadLocalFileUnauthorized) Code

func (o *UploadLocalFileUnauthorized) Code() int

Code gets the status code for the upload local file unauthorized response

func (*UploadLocalFileUnauthorized) Error

func (*UploadLocalFileUnauthorized) GetPayload

func (o *UploadLocalFileUnauthorized) GetPayload() interface{}

func (*UploadLocalFileUnauthorized) IsClientError

func (o *UploadLocalFileUnauthorized) IsClientError() bool

IsClientError returns true when this upload local file unauthorized response has a 4xx status code

func (*UploadLocalFileUnauthorized) IsCode

func (o *UploadLocalFileUnauthorized) IsCode(code int) bool

IsCode returns true when this upload local file unauthorized response a status code equal to that given

func (*UploadLocalFileUnauthorized) IsRedirect

func (o *UploadLocalFileUnauthorized) IsRedirect() bool

IsRedirect returns true when this upload local file unauthorized response has a 3xx status code

func (*UploadLocalFileUnauthorized) IsServerError

func (o *UploadLocalFileUnauthorized) IsServerError() bool

IsServerError returns true when this upload local file unauthorized response has a 5xx status code

func (*UploadLocalFileUnauthorized) IsSuccess

func (o *UploadLocalFileUnauthorized) IsSuccess() bool

IsSuccess returns true when this upload local file unauthorized response has a 2xx status code

func (*UploadLocalFileUnauthorized) String

func (o *UploadLocalFileUnauthorized) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL