Documentation
¶
Index ¶
- Constants
- type Client
- func (a *Client) CreateImportTask(params *CreateImportTaskParams, opts ...ClientOption) (*CreateImportTaskOK, error)
- func (a *Client) GetImportTask(params *GetImportTaskParams, opts ...ClientOption) (*GetImportTaskOK, error)
- func (a *Client) GetImportTaskRoleInfo(params *GetImportTaskRoleInfoParams, opts ...ClientOption) (*GetImportTaskRoleInfoOK, error)
- func (a *Client) ListImportTasks(params *ListImportTasksParams, opts ...ClientOption) (*ListImportTasksOK, error)
- func (a *Client) PreviewImportData(params *PreviewImportDataParams, opts ...ClientOption) (*PreviewImportDataOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateImportTask(params *UpdateImportTaskParams, opts ...ClientOption) (*UpdateImportTaskOK, error)
- func (a *Client) UploadLocalFile(params *UploadLocalFileParams, opts ...ClientOption) (*UploadLocalFileOK, error)
- type ClientOption
- type ClientService
- type CreateImportTaskBadRequest
- func (o *CreateImportTaskBadRequest) Code() int
- func (o *CreateImportTaskBadRequest) Error() string
- func (o *CreateImportTaskBadRequest) GetPayload() *CreateImportTaskBadRequestBody
- func (o *CreateImportTaskBadRequest) IsClientError() bool
- func (o *CreateImportTaskBadRequest) IsCode(code int) bool
- func (o *CreateImportTaskBadRequest) IsRedirect() bool
- func (o *CreateImportTaskBadRequest) IsServerError() bool
- func (o *CreateImportTaskBadRequest) IsSuccess() bool
- func (o *CreateImportTaskBadRequest) String() string
- type CreateImportTaskBadRequestBody
- func (o *CreateImportTaskBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskBadRequestBody) Validate(formats strfmt.Registry) error
- type CreateImportTaskBody
- type CreateImportTaskDefault
- func (o *CreateImportTaskDefault) Code() int
- func (o *CreateImportTaskDefault) Error() string
- func (o *CreateImportTaskDefault) GetPayload() *CreateImportTaskDefaultBody
- func (o *CreateImportTaskDefault) IsClientError() bool
- func (o *CreateImportTaskDefault) IsCode(code int) bool
- func (o *CreateImportTaskDefault) IsRedirect() bool
- func (o *CreateImportTaskDefault) IsServerError() bool
- func (o *CreateImportTaskDefault) IsSuccess() bool
- func (o *CreateImportTaskDefault) String() string
- type CreateImportTaskDefaultBody
- func (o *CreateImportTaskDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskDefaultBody) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskDefaultBody) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskDefaultBody) Validate(formats strfmt.Registry) error
- type CreateImportTaskDefaultBodyDetailsItems0
- func (o *CreateImportTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type CreateImportTaskForbidden
- func (o *CreateImportTaskForbidden) Code() int
- func (o *CreateImportTaskForbidden) Error() string
- func (o *CreateImportTaskForbidden) GetPayload() *CreateImportTaskForbiddenBody
- func (o *CreateImportTaskForbidden) IsClientError() bool
- func (o *CreateImportTaskForbidden) IsCode(code int) bool
- func (o *CreateImportTaskForbidden) IsRedirect() bool
- func (o *CreateImportTaskForbidden) IsServerError() bool
- func (o *CreateImportTaskForbidden) IsSuccess() bool
- func (o *CreateImportTaskForbidden) String() string
- type CreateImportTaskForbiddenBody
- func (o *CreateImportTaskForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskForbiddenBody) Validate(formats strfmt.Registry) error
- type CreateImportTaskInternalServerError
- func (o *CreateImportTaskInternalServerError) Code() int
- func (o *CreateImportTaskInternalServerError) Error() string
- func (o *CreateImportTaskInternalServerError) GetPayload() *CreateImportTaskInternalServerErrorBody
- func (o *CreateImportTaskInternalServerError) IsClientError() bool
- func (o *CreateImportTaskInternalServerError) IsCode(code int) bool
- func (o *CreateImportTaskInternalServerError) IsRedirect() bool
- func (o *CreateImportTaskInternalServerError) IsServerError() bool
- func (o *CreateImportTaskInternalServerError) IsSuccess() bool
- func (o *CreateImportTaskInternalServerError) String() string
- type CreateImportTaskInternalServerErrorBody
- func (o *CreateImportTaskInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type CreateImportTaskNotFound
- func (o *CreateImportTaskNotFound) Code() int
- func (o *CreateImportTaskNotFound) Error() string
- func (o *CreateImportTaskNotFound) GetPayload() *CreateImportTaskNotFoundBody
- func (o *CreateImportTaskNotFound) IsClientError() bool
- func (o *CreateImportTaskNotFound) IsCode(code int) bool
- func (o *CreateImportTaskNotFound) IsRedirect() bool
- func (o *CreateImportTaskNotFound) IsServerError() bool
- func (o *CreateImportTaskNotFound) IsSuccess() bool
- func (o *CreateImportTaskNotFound) String() string
- type CreateImportTaskNotFoundBody
- func (o *CreateImportTaskNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskNotFoundBody) Validate(formats strfmt.Registry) error
- type CreateImportTaskOK
- func (o *CreateImportTaskOK) Code() int
- func (o *CreateImportTaskOK) Error() string
- func (o *CreateImportTaskOK) GetPayload() *CreateImportTaskOKBody
- func (o *CreateImportTaskOK) IsClientError() bool
- func (o *CreateImportTaskOK) IsCode(code int) bool
- func (o *CreateImportTaskOK) IsRedirect() bool
- func (o *CreateImportTaskOK) IsServerError() bool
- func (o *CreateImportTaskOK) IsSuccess() bool
- func (o *CreateImportTaskOK) String() string
- type CreateImportTaskOKBody
- func (o *CreateImportTaskOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskOKBody) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskOKBody) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskOKBody) Validate(formats strfmt.Registry) error
- type CreateImportTaskParams
- func NewCreateImportTaskParams() *CreateImportTaskParams
- func NewCreateImportTaskParamsWithContext(ctx context.Context) *CreateImportTaskParams
- func NewCreateImportTaskParamsWithHTTPClient(client *http.Client) *CreateImportTaskParams
- func NewCreateImportTaskParamsWithTimeout(timeout time.Duration) *CreateImportTaskParams
- func (o *CreateImportTaskParams) SetBody(body CreateImportTaskBody)
- func (o *CreateImportTaskParams) SetClusterID(clusterID string)
- func (o *CreateImportTaskParams) SetContext(ctx context.Context)
- func (o *CreateImportTaskParams) SetDefaults()
- func (o *CreateImportTaskParams) SetHTTPClient(client *http.Client)
- func (o *CreateImportTaskParams) SetProjectID(projectID string)
- func (o *CreateImportTaskParams) SetTimeout(timeout time.Duration)
- func (o *CreateImportTaskParams) WithBody(body CreateImportTaskBody) *CreateImportTaskParams
- func (o *CreateImportTaskParams) WithClusterID(clusterID string) *CreateImportTaskParams
- func (o *CreateImportTaskParams) WithContext(ctx context.Context) *CreateImportTaskParams
- func (o *CreateImportTaskParams) WithDefaults() *CreateImportTaskParams
- func (o *CreateImportTaskParams) WithHTTPClient(client *http.Client) *CreateImportTaskParams
- func (o *CreateImportTaskParams) WithProjectID(projectID string) *CreateImportTaskParams
- func (o *CreateImportTaskParams) WithTimeout(timeout time.Duration) *CreateImportTaskParams
- func (o *CreateImportTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateImportTaskParamsBodyOptions
- func (o *CreateImportTaskParamsBodyOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodyOptions) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodyOptions) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodyOptions) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodyOptionsPreCreateTablesItems0
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodySpec
- func (o *CreateImportTaskParamsBodySpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodySpec) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodySpec) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodySpec) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodySpecSource
- func (o *CreateImportTaskParamsBodySpecSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodySpecSource) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodySpecSource) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodySpecSource) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess
- func (o *CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodySpecSourceAwsKeyAccess
- func (o *CreateImportTaskParamsBodySpecSourceAwsKeyAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodySpecSourceAwsKeyAccess) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodySpecSourceAwsKeyAccess) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodySpecSourceAwsKeyAccess) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodySpecSourceFormat
- func (o *CreateImportTaskParamsBodySpecSourceFormat) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodySpecSourceFormat) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodySpecSourceFormat) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodySpecSourceFormat) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodySpecSourceFormatCsvConfig
- func (o *CreateImportTaskParamsBodySpecSourceFormatCsvConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodySpecSourceFormatCsvConfig) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodySpecSourceFormatCsvConfig) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodySpecSourceFormatCsvConfig) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodySpecTarget
- func (o *CreateImportTaskParamsBodySpecTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodySpecTarget) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodySpecTarget) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodySpecTarget) Validate(formats strfmt.Registry) error
- type CreateImportTaskParamsBodySpecTargetTablesItems0
- func (o *CreateImportTaskParamsBodySpecTargetTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskParamsBodySpecTargetTablesItems0) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskParamsBodySpecTargetTablesItems0) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskParamsBodySpecTargetTablesItems0) Validate(formats strfmt.Registry) error
- type CreateImportTaskReader
- type CreateImportTaskTooManyRequests
- func (o *CreateImportTaskTooManyRequests) Code() int
- func (o *CreateImportTaskTooManyRequests) Error() string
- func (o *CreateImportTaskTooManyRequests) GetPayload() *CreateImportTaskTooManyRequestsBody
- func (o *CreateImportTaskTooManyRequests) IsClientError() bool
- func (o *CreateImportTaskTooManyRequests) IsCode(code int) bool
- func (o *CreateImportTaskTooManyRequests) IsRedirect() bool
- func (o *CreateImportTaskTooManyRequests) IsServerError() bool
- func (o *CreateImportTaskTooManyRequests) IsSuccess() bool
- func (o *CreateImportTaskTooManyRequests) String() string
- type CreateImportTaskTooManyRequestsBody
- func (o *CreateImportTaskTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateImportTaskTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *CreateImportTaskTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *CreateImportTaskTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type CreateImportTaskUnauthorized
- func (o *CreateImportTaskUnauthorized) Code() int
- func (o *CreateImportTaskUnauthorized) Error() string
- func (o *CreateImportTaskUnauthorized) GetPayload() interface{}
- func (o *CreateImportTaskUnauthorized) IsClientError() bool
- func (o *CreateImportTaskUnauthorized) IsCode(code int) bool
- func (o *CreateImportTaskUnauthorized) IsRedirect() bool
- func (o *CreateImportTaskUnauthorized) IsServerError() bool
- func (o *CreateImportTaskUnauthorized) IsSuccess() bool
- func (o *CreateImportTaskUnauthorized) String() string
- type GetImportTaskBadRequest
- func (o *GetImportTaskBadRequest) Code() int
- func (o *GetImportTaskBadRequest) Error() string
- func (o *GetImportTaskBadRequest) GetPayload() *GetImportTaskBadRequestBody
- func (o *GetImportTaskBadRequest) IsClientError() bool
- func (o *GetImportTaskBadRequest) IsCode(code int) bool
- func (o *GetImportTaskBadRequest) IsRedirect() bool
- func (o *GetImportTaskBadRequest) IsServerError() bool
- func (o *GetImportTaskBadRequest) IsSuccess() bool
- func (o *GetImportTaskBadRequest) String() string
- type GetImportTaskBadRequestBody
- func (o *GetImportTaskBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskBadRequestBody) Validate(formats strfmt.Registry) error
- type GetImportTaskDefault
- func (o *GetImportTaskDefault) Code() int
- func (o *GetImportTaskDefault) Error() string
- func (o *GetImportTaskDefault) GetPayload() *GetImportTaskDefaultBody
- func (o *GetImportTaskDefault) IsClientError() bool
- func (o *GetImportTaskDefault) IsCode(code int) bool
- func (o *GetImportTaskDefault) IsRedirect() bool
- func (o *GetImportTaskDefault) IsServerError() bool
- func (o *GetImportTaskDefault) IsSuccess() bool
- func (o *GetImportTaskDefault) String() string
- type GetImportTaskDefaultBody
- func (o *GetImportTaskDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskDefaultBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskDefaultBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskDefaultBody) Validate(formats strfmt.Registry) error
- type GetImportTaskDefaultBodyDetailsItems0
- func (o *GetImportTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type GetImportTaskForbidden
- func (o *GetImportTaskForbidden) Code() int
- func (o *GetImportTaskForbidden) Error() string
- func (o *GetImportTaskForbidden) GetPayload() *GetImportTaskForbiddenBody
- func (o *GetImportTaskForbidden) IsClientError() bool
- func (o *GetImportTaskForbidden) IsCode(code int) bool
- func (o *GetImportTaskForbidden) IsRedirect() bool
- func (o *GetImportTaskForbidden) IsServerError() bool
- func (o *GetImportTaskForbidden) IsSuccess() bool
- func (o *GetImportTaskForbidden) String() string
- type GetImportTaskForbiddenBody
- func (o *GetImportTaskForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskForbiddenBody) Validate(formats strfmt.Registry) error
- type GetImportTaskInternalServerError
- func (o *GetImportTaskInternalServerError) Code() int
- func (o *GetImportTaskInternalServerError) Error() string
- func (o *GetImportTaskInternalServerError) GetPayload() *GetImportTaskInternalServerErrorBody
- func (o *GetImportTaskInternalServerError) IsClientError() bool
- func (o *GetImportTaskInternalServerError) IsCode(code int) bool
- func (o *GetImportTaskInternalServerError) IsRedirect() bool
- func (o *GetImportTaskInternalServerError) IsServerError() bool
- func (o *GetImportTaskInternalServerError) IsSuccess() bool
- func (o *GetImportTaskInternalServerError) String() string
- type GetImportTaskInternalServerErrorBody
- func (o *GetImportTaskInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type GetImportTaskNotFound
- func (o *GetImportTaskNotFound) Code() int
- func (o *GetImportTaskNotFound) Error() string
- func (o *GetImportTaskNotFound) GetPayload() *GetImportTaskNotFoundBody
- func (o *GetImportTaskNotFound) IsClientError() bool
- func (o *GetImportTaskNotFound) IsCode(code int) bool
- func (o *GetImportTaskNotFound) IsRedirect() bool
- func (o *GetImportTaskNotFound) IsServerError() bool
- func (o *GetImportTaskNotFound) IsSuccess() bool
- func (o *GetImportTaskNotFound) String() string
- type GetImportTaskNotFoundBody
- func (o *GetImportTaskNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskNotFoundBody) Validate(formats strfmt.Registry) error
- type GetImportTaskOK
- func (o *GetImportTaskOK) Code() int
- func (o *GetImportTaskOK) Error() string
- func (o *GetImportTaskOK) GetPayload() *GetImportTaskOKBody
- func (o *GetImportTaskOK) IsClientError() bool
- func (o *GetImportTaskOK) IsCode(code int) bool
- func (o *GetImportTaskOK) IsRedirect() bool
- func (o *GetImportTaskOK) IsServerError() bool
- func (o *GetImportTaskOK) IsSuccess() bool
- func (o *GetImportTaskOK) String() string
- type GetImportTaskOKBody
- type GetImportTaskOKBodyMetadata
- func (o *GetImportTaskOKBodyMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodyMetadata) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodyMetadata) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodyMetadata) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodySpec
- func (o *GetImportTaskOKBodySpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodySpec) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodySpec) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodySpec) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodySpecSource
- func (o *GetImportTaskOKBodySpecSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodySpecSource) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodySpecSource) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodySpecSource) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess
- func (o *GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodySpecSourceAwsKeyAccess
- func (o *GetImportTaskOKBodySpecSourceAwsKeyAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodySpecSourceAwsKeyAccess) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodySpecSourceAwsKeyAccess) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodySpecSourceAwsKeyAccess) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodySpecSourceFormat
- func (o *GetImportTaskOKBodySpecSourceFormat) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodySpecSourceFormat) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodySpecSourceFormat) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodySpecSourceFormat) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodySpecSourceFormatCsvConfig
- func (o *GetImportTaskOKBodySpecSourceFormatCsvConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodySpecSourceFormatCsvConfig) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodySpecSourceFormatCsvConfig) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodySpecSourceFormatCsvConfig) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodySpecTarget
- func (o *GetImportTaskOKBodySpecTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodySpecTarget) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodySpecTarget) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodySpecTarget) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodySpecTargetTablesItems0
- func (o *GetImportTaskOKBodySpecTargetTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodySpecTargetTablesItems0) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodySpecTargetTablesItems0) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodySpecTargetTablesItems0) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodyStatus
- func (o *GetImportTaskOKBodyStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodyStatus) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodyStatus) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodyStatus) Validate(formats strfmt.Registry) error
- type GetImportTaskOKBodyStatusProgress
- func (o *GetImportTaskOKBodyStatusProgress) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskOKBodyStatusProgress) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskOKBodyStatusProgress) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskOKBodyStatusProgress) Validate(formats strfmt.Registry) error
- type GetImportTaskParams
- func (o *GetImportTaskParams) SetClusterID(clusterID string)
- func (o *GetImportTaskParams) SetContext(ctx context.Context)
- func (o *GetImportTaskParams) SetDefaults()
- func (o *GetImportTaskParams) SetHTTPClient(client *http.Client)
- func (o *GetImportTaskParams) SetImportID(importID string)
- func (o *GetImportTaskParams) SetProjectID(projectID string)
- func (o *GetImportTaskParams) SetTimeout(timeout time.Duration)
- func (o *GetImportTaskParams) WithClusterID(clusterID string) *GetImportTaskParams
- func (o *GetImportTaskParams) WithContext(ctx context.Context) *GetImportTaskParams
- func (o *GetImportTaskParams) WithDefaults() *GetImportTaskParams
- func (o *GetImportTaskParams) WithHTTPClient(client *http.Client) *GetImportTaskParams
- func (o *GetImportTaskParams) WithImportID(importID string) *GetImportTaskParams
- func (o *GetImportTaskParams) WithProjectID(projectID string) *GetImportTaskParams
- func (o *GetImportTaskParams) WithTimeout(timeout time.Duration) *GetImportTaskParams
- func (o *GetImportTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetImportTaskReader
- type GetImportTaskRoleInfoBadRequest
- func (o *GetImportTaskRoleInfoBadRequest) Code() int
- func (o *GetImportTaskRoleInfoBadRequest) Error() string
- func (o *GetImportTaskRoleInfoBadRequest) GetPayload() *GetImportTaskRoleInfoBadRequestBody
- func (o *GetImportTaskRoleInfoBadRequest) IsClientError() bool
- func (o *GetImportTaskRoleInfoBadRequest) IsCode(code int) bool
- func (o *GetImportTaskRoleInfoBadRequest) IsRedirect() bool
- func (o *GetImportTaskRoleInfoBadRequest) IsServerError() bool
- func (o *GetImportTaskRoleInfoBadRequest) IsSuccess() bool
- func (o *GetImportTaskRoleInfoBadRequest) String() string
- type GetImportTaskRoleInfoBadRequestBody
- func (o *GetImportTaskRoleInfoBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoBadRequestBody) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoDefault
- func (o *GetImportTaskRoleInfoDefault) Code() int
- func (o *GetImportTaskRoleInfoDefault) Error() string
- func (o *GetImportTaskRoleInfoDefault) GetPayload() *GetImportTaskRoleInfoDefaultBody
- func (o *GetImportTaskRoleInfoDefault) IsClientError() bool
- func (o *GetImportTaskRoleInfoDefault) IsCode(code int) bool
- func (o *GetImportTaskRoleInfoDefault) IsRedirect() bool
- func (o *GetImportTaskRoleInfoDefault) IsServerError() bool
- func (o *GetImportTaskRoleInfoDefault) IsSuccess() bool
- func (o *GetImportTaskRoleInfoDefault) String() string
- type GetImportTaskRoleInfoDefaultBody
- func (o *GetImportTaskRoleInfoDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoDefaultBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoDefaultBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoDefaultBody) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoDefaultBodyDetailsItems0
- func (o *GetImportTaskRoleInfoDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoForbidden
- func (o *GetImportTaskRoleInfoForbidden) Code() int
- func (o *GetImportTaskRoleInfoForbidden) Error() string
- func (o *GetImportTaskRoleInfoForbidden) GetPayload() *GetImportTaskRoleInfoForbiddenBody
- func (o *GetImportTaskRoleInfoForbidden) IsClientError() bool
- func (o *GetImportTaskRoleInfoForbidden) IsCode(code int) bool
- func (o *GetImportTaskRoleInfoForbidden) IsRedirect() bool
- func (o *GetImportTaskRoleInfoForbidden) IsServerError() bool
- func (o *GetImportTaskRoleInfoForbidden) IsSuccess() bool
- func (o *GetImportTaskRoleInfoForbidden) String() string
- type GetImportTaskRoleInfoForbiddenBody
- func (o *GetImportTaskRoleInfoForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoForbiddenBody) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoInternalServerError
- func (o *GetImportTaskRoleInfoInternalServerError) Code() int
- func (o *GetImportTaskRoleInfoInternalServerError) Error() string
- func (o *GetImportTaskRoleInfoInternalServerError) GetPayload() *GetImportTaskRoleInfoInternalServerErrorBody
- func (o *GetImportTaskRoleInfoInternalServerError) IsClientError() bool
- func (o *GetImportTaskRoleInfoInternalServerError) IsCode(code int) bool
- func (o *GetImportTaskRoleInfoInternalServerError) IsRedirect() bool
- func (o *GetImportTaskRoleInfoInternalServerError) IsServerError() bool
- func (o *GetImportTaskRoleInfoInternalServerError) IsSuccess() bool
- func (o *GetImportTaskRoleInfoInternalServerError) String() string
- type GetImportTaskRoleInfoInternalServerErrorBody
- func (o *GetImportTaskRoleInfoInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoNotFound
- func (o *GetImportTaskRoleInfoNotFound) Code() int
- func (o *GetImportTaskRoleInfoNotFound) Error() string
- func (o *GetImportTaskRoleInfoNotFound) GetPayload() *GetImportTaskRoleInfoNotFoundBody
- func (o *GetImportTaskRoleInfoNotFound) IsClientError() bool
- func (o *GetImportTaskRoleInfoNotFound) IsCode(code int) bool
- func (o *GetImportTaskRoleInfoNotFound) IsRedirect() bool
- func (o *GetImportTaskRoleInfoNotFound) IsServerError() bool
- func (o *GetImportTaskRoleInfoNotFound) IsSuccess() bool
- func (o *GetImportTaskRoleInfoNotFound) String() string
- type GetImportTaskRoleInfoNotFoundBody
- func (o *GetImportTaskRoleInfoNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoNotFoundBody) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoOK
- func (o *GetImportTaskRoleInfoOK) Code() int
- func (o *GetImportTaskRoleInfoOK) Error() string
- func (o *GetImportTaskRoleInfoOK) GetPayload() *GetImportTaskRoleInfoOKBody
- func (o *GetImportTaskRoleInfoOK) IsClientError() bool
- func (o *GetImportTaskRoleInfoOK) IsCode(code int) bool
- func (o *GetImportTaskRoleInfoOK) IsRedirect() bool
- func (o *GetImportTaskRoleInfoOK) IsServerError() bool
- func (o *GetImportTaskRoleInfoOK) IsSuccess() bool
- func (o *GetImportTaskRoleInfoOK) String() string
- type GetImportTaskRoleInfoOKBody
- func (o *GetImportTaskRoleInfoOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoOKBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoOKBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoOKBody) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoOKBodyAwsImportRole
- func (o *GetImportTaskRoleInfoOKBodyAwsImportRole) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoOKBodyAwsImportRole) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoOKBodyAwsImportRole) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoOKBodyAwsImportRole) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoOKBodyGcpImportRole
- func (o *GetImportTaskRoleInfoOKBodyGcpImportRole) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoOKBodyGcpImportRole) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoOKBodyGcpImportRole) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoOKBodyGcpImportRole) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoParams
- func NewGetImportTaskRoleInfoParams() *GetImportTaskRoleInfoParams
- func NewGetImportTaskRoleInfoParamsWithContext(ctx context.Context) *GetImportTaskRoleInfoParams
- func NewGetImportTaskRoleInfoParamsWithHTTPClient(client *http.Client) *GetImportTaskRoleInfoParams
- func NewGetImportTaskRoleInfoParamsWithTimeout(timeout time.Duration) *GetImportTaskRoleInfoParams
- func (o *GetImportTaskRoleInfoParams) SetClusterID(clusterID string)
- func (o *GetImportTaskRoleInfoParams) SetContext(ctx context.Context)
- func (o *GetImportTaskRoleInfoParams) SetDefaults()
- func (o *GetImportTaskRoleInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetImportTaskRoleInfoParams) SetProjectID(projectID string)
- func (o *GetImportTaskRoleInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetImportTaskRoleInfoParams) WithClusterID(clusterID string) *GetImportTaskRoleInfoParams
- func (o *GetImportTaskRoleInfoParams) WithContext(ctx context.Context) *GetImportTaskRoleInfoParams
- func (o *GetImportTaskRoleInfoParams) WithDefaults() *GetImportTaskRoleInfoParams
- func (o *GetImportTaskRoleInfoParams) WithHTTPClient(client *http.Client) *GetImportTaskRoleInfoParams
- func (o *GetImportTaskRoleInfoParams) WithProjectID(projectID string) *GetImportTaskRoleInfoParams
- func (o *GetImportTaskRoleInfoParams) WithTimeout(timeout time.Duration) *GetImportTaskRoleInfoParams
- func (o *GetImportTaskRoleInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetImportTaskRoleInfoReader
- type GetImportTaskRoleInfoTooManyRequests
- func (o *GetImportTaskRoleInfoTooManyRequests) Code() int
- func (o *GetImportTaskRoleInfoTooManyRequests) Error() string
- func (o *GetImportTaskRoleInfoTooManyRequests) GetPayload() *GetImportTaskRoleInfoTooManyRequestsBody
- func (o *GetImportTaskRoleInfoTooManyRequests) IsClientError() bool
- func (o *GetImportTaskRoleInfoTooManyRequests) IsCode(code int) bool
- func (o *GetImportTaskRoleInfoTooManyRequests) IsRedirect() bool
- func (o *GetImportTaskRoleInfoTooManyRequests) IsServerError() bool
- func (o *GetImportTaskRoleInfoTooManyRequests) IsSuccess() bool
- func (o *GetImportTaskRoleInfoTooManyRequests) String() string
- type GetImportTaskRoleInfoTooManyRequestsBody
- func (o *GetImportTaskRoleInfoTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskRoleInfoTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskRoleInfoTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskRoleInfoTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type GetImportTaskRoleInfoUnauthorized
- func (o *GetImportTaskRoleInfoUnauthorized) Code() int
- func (o *GetImportTaskRoleInfoUnauthorized) Error() string
- func (o *GetImportTaskRoleInfoUnauthorized) GetPayload() interface{}
- func (o *GetImportTaskRoleInfoUnauthorized) IsClientError() bool
- func (o *GetImportTaskRoleInfoUnauthorized) IsCode(code int) bool
- func (o *GetImportTaskRoleInfoUnauthorized) IsRedirect() bool
- func (o *GetImportTaskRoleInfoUnauthorized) IsServerError() bool
- func (o *GetImportTaskRoleInfoUnauthorized) IsSuccess() bool
- func (o *GetImportTaskRoleInfoUnauthorized) String() string
- type GetImportTaskTooManyRequests
- func (o *GetImportTaskTooManyRequests) Code() int
- func (o *GetImportTaskTooManyRequests) Error() string
- func (o *GetImportTaskTooManyRequests) GetPayload() *GetImportTaskTooManyRequestsBody
- func (o *GetImportTaskTooManyRequests) IsClientError() bool
- func (o *GetImportTaskTooManyRequests) IsCode(code int) bool
- func (o *GetImportTaskTooManyRequests) IsRedirect() bool
- func (o *GetImportTaskTooManyRequests) IsServerError() bool
- func (o *GetImportTaskTooManyRequests) IsSuccess() bool
- func (o *GetImportTaskTooManyRequests) String() string
- type GetImportTaskTooManyRequestsBody
- func (o *GetImportTaskTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetImportTaskTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *GetImportTaskTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *GetImportTaskTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type GetImportTaskUnauthorized
- func (o *GetImportTaskUnauthorized) Code() int
- func (o *GetImportTaskUnauthorized) Error() string
- func (o *GetImportTaskUnauthorized) GetPayload() interface{}
- func (o *GetImportTaskUnauthorized) IsClientError() bool
- func (o *GetImportTaskUnauthorized) IsCode(code int) bool
- func (o *GetImportTaskUnauthorized) IsRedirect() bool
- func (o *GetImportTaskUnauthorized) IsServerError() bool
- func (o *GetImportTaskUnauthorized) IsSuccess() bool
- func (o *GetImportTaskUnauthorized) String() string
- type ListImportTasksBadRequest
- func (o *ListImportTasksBadRequest) Code() int
- func (o *ListImportTasksBadRequest) Error() string
- func (o *ListImportTasksBadRequest) GetPayload() *ListImportTasksBadRequestBody
- func (o *ListImportTasksBadRequest) IsClientError() bool
- func (o *ListImportTasksBadRequest) IsCode(code int) bool
- func (o *ListImportTasksBadRequest) IsRedirect() bool
- func (o *ListImportTasksBadRequest) IsServerError() bool
- func (o *ListImportTasksBadRequest) IsSuccess() bool
- func (o *ListImportTasksBadRequest) String() string
- type ListImportTasksBadRequestBody
- func (o *ListImportTasksBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksBadRequestBody) Validate(formats strfmt.Registry) error
- type ListImportTasksDefault
- func (o *ListImportTasksDefault) Code() int
- func (o *ListImportTasksDefault) Error() string
- func (o *ListImportTasksDefault) GetPayload() *ListImportTasksDefaultBody
- func (o *ListImportTasksDefault) IsClientError() bool
- func (o *ListImportTasksDefault) IsCode(code int) bool
- func (o *ListImportTasksDefault) IsRedirect() bool
- func (o *ListImportTasksDefault) IsServerError() bool
- func (o *ListImportTasksDefault) IsSuccess() bool
- func (o *ListImportTasksDefault) String() string
- type ListImportTasksDefaultBody
- func (o *ListImportTasksDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksDefaultBody) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksDefaultBody) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksDefaultBody) Validate(formats strfmt.Registry) error
- type ListImportTasksDefaultBodyDetailsItems0
- func (o *ListImportTasksDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type ListImportTasksForbidden
- func (o *ListImportTasksForbidden) Code() int
- func (o *ListImportTasksForbidden) Error() string
- func (o *ListImportTasksForbidden) GetPayload() *ListImportTasksForbiddenBody
- func (o *ListImportTasksForbidden) IsClientError() bool
- func (o *ListImportTasksForbidden) IsCode(code int) bool
- func (o *ListImportTasksForbidden) IsRedirect() bool
- func (o *ListImportTasksForbidden) IsServerError() bool
- func (o *ListImportTasksForbidden) IsSuccess() bool
- func (o *ListImportTasksForbidden) String() string
- type ListImportTasksForbiddenBody
- func (o *ListImportTasksForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksForbiddenBody) Validate(formats strfmt.Registry) error
- type ListImportTasksInternalServerError
- func (o *ListImportTasksInternalServerError) Code() int
- func (o *ListImportTasksInternalServerError) Error() string
- func (o *ListImportTasksInternalServerError) GetPayload() *ListImportTasksInternalServerErrorBody
- func (o *ListImportTasksInternalServerError) IsClientError() bool
- func (o *ListImportTasksInternalServerError) IsCode(code int) bool
- func (o *ListImportTasksInternalServerError) IsRedirect() bool
- func (o *ListImportTasksInternalServerError) IsServerError() bool
- func (o *ListImportTasksInternalServerError) IsSuccess() bool
- func (o *ListImportTasksInternalServerError) String() string
- type ListImportTasksInternalServerErrorBody
- func (o *ListImportTasksInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type ListImportTasksNotFound
- func (o *ListImportTasksNotFound) Code() int
- func (o *ListImportTasksNotFound) Error() string
- func (o *ListImportTasksNotFound) GetPayload() *ListImportTasksNotFoundBody
- func (o *ListImportTasksNotFound) IsClientError() bool
- func (o *ListImportTasksNotFound) IsCode(code int) bool
- func (o *ListImportTasksNotFound) IsRedirect() bool
- func (o *ListImportTasksNotFound) IsServerError() bool
- func (o *ListImportTasksNotFound) IsSuccess() bool
- func (o *ListImportTasksNotFound) String() string
- type ListImportTasksNotFoundBody
- func (o *ListImportTasksNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksNotFoundBody) Validate(formats strfmt.Registry) error
- type ListImportTasksOK
- func (o *ListImportTasksOK) Code() int
- func (o *ListImportTasksOK) Error() string
- func (o *ListImportTasksOK) GetPayload() *ListImportTasksOKBody
- func (o *ListImportTasksOK) IsClientError() bool
- func (o *ListImportTasksOK) IsCode(code int) bool
- func (o *ListImportTasksOK) IsRedirect() bool
- func (o *ListImportTasksOK) IsServerError() bool
- func (o *ListImportTasksOK) IsSuccess() bool
- func (o *ListImportTasksOK) String() string
- type ListImportTasksOKBody
- type ListImportTasksOKBodyItemsItems0
- func (o *ListImportTasksOKBodyItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0Metadata
- func (o *ListImportTasksOKBodyItemsItems0Metadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0Metadata) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0Metadata) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0Metadata) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0Spec
- func (o *ListImportTasksOKBodyItemsItems0Spec) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0Spec) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0Spec) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0Spec) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0SpecSource
- func (o *ListImportTasksOKBodyItemsItems0SpecSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSource) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0SpecSource) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSource) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0SpecSourceFormat
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormat) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormat) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormat) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormat) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0SpecTarget
- func (o *ListImportTasksOKBodyItemsItems0SpecTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0SpecTarget) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0SpecTarget) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0SpecTarget) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0
- func (o *ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0Status
- func (o *ListImportTasksOKBodyItemsItems0Status) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0Status) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0Status) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0Status) Validate(formats strfmt.Registry) error
- type ListImportTasksOKBodyItemsItems0StatusProgress
- func (o *ListImportTasksOKBodyItemsItems0StatusProgress) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksOKBodyItemsItems0StatusProgress) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksOKBodyItemsItems0StatusProgress) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksOKBodyItemsItems0StatusProgress) Validate(formats strfmt.Registry) error
- type ListImportTasksParams
- func NewListImportTasksParams() *ListImportTasksParams
- func NewListImportTasksParamsWithContext(ctx context.Context) *ListImportTasksParams
- func NewListImportTasksParamsWithHTTPClient(client *http.Client) *ListImportTasksParams
- func NewListImportTasksParamsWithTimeout(timeout time.Duration) *ListImportTasksParams
- func (o *ListImportTasksParams) SetClusterID(clusterID string)
- func (o *ListImportTasksParams) SetContext(ctx context.Context)
- func (o *ListImportTasksParams) SetDefaults()
- func (o *ListImportTasksParams) SetHTTPClient(client *http.Client)
- func (o *ListImportTasksParams) SetPage(page *int64)
- func (o *ListImportTasksParams) SetPageSize(pageSize *int64)
- func (o *ListImportTasksParams) SetProjectID(projectID string)
- func (o *ListImportTasksParams) SetTimeout(timeout time.Duration)
- func (o *ListImportTasksParams) WithClusterID(clusterID string) *ListImportTasksParams
- func (o *ListImportTasksParams) WithContext(ctx context.Context) *ListImportTasksParams
- func (o *ListImportTasksParams) WithDefaults() *ListImportTasksParams
- func (o *ListImportTasksParams) WithHTTPClient(client *http.Client) *ListImportTasksParams
- func (o *ListImportTasksParams) WithPage(page *int64) *ListImportTasksParams
- func (o *ListImportTasksParams) WithPageSize(pageSize *int64) *ListImportTasksParams
- func (o *ListImportTasksParams) WithProjectID(projectID string) *ListImportTasksParams
- func (o *ListImportTasksParams) WithTimeout(timeout time.Duration) *ListImportTasksParams
- func (o *ListImportTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListImportTasksReader
- type ListImportTasksTooManyRequests
- func (o *ListImportTasksTooManyRequests) Code() int
- func (o *ListImportTasksTooManyRequests) Error() string
- func (o *ListImportTasksTooManyRequests) GetPayload() *ListImportTasksTooManyRequestsBody
- func (o *ListImportTasksTooManyRequests) IsClientError() bool
- func (o *ListImportTasksTooManyRequests) IsCode(code int) bool
- func (o *ListImportTasksTooManyRequests) IsRedirect() bool
- func (o *ListImportTasksTooManyRequests) IsServerError() bool
- func (o *ListImportTasksTooManyRequests) IsSuccess() bool
- func (o *ListImportTasksTooManyRequests) String() string
- type ListImportTasksTooManyRequestsBody
- func (o *ListImportTasksTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListImportTasksTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *ListImportTasksTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *ListImportTasksTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type ListImportTasksUnauthorized
- func (o *ListImportTasksUnauthorized) Code() int
- func (o *ListImportTasksUnauthorized) Error() string
- func (o *ListImportTasksUnauthorized) GetPayload() interface{}
- func (o *ListImportTasksUnauthorized) IsClientError() bool
- func (o *ListImportTasksUnauthorized) IsCode(code int) bool
- func (o *ListImportTasksUnauthorized) IsRedirect() bool
- func (o *ListImportTasksUnauthorized) IsServerError() bool
- func (o *ListImportTasksUnauthorized) IsSuccess() bool
- func (o *ListImportTasksUnauthorized) String() string
- type PreviewImportDataBadRequest
- func (o *PreviewImportDataBadRequest) Code() int
- func (o *PreviewImportDataBadRequest) Error() string
- func (o *PreviewImportDataBadRequest) GetPayload() *PreviewImportDataBadRequestBody
- func (o *PreviewImportDataBadRequest) IsClientError() bool
- func (o *PreviewImportDataBadRequest) IsCode(code int) bool
- func (o *PreviewImportDataBadRequest) IsRedirect() bool
- func (o *PreviewImportDataBadRequest) IsServerError() bool
- func (o *PreviewImportDataBadRequest) IsSuccess() bool
- func (o *PreviewImportDataBadRequest) String() string
- type PreviewImportDataBadRequestBody
- func (o *PreviewImportDataBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataBadRequestBody) Validate(formats strfmt.Registry) error
- type PreviewImportDataBody
- type PreviewImportDataDefault
- func (o *PreviewImportDataDefault) Code() int
- func (o *PreviewImportDataDefault) Error() string
- func (o *PreviewImportDataDefault) GetPayload() *PreviewImportDataDefaultBody
- func (o *PreviewImportDataDefault) IsClientError() bool
- func (o *PreviewImportDataDefault) IsCode(code int) bool
- func (o *PreviewImportDataDefault) IsRedirect() bool
- func (o *PreviewImportDataDefault) IsServerError() bool
- func (o *PreviewImportDataDefault) IsSuccess() bool
- func (o *PreviewImportDataDefault) String() string
- type PreviewImportDataDefaultBody
- func (o *PreviewImportDataDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataDefaultBody) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataDefaultBody) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataDefaultBody) Validate(formats strfmt.Registry) error
- type PreviewImportDataDefaultBodyDetailsItems0
- func (o *PreviewImportDataDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type PreviewImportDataForbidden
- func (o *PreviewImportDataForbidden) Code() int
- func (o *PreviewImportDataForbidden) Error() string
- func (o *PreviewImportDataForbidden) GetPayload() *PreviewImportDataForbiddenBody
- func (o *PreviewImportDataForbidden) IsClientError() bool
- func (o *PreviewImportDataForbidden) IsCode(code int) bool
- func (o *PreviewImportDataForbidden) IsRedirect() bool
- func (o *PreviewImportDataForbidden) IsServerError() bool
- func (o *PreviewImportDataForbidden) IsSuccess() bool
- func (o *PreviewImportDataForbidden) String() string
- type PreviewImportDataForbiddenBody
- func (o *PreviewImportDataForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataForbiddenBody) Validate(formats strfmt.Registry) error
- type PreviewImportDataInternalServerError
- func (o *PreviewImportDataInternalServerError) Code() int
- func (o *PreviewImportDataInternalServerError) Error() string
- func (o *PreviewImportDataInternalServerError) GetPayload() *PreviewImportDataInternalServerErrorBody
- func (o *PreviewImportDataInternalServerError) IsClientError() bool
- func (o *PreviewImportDataInternalServerError) IsCode(code int) bool
- func (o *PreviewImportDataInternalServerError) IsRedirect() bool
- func (o *PreviewImportDataInternalServerError) IsServerError() bool
- func (o *PreviewImportDataInternalServerError) IsSuccess() bool
- func (o *PreviewImportDataInternalServerError) String() string
- type PreviewImportDataInternalServerErrorBody
- func (o *PreviewImportDataInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type PreviewImportDataNotFound
- func (o *PreviewImportDataNotFound) Code() int
- func (o *PreviewImportDataNotFound) Error() string
- func (o *PreviewImportDataNotFound) GetPayload() *PreviewImportDataNotFoundBody
- func (o *PreviewImportDataNotFound) IsClientError() bool
- func (o *PreviewImportDataNotFound) IsCode(code int) bool
- func (o *PreviewImportDataNotFound) IsRedirect() bool
- func (o *PreviewImportDataNotFound) IsServerError() bool
- func (o *PreviewImportDataNotFound) IsSuccess() bool
- func (o *PreviewImportDataNotFound) String() string
- type PreviewImportDataNotFoundBody
- func (o *PreviewImportDataNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataNotFoundBody) Validate(formats strfmt.Registry) error
- type PreviewImportDataOK
- func (o *PreviewImportDataOK) Code() int
- func (o *PreviewImportDataOK) Error() string
- func (o *PreviewImportDataOK) GetPayload() *PreviewImportDataOKBody
- func (o *PreviewImportDataOK) IsClientError() bool
- func (o *PreviewImportDataOK) IsCode(code int) bool
- func (o *PreviewImportDataOK) IsRedirect() bool
- func (o *PreviewImportDataOK) IsServerError() bool
- func (o *PreviewImportDataOK) IsSuccess() bool
- func (o *PreviewImportDataOK) String() string
- type PreviewImportDataOKBody
- func (o *PreviewImportDataOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataOKBody) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataOKBody) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataOKBody) Validate(formats strfmt.Registry) error
- type PreviewImportDataOKBodyTablePreviewsItems0
- func (o *PreviewImportDataOKBodyTablePreviewsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataOKBodyTablePreviewsItems0) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0) Validate(formats strfmt.Registry) error
- type PreviewImportDataOKBodyTablePreviewsItems0DataPreview
- func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreview) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreview) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreview) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreview) Validate(formats strfmt.Registry) error
- type PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0
- func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) Validate(formats strfmt.Registry) error
- type PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview
- func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) Validate(formats strfmt.Registry) error
- type PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0
- func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) Validate(formats strfmt.Registry) error
- type PreviewImportDataParams
- func NewPreviewImportDataParams() *PreviewImportDataParams
- func NewPreviewImportDataParamsWithContext(ctx context.Context) *PreviewImportDataParams
- func NewPreviewImportDataParamsWithHTTPClient(client *http.Client) *PreviewImportDataParams
- func NewPreviewImportDataParamsWithTimeout(timeout time.Duration) *PreviewImportDataParams
- func (o *PreviewImportDataParams) SetBody(body PreviewImportDataBody)
- func (o *PreviewImportDataParams) SetClusterID(clusterID string)
- func (o *PreviewImportDataParams) SetContext(ctx context.Context)
- func (o *PreviewImportDataParams) SetDefaults()
- func (o *PreviewImportDataParams) SetHTTPClient(client *http.Client)
- func (o *PreviewImportDataParams) SetProjectID(projectID string)
- func (o *PreviewImportDataParams) SetTimeout(timeout time.Duration)
- func (o *PreviewImportDataParams) WithBody(body PreviewImportDataBody) *PreviewImportDataParams
- func (o *PreviewImportDataParams) WithClusterID(clusterID string) *PreviewImportDataParams
- func (o *PreviewImportDataParams) WithContext(ctx context.Context) *PreviewImportDataParams
- func (o *PreviewImportDataParams) WithDefaults() *PreviewImportDataParams
- func (o *PreviewImportDataParams) WithHTTPClient(client *http.Client) *PreviewImportDataParams
- func (o *PreviewImportDataParams) WithProjectID(projectID string) *PreviewImportDataParams
- func (o *PreviewImportDataParams) WithTimeout(timeout time.Duration) *PreviewImportDataParams
- func (o *PreviewImportDataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PreviewImportDataParamsBodySpec
- func (o *PreviewImportDataParamsBodySpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataParamsBodySpec) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataParamsBodySpec) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataParamsBodySpec) Validate(formats strfmt.Registry) error
- type PreviewImportDataParamsBodySpecSource
- func (o *PreviewImportDataParamsBodySpecSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataParamsBodySpecSource) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataParamsBodySpecSource) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataParamsBodySpecSource) Validate(formats strfmt.Registry) error
- type PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess
- func (o *PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) Validate(formats strfmt.Registry) error
- type PreviewImportDataParamsBodySpecSourceAwsKeyAccess
- func (o *PreviewImportDataParamsBodySpecSourceAwsKeyAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataParamsBodySpecSourceAwsKeyAccess) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataParamsBodySpecSourceAwsKeyAccess) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataParamsBodySpecSourceAwsKeyAccess) Validate(formats strfmt.Registry) error
- type PreviewImportDataParamsBodySpecSourceFormat
- func (o *PreviewImportDataParamsBodySpecSourceFormat) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataParamsBodySpecSourceFormat) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataParamsBodySpecSourceFormat) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataParamsBodySpecSourceFormat) Validate(formats strfmt.Registry) error
- type PreviewImportDataParamsBodySpecSourceFormatCsvConfig
- func (o *PreviewImportDataParamsBodySpecSourceFormatCsvConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataParamsBodySpecSourceFormatCsvConfig) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataParamsBodySpecSourceFormatCsvConfig) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataParamsBodySpecSourceFormatCsvConfig) Validate(formats strfmt.Registry) error
- type PreviewImportDataParamsBodySpecTarget
- func (o *PreviewImportDataParamsBodySpecTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataParamsBodySpecTarget) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataParamsBodySpecTarget) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataParamsBodySpecTarget) Validate(formats strfmt.Registry) error
- type PreviewImportDataParamsBodySpecTargetTablesItems0
- func (o *PreviewImportDataParamsBodySpecTargetTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataParamsBodySpecTargetTablesItems0) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataParamsBodySpecTargetTablesItems0) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataParamsBodySpecTargetTablesItems0) Validate(formats strfmt.Registry) error
- type PreviewImportDataReader
- type PreviewImportDataTooManyRequests
- func (o *PreviewImportDataTooManyRequests) Code() int
- func (o *PreviewImportDataTooManyRequests) Error() string
- func (o *PreviewImportDataTooManyRequests) GetPayload() *PreviewImportDataTooManyRequestsBody
- func (o *PreviewImportDataTooManyRequests) IsClientError() bool
- func (o *PreviewImportDataTooManyRequests) IsCode(code int) bool
- func (o *PreviewImportDataTooManyRequests) IsRedirect() bool
- func (o *PreviewImportDataTooManyRequests) IsServerError() bool
- func (o *PreviewImportDataTooManyRequests) IsSuccess() bool
- func (o *PreviewImportDataTooManyRequests) String() string
- type PreviewImportDataTooManyRequestsBody
- func (o *PreviewImportDataTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PreviewImportDataTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *PreviewImportDataTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *PreviewImportDataTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type PreviewImportDataUnauthorized
- func (o *PreviewImportDataUnauthorized) Code() int
- func (o *PreviewImportDataUnauthorized) Error() string
- func (o *PreviewImportDataUnauthorized) GetPayload() interface{}
- func (o *PreviewImportDataUnauthorized) IsClientError() bool
- func (o *PreviewImportDataUnauthorized) IsCode(code int) bool
- func (o *PreviewImportDataUnauthorized) IsRedirect() bool
- func (o *PreviewImportDataUnauthorized) IsServerError() bool
- func (o *PreviewImportDataUnauthorized) IsSuccess() bool
- func (o *PreviewImportDataUnauthorized) String() string
- type UpdateImportTaskBadRequest
- func (o *UpdateImportTaskBadRequest) Code() int
- func (o *UpdateImportTaskBadRequest) Error() string
- func (o *UpdateImportTaskBadRequest) GetPayload() *UpdateImportTaskBadRequestBody
- func (o *UpdateImportTaskBadRequest) IsClientError() bool
- func (o *UpdateImportTaskBadRequest) IsCode(code int) bool
- func (o *UpdateImportTaskBadRequest) IsRedirect() bool
- func (o *UpdateImportTaskBadRequest) IsServerError() bool
- func (o *UpdateImportTaskBadRequest) IsSuccess() bool
- func (o *UpdateImportTaskBadRequest) String() string
- type UpdateImportTaskBadRequestBody
- func (o *UpdateImportTaskBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateImportTaskBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *UpdateImportTaskBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *UpdateImportTaskBadRequestBody) Validate(formats strfmt.Registry) error
- type UpdateImportTaskBody
- type UpdateImportTaskDefault
- func (o *UpdateImportTaskDefault) Code() int
- func (o *UpdateImportTaskDefault) Error() string
- func (o *UpdateImportTaskDefault) GetPayload() *UpdateImportTaskDefaultBody
- func (o *UpdateImportTaskDefault) IsClientError() bool
- func (o *UpdateImportTaskDefault) IsCode(code int) bool
- func (o *UpdateImportTaskDefault) IsRedirect() bool
- func (o *UpdateImportTaskDefault) IsServerError() bool
- func (o *UpdateImportTaskDefault) IsSuccess() bool
- func (o *UpdateImportTaskDefault) String() string
- type UpdateImportTaskDefaultBody
- func (o *UpdateImportTaskDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateImportTaskDefaultBody) MarshalBinary() ([]byte, error)
- func (o *UpdateImportTaskDefaultBody) UnmarshalBinary(b []byte) error
- func (o *UpdateImportTaskDefaultBody) Validate(formats strfmt.Registry) error
- type UpdateImportTaskDefaultBodyDetailsItems0
- func (o *UpdateImportTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateImportTaskDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *UpdateImportTaskDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *UpdateImportTaskDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type UpdateImportTaskForbidden
- func (o *UpdateImportTaskForbidden) Code() int
- func (o *UpdateImportTaskForbidden) Error() string
- func (o *UpdateImportTaskForbidden) GetPayload() *UpdateImportTaskForbiddenBody
- func (o *UpdateImportTaskForbidden) IsClientError() bool
- func (o *UpdateImportTaskForbidden) IsCode(code int) bool
- func (o *UpdateImportTaskForbidden) IsRedirect() bool
- func (o *UpdateImportTaskForbidden) IsServerError() bool
- func (o *UpdateImportTaskForbidden) IsSuccess() bool
- func (o *UpdateImportTaskForbidden) String() string
- type UpdateImportTaskForbiddenBody
- func (o *UpdateImportTaskForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateImportTaskForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *UpdateImportTaskForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *UpdateImportTaskForbiddenBody) Validate(formats strfmt.Registry) error
- type UpdateImportTaskInternalServerError
- func (o *UpdateImportTaskInternalServerError) Code() int
- func (o *UpdateImportTaskInternalServerError) Error() string
- func (o *UpdateImportTaskInternalServerError) GetPayload() *UpdateImportTaskInternalServerErrorBody
- func (o *UpdateImportTaskInternalServerError) IsClientError() bool
- func (o *UpdateImportTaskInternalServerError) IsCode(code int) bool
- func (o *UpdateImportTaskInternalServerError) IsRedirect() bool
- func (o *UpdateImportTaskInternalServerError) IsServerError() bool
- func (o *UpdateImportTaskInternalServerError) IsSuccess() bool
- func (o *UpdateImportTaskInternalServerError) String() string
- type UpdateImportTaskInternalServerErrorBody
- func (o *UpdateImportTaskInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateImportTaskInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *UpdateImportTaskInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *UpdateImportTaskInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type UpdateImportTaskNotFound
- func (o *UpdateImportTaskNotFound) Code() int
- func (o *UpdateImportTaskNotFound) Error() string
- func (o *UpdateImportTaskNotFound) GetPayload() *UpdateImportTaskNotFoundBody
- func (o *UpdateImportTaskNotFound) IsClientError() bool
- func (o *UpdateImportTaskNotFound) IsCode(code int) bool
- func (o *UpdateImportTaskNotFound) IsRedirect() bool
- func (o *UpdateImportTaskNotFound) IsServerError() bool
- func (o *UpdateImportTaskNotFound) IsSuccess() bool
- func (o *UpdateImportTaskNotFound) String() string
- type UpdateImportTaskNotFoundBody
- func (o *UpdateImportTaskNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateImportTaskNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *UpdateImportTaskNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *UpdateImportTaskNotFoundBody) Validate(formats strfmt.Registry) error
- type UpdateImportTaskOK
- func (o *UpdateImportTaskOK) Code() int
- func (o *UpdateImportTaskOK) Error() string
- func (o *UpdateImportTaskOK) GetPayload() interface{}
- func (o *UpdateImportTaskOK) IsClientError() bool
- func (o *UpdateImportTaskOK) IsCode(code int) bool
- func (o *UpdateImportTaskOK) IsRedirect() bool
- func (o *UpdateImportTaskOK) IsServerError() bool
- func (o *UpdateImportTaskOK) IsSuccess() bool
- func (o *UpdateImportTaskOK) String() string
- type UpdateImportTaskParams
- func NewUpdateImportTaskParams() *UpdateImportTaskParams
- func NewUpdateImportTaskParamsWithContext(ctx context.Context) *UpdateImportTaskParams
- func NewUpdateImportTaskParamsWithHTTPClient(client *http.Client) *UpdateImportTaskParams
- func NewUpdateImportTaskParamsWithTimeout(timeout time.Duration) *UpdateImportTaskParams
- func (o *UpdateImportTaskParams) SetBody(body UpdateImportTaskBody)
- func (o *UpdateImportTaskParams) SetClusterID(clusterID string)
- func (o *UpdateImportTaskParams) SetContext(ctx context.Context)
- func (o *UpdateImportTaskParams) SetDefaults()
- func (o *UpdateImportTaskParams) SetHTTPClient(client *http.Client)
- func (o *UpdateImportTaskParams) SetImportID(importID string)
- func (o *UpdateImportTaskParams) SetProjectID(projectID string)
- func (o *UpdateImportTaskParams) SetTimeout(timeout time.Duration)
- func (o *UpdateImportTaskParams) WithBody(body UpdateImportTaskBody) *UpdateImportTaskParams
- func (o *UpdateImportTaskParams) WithClusterID(clusterID string) *UpdateImportTaskParams
- func (o *UpdateImportTaskParams) WithContext(ctx context.Context) *UpdateImportTaskParams
- func (o *UpdateImportTaskParams) WithDefaults() *UpdateImportTaskParams
- func (o *UpdateImportTaskParams) WithHTTPClient(client *http.Client) *UpdateImportTaskParams
- func (o *UpdateImportTaskParams) WithImportID(importID string) *UpdateImportTaskParams
- func (o *UpdateImportTaskParams) WithProjectID(projectID string) *UpdateImportTaskParams
- func (o *UpdateImportTaskParams) WithTimeout(timeout time.Duration) *UpdateImportTaskParams
- func (o *UpdateImportTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateImportTaskReader
- type UpdateImportTaskTooManyRequests
- func (o *UpdateImportTaskTooManyRequests) Code() int
- func (o *UpdateImportTaskTooManyRequests) Error() string
- func (o *UpdateImportTaskTooManyRequests) GetPayload() *UpdateImportTaskTooManyRequestsBody
- func (o *UpdateImportTaskTooManyRequests) IsClientError() bool
- func (o *UpdateImportTaskTooManyRequests) IsCode(code int) bool
- func (o *UpdateImportTaskTooManyRequests) IsRedirect() bool
- func (o *UpdateImportTaskTooManyRequests) IsServerError() bool
- func (o *UpdateImportTaskTooManyRequests) IsSuccess() bool
- func (o *UpdateImportTaskTooManyRequests) String() string
- type UpdateImportTaskTooManyRequestsBody
- func (o *UpdateImportTaskTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateImportTaskTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *UpdateImportTaskTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *UpdateImportTaskTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type UpdateImportTaskUnauthorized
- func (o *UpdateImportTaskUnauthorized) Code() int
- func (o *UpdateImportTaskUnauthorized) Error() string
- func (o *UpdateImportTaskUnauthorized) GetPayload() interface{}
- func (o *UpdateImportTaskUnauthorized) IsClientError() bool
- func (o *UpdateImportTaskUnauthorized) IsCode(code int) bool
- func (o *UpdateImportTaskUnauthorized) IsRedirect() bool
- func (o *UpdateImportTaskUnauthorized) IsServerError() bool
- func (o *UpdateImportTaskUnauthorized) IsSuccess() bool
- func (o *UpdateImportTaskUnauthorized) String() string
- type UploadLocalFileBadRequest
- func (o *UploadLocalFileBadRequest) Code() int
- func (o *UploadLocalFileBadRequest) Error() string
- func (o *UploadLocalFileBadRequest) GetPayload() *UploadLocalFileBadRequestBody
- func (o *UploadLocalFileBadRequest) IsClientError() bool
- func (o *UploadLocalFileBadRequest) IsCode(code int) bool
- func (o *UploadLocalFileBadRequest) IsRedirect() bool
- func (o *UploadLocalFileBadRequest) IsServerError() bool
- func (o *UploadLocalFileBadRequest) IsSuccess() bool
- func (o *UploadLocalFileBadRequest) String() string
- type UploadLocalFileBadRequestBody
- func (o *UploadLocalFileBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UploadLocalFileBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *UploadLocalFileBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *UploadLocalFileBadRequestBody) Validate(formats strfmt.Registry) error
- type UploadLocalFileBody
- type UploadLocalFileDefault
- func (o *UploadLocalFileDefault) Code() int
- func (o *UploadLocalFileDefault) Error() string
- func (o *UploadLocalFileDefault) GetPayload() *UploadLocalFileDefaultBody
- func (o *UploadLocalFileDefault) IsClientError() bool
- func (o *UploadLocalFileDefault) IsCode(code int) bool
- func (o *UploadLocalFileDefault) IsRedirect() bool
- func (o *UploadLocalFileDefault) IsServerError() bool
- func (o *UploadLocalFileDefault) IsSuccess() bool
- func (o *UploadLocalFileDefault) String() string
- type UploadLocalFileDefaultBody
- func (o *UploadLocalFileDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UploadLocalFileDefaultBody) MarshalBinary() ([]byte, error)
- func (o *UploadLocalFileDefaultBody) UnmarshalBinary(b []byte) error
- func (o *UploadLocalFileDefaultBody) Validate(formats strfmt.Registry) error
- type UploadLocalFileDefaultBodyDetailsItems0
- func (o *UploadLocalFileDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UploadLocalFileDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
- func (o *UploadLocalFileDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
- func (o *UploadLocalFileDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error
- type UploadLocalFileForbidden
- func (o *UploadLocalFileForbidden) Code() int
- func (o *UploadLocalFileForbidden) Error() string
- func (o *UploadLocalFileForbidden) GetPayload() *UploadLocalFileForbiddenBody
- func (o *UploadLocalFileForbidden) IsClientError() bool
- func (o *UploadLocalFileForbidden) IsCode(code int) bool
- func (o *UploadLocalFileForbidden) IsRedirect() bool
- func (o *UploadLocalFileForbidden) IsServerError() bool
- func (o *UploadLocalFileForbidden) IsSuccess() bool
- func (o *UploadLocalFileForbidden) String() string
- type UploadLocalFileForbiddenBody
- func (o *UploadLocalFileForbiddenBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UploadLocalFileForbiddenBody) MarshalBinary() ([]byte, error)
- func (o *UploadLocalFileForbiddenBody) UnmarshalBinary(b []byte) error
- func (o *UploadLocalFileForbiddenBody) Validate(formats strfmt.Registry) error
- type UploadLocalFileInternalServerError
- func (o *UploadLocalFileInternalServerError) Code() int
- func (o *UploadLocalFileInternalServerError) Error() string
- func (o *UploadLocalFileInternalServerError) GetPayload() *UploadLocalFileInternalServerErrorBody
- func (o *UploadLocalFileInternalServerError) IsClientError() bool
- func (o *UploadLocalFileInternalServerError) IsCode(code int) bool
- func (o *UploadLocalFileInternalServerError) IsRedirect() bool
- func (o *UploadLocalFileInternalServerError) IsServerError() bool
- func (o *UploadLocalFileInternalServerError) IsSuccess() bool
- func (o *UploadLocalFileInternalServerError) String() string
- type UploadLocalFileInternalServerErrorBody
- func (o *UploadLocalFileInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UploadLocalFileInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *UploadLocalFileInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *UploadLocalFileInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type UploadLocalFileNotFound
- func (o *UploadLocalFileNotFound) Code() int
- func (o *UploadLocalFileNotFound) Error() string
- func (o *UploadLocalFileNotFound) GetPayload() *UploadLocalFileNotFoundBody
- func (o *UploadLocalFileNotFound) IsClientError() bool
- func (o *UploadLocalFileNotFound) IsCode(code int) bool
- func (o *UploadLocalFileNotFound) IsRedirect() bool
- func (o *UploadLocalFileNotFound) IsServerError() bool
- func (o *UploadLocalFileNotFound) IsSuccess() bool
- func (o *UploadLocalFileNotFound) String() string
- type UploadLocalFileNotFoundBody
- func (o *UploadLocalFileNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UploadLocalFileNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *UploadLocalFileNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *UploadLocalFileNotFoundBody) Validate(formats strfmt.Registry) error
- type UploadLocalFileOK
- func (o *UploadLocalFileOK) Code() int
- func (o *UploadLocalFileOK) Error() string
- func (o *UploadLocalFileOK) GetPayload() *UploadLocalFileOKBody
- func (o *UploadLocalFileOK) IsClientError() bool
- func (o *UploadLocalFileOK) IsCode(code int) bool
- func (o *UploadLocalFileOK) IsRedirect() bool
- func (o *UploadLocalFileOK) IsServerError() bool
- func (o *UploadLocalFileOK) IsSuccess() bool
- func (o *UploadLocalFileOK) String() string
- type UploadLocalFileOKBody
- type UploadLocalFileParams
- func NewUploadLocalFileParams() *UploadLocalFileParams
- func NewUploadLocalFileParamsWithContext(ctx context.Context) *UploadLocalFileParams
- func NewUploadLocalFileParamsWithHTTPClient(client *http.Client) *UploadLocalFileParams
- func NewUploadLocalFileParamsWithTimeout(timeout time.Duration) *UploadLocalFileParams
- func (o *UploadLocalFileParams) SetBody(body UploadLocalFileBody)
- func (o *UploadLocalFileParams) SetClusterID(clusterID string)
- func (o *UploadLocalFileParams) SetContext(ctx context.Context)
- func (o *UploadLocalFileParams) SetDefaults()
- func (o *UploadLocalFileParams) SetHTTPClient(client *http.Client)
- func (o *UploadLocalFileParams) SetProjectID(projectID string)
- func (o *UploadLocalFileParams) SetTimeout(timeout time.Duration)
- func (o *UploadLocalFileParams) WithBody(body UploadLocalFileBody) *UploadLocalFileParams
- func (o *UploadLocalFileParams) WithClusterID(clusterID string) *UploadLocalFileParams
- func (o *UploadLocalFileParams) WithContext(ctx context.Context) *UploadLocalFileParams
- func (o *UploadLocalFileParams) WithDefaults() *UploadLocalFileParams
- func (o *UploadLocalFileParams) WithHTTPClient(client *http.Client) *UploadLocalFileParams
- func (o *UploadLocalFileParams) WithProjectID(projectID string) *UploadLocalFileParams
- func (o *UploadLocalFileParams) WithTimeout(timeout time.Duration) *UploadLocalFileParams
- func (o *UploadLocalFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UploadLocalFileParamsBodyPayload
- func (o *UploadLocalFileParamsBodyPayload) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UploadLocalFileParamsBodyPayload) MarshalBinary() ([]byte, error)
- func (o *UploadLocalFileParamsBodyPayload) UnmarshalBinary(b []byte) error
- func (o *UploadLocalFileParamsBodyPayload) Validate(formats strfmt.Registry) error
- type UploadLocalFileReader
- type UploadLocalFileTooManyRequests
- func (o *UploadLocalFileTooManyRequests) Code() int
- func (o *UploadLocalFileTooManyRequests) Error() string
- func (o *UploadLocalFileTooManyRequests) GetPayload() *UploadLocalFileTooManyRequestsBody
- func (o *UploadLocalFileTooManyRequests) IsClientError() bool
- func (o *UploadLocalFileTooManyRequests) IsCode(code int) bool
- func (o *UploadLocalFileTooManyRequests) IsRedirect() bool
- func (o *UploadLocalFileTooManyRequests) IsServerError() bool
- func (o *UploadLocalFileTooManyRequests) IsSuccess() bool
- func (o *UploadLocalFileTooManyRequests) String() string
- type UploadLocalFileTooManyRequestsBody
- func (o *UploadLocalFileTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UploadLocalFileTooManyRequestsBody) MarshalBinary() ([]byte, error)
- func (o *UploadLocalFileTooManyRequestsBody) UnmarshalBinary(b []byte) error
- func (o *UploadLocalFileTooManyRequestsBody) Validate(formats strfmt.Registry) error
- type UploadLocalFileUnauthorized
- func (o *UploadLocalFileUnauthorized) Code() int
- func (o *UploadLocalFileUnauthorized) Error() string
- func (o *UploadLocalFileUnauthorized) GetPayload() interface{}
- func (o *UploadLocalFileUnauthorized) IsClientError() bool
- func (o *UploadLocalFileUnauthorized) IsCode(code int) bool
- func (o *UploadLocalFileUnauthorized) IsRedirect() bool
- func (o *UploadLocalFileUnauthorized) IsServerError() bool
- func (o *UploadLocalFileUnauthorized) IsSuccess() bool
- func (o *UploadLocalFileUnauthorized) String() string
Constants ¶
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" )
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" )
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" )
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" )
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" )
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" )
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" )
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" )
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" )
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" )
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 (o *CreateImportTaskBadRequest) Error() string
func (*CreateImportTaskBadRequest) GetPayload ¶
func (o *CreateImportTaskBadRequest) GetPayload() *CreateImportTaskBadRequestBody
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
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 ¶
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
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 (o *CreateImportTaskDefault) GetPayload() *CreateImportTaskDefaultBody
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
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 ¶
func (o *CreateImportTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *CreateImportTaskForbidden) GetPayload() *CreateImportTaskForbiddenBody
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
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 ¶
func (o *CreateImportTaskInternalServerError) Code() int
Code gets the status code for the create import task internal server error response
func (*CreateImportTaskInternalServerError) Error ¶
func (o *CreateImportTaskInternalServerError) Error() string
func (*CreateImportTaskInternalServerError) GetPayload ¶
func (o *CreateImportTaskInternalServerError) GetPayload() *CreateImportTaskInternalServerErrorBody
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 ¶
func (o *CreateImportTaskInternalServerError) IsCode(code int) bool
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 ¶
func (o *CreateImportTaskInternalServerError) IsSuccess() bool
IsSuccess returns true when this create import task internal server error response has a 2xx status code
func (*CreateImportTaskInternalServerError) String ¶
func (o *CreateImportTaskInternalServerError) String() 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 ¶
func (o *CreateImportTaskInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *CreateImportTaskNotFound) GetPayload() *CreateImportTaskNotFoundBody
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
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
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 ¶
func (o *CreateImportTaskParams) SetBody(body CreateImportTaskBody)
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 ¶
func (o *CreateImportTaskParams) WithBody(body CreateImportTaskBody) *CreateImportTaskParams
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 ¶
func (o *CreateImportTaskParams) WithContext(ctx context.Context) *CreateImportTaskParams
WithContext adds the context to the create import task params
func (*CreateImportTaskParams) WithDefaults ¶
func (o *CreateImportTaskParams) WithDefaults() *CreateImportTaskParams
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 ¶
func (o *CreateImportTaskParams) WithTimeout(timeout time.Duration) *CreateImportTaskParams
WithTimeout adds the timeout to the create import task params
func (*CreateImportTaskParams) WriteToRequest ¶
func (o *CreateImportTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create import task params body options pre create tables items0 based on the context it is used
func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) MarshalBinary ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) UnmarshalBinary ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create import task params body options pre create tables items0 schema based on the context it is used
func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) MarshalBinary ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) UnmarshalBinary ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0Schema) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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 ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) UnmarshalBinary ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) Validate ¶
func (o *CreateImportTaskParamsBodyOptionsPreCreateTablesItems0SchemaColumnDefinitionsItems0) Validate(formats strfmt.Registry) error
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
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
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 ¶
func (o *CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create import task params body spec source aws assume role access based on context it is used
func (*CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) MarshalBinary ¶
func (o *CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary ¶
func (o *CreateImportTaskParamsBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *CreateImportTaskParamsBodySpecSourceAwsKeyAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create import task params body spec source aws key access based on context it is used
func (*CreateImportTaskParamsBodySpecSourceAwsKeyAccess) MarshalBinary ¶
func (o *CreateImportTaskParamsBodySpecSourceAwsKeyAccess) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateImportTaskParamsBodySpecSourceAwsKeyAccess) UnmarshalBinary ¶
func (o *CreateImportTaskParamsBodySpecSourceAwsKeyAccess) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *CreateImportTaskParamsBodySpecSourceFormat) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *CreateImportTaskParamsBodySpecSourceFormatCsvConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create import task params body spec source format csv config based on context it is used
func (*CreateImportTaskParamsBodySpecSourceFormatCsvConfig) MarshalBinary ¶
func (o *CreateImportTaskParamsBodySpecSourceFormatCsvConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateImportTaskParamsBodySpecSourceFormatCsvConfig) UnmarshalBinary ¶
func (o *CreateImportTaskParamsBodySpecSourceFormatCsvConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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 ¶
func (o *CreateImportTaskParamsBodySpecTargetTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create import task params body spec target tables items0 based on context it is used
func (*CreateImportTaskParamsBodySpecTargetTablesItems0) MarshalBinary ¶
func (o *CreateImportTaskParamsBodySpecTargetTablesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateImportTaskParamsBodySpecTargetTablesItems0) UnmarshalBinary ¶
func (o *CreateImportTaskParamsBodySpecTargetTablesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *CreateImportTaskTooManyRequests) Code() int
Code gets the status code for the create import task too many requests response
func (*CreateImportTaskTooManyRequests) Error ¶
func (o *CreateImportTaskTooManyRequests) Error() string
func (*CreateImportTaskTooManyRequests) GetPayload ¶
func (o *CreateImportTaskTooManyRequests) GetPayload() *CreateImportTaskTooManyRequestsBody
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 ¶
func (o *CreateImportTaskTooManyRequests) String() 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
type CreateImportTaskUnauthorized ¶
type CreateImportTaskUnauthorized struct {
}
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 ¶
func (o *CreateImportTaskUnauthorized) Code() int
Code gets the status code for the create import task unauthorized response
func (*CreateImportTaskUnauthorized) Error ¶
func (o *CreateImportTaskUnauthorized) Error() string
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 ¶
func (o *CreateImportTaskUnauthorized) String() 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 (o *GetImportTaskBadRequest) GetPayload() *GetImportTaskBadRequestBody
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
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 (o *GetImportTaskDefault) GetPayload() *GetImportTaskDefaultBody
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
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
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 (o *GetImportTaskForbidden) GetPayload() *GetImportTaskForbiddenBody
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
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 ¶
func (o *GetImportTaskInternalServerError) Code() int
Code gets the status code for the get import task internal server error response
func (*GetImportTaskInternalServerError) Error ¶
func (o *GetImportTaskInternalServerError) Error() string
func (*GetImportTaskInternalServerError) GetPayload ¶
func (o *GetImportTaskInternalServerError) GetPayload() *GetImportTaskInternalServerErrorBody
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 ¶
func (o *GetImportTaskInternalServerError) String() 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
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 (o *GetImportTaskNotFound) GetPayload() *GetImportTaskNotFoundBody
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
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 ¶
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
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
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
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
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 ¶
func (o *GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get import task o k body spec source aws assume role access based on context it is used
func (*GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) MarshalBinary ¶
func (o *GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary ¶
func (o *GetImportTaskOKBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *GetImportTaskOKBodySpecSourceAwsKeyAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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
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 ¶
func (o *GetImportTaskOKBodySpecSourceFormatCsvConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get import task o k body spec source format csv config based on context it is used
func (*GetImportTaskOKBodySpecSourceFormatCsvConfig) MarshalBinary ¶
func (o *GetImportTaskOKBodySpecSourceFormatCsvConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetImportTaskOKBodySpecSourceFormatCsvConfig) UnmarshalBinary ¶
func (o *GetImportTaskOKBodySpecSourceFormatCsvConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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 ¶
func (o *GetImportTaskOKBodySpecTargetTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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
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
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 ¶
func (o *GetImportTaskParams) WithContext(ctx context.Context) *GetImportTaskParams
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 ¶
func (o *GetImportTaskRoleInfoBadRequest) Code() int
Code gets the status code for the get import task role info bad request response
func (*GetImportTaskRoleInfoBadRequest) Error ¶
func (o *GetImportTaskRoleInfoBadRequest) Error() string
func (*GetImportTaskRoleInfoBadRequest) GetPayload ¶
func (o *GetImportTaskRoleInfoBadRequest) GetPayload() *GetImportTaskRoleInfoBadRequestBody
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 ¶
func (o *GetImportTaskRoleInfoBadRequest) String() 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
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 ¶
func (o *GetImportTaskRoleInfoDefault) Code() int
Code gets the status code for the get import task role info default response
func (*GetImportTaskRoleInfoDefault) Error ¶
func (o *GetImportTaskRoleInfoDefault) Error() string
func (*GetImportTaskRoleInfoDefault) GetPayload ¶
func (o *GetImportTaskRoleInfoDefault) GetPayload() *GetImportTaskRoleInfoDefaultBody
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 ¶
func (o *GetImportTaskRoleInfoDefault) String() 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
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 ¶
func (o *GetImportTaskRoleInfoDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get import task role info default body details items0 based on context it is used
func (*GetImportTaskRoleInfoDefaultBodyDetailsItems0) MarshalBinary ¶
func (o *GetImportTaskRoleInfoDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetImportTaskRoleInfoDefaultBodyDetailsItems0) UnmarshalBinary ¶
func (o *GetImportTaskRoleInfoDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *GetImportTaskRoleInfoForbidden) Code() int
Code gets the status code for the get import task role info forbidden response
func (*GetImportTaskRoleInfoForbidden) Error ¶
func (o *GetImportTaskRoleInfoForbidden) Error() string
func (*GetImportTaskRoleInfoForbidden) GetPayload ¶
func (o *GetImportTaskRoleInfoForbidden) GetPayload() *GetImportTaskRoleInfoForbiddenBody
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 ¶
func (o *GetImportTaskRoleInfoForbidden) String() 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
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 ¶
func (o *GetImportTaskRoleInfoInternalServerError) Code() int
Code gets the status code for the get import task role info internal server error response
func (*GetImportTaskRoleInfoInternalServerError) Error ¶
func (o *GetImportTaskRoleInfoInternalServerError) Error() string
func (*GetImportTaskRoleInfoInternalServerError) GetPayload ¶
func (o *GetImportTaskRoleInfoInternalServerError) GetPayload() *GetImportTaskRoleInfoInternalServerErrorBody
func (*GetImportTaskRoleInfoInternalServerError) IsClientError ¶
func (o *GetImportTaskRoleInfoInternalServerError) IsClientError() bool
IsClientError returns true when this get import task role info internal server error response has a 4xx status code
func (*GetImportTaskRoleInfoInternalServerError) IsCode ¶
func (o *GetImportTaskRoleInfoInternalServerError) IsCode(code int) bool
IsCode returns true when this get import task role info internal server error response a status code equal to that given
func (*GetImportTaskRoleInfoInternalServerError) IsRedirect ¶
func (o *GetImportTaskRoleInfoInternalServerError) IsRedirect() bool
IsRedirect returns true when this get import task role info internal server error response has a 3xx status code
func (*GetImportTaskRoleInfoInternalServerError) IsServerError ¶
func (o *GetImportTaskRoleInfoInternalServerError) IsServerError() bool
IsServerError returns true when this get import task role info internal server error response has a 5xx status code
func (*GetImportTaskRoleInfoInternalServerError) IsSuccess ¶
func (o *GetImportTaskRoleInfoInternalServerError) IsSuccess() bool
IsSuccess returns true when this get import task role info internal server error response has a 2xx status code
func (*GetImportTaskRoleInfoInternalServerError) String ¶
func (o *GetImportTaskRoleInfoInternalServerError) String() 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 ¶
func (o *GetImportTaskRoleInfoInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get import task role info internal server error body based on context it is used
func (*GetImportTaskRoleInfoInternalServerErrorBody) MarshalBinary ¶
func (o *GetImportTaskRoleInfoInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetImportTaskRoleInfoInternalServerErrorBody) UnmarshalBinary ¶
func (o *GetImportTaskRoleInfoInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *GetImportTaskRoleInfoNotFound) Code() int
Code gets the status code for the get import task role info not found response
func (*GetImportTaskRoleInfoNotFound) Error ¶
func (o *GetImportTaskRoleInfoNotFound) Error() string
func (*GetImportTaskRoleInfoNotFound) GetPayload ¶
func (o *GetImportTaskRoleInfoNotFound) GetPayload() *GetImportTaskRoleInfoNotFoundBody
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 ¶
func (o *GetImportTaskRoleInfoNotFound) String() 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
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 (o *GetImportTaskRoleInfoOK) GetPayload() *GetImportTaskRoleInfoOKBody
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
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 ¶
func (o *GetImportTaskRoleInfoOKBodyAwsImportRole) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *GetImportTaskRoleInfoOKBodyGcpImportRole) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *GetImportTaskRoleInfoParams) WithContext(ctx context.Context) *GetImportTaskRoleInfoParams
WithContext adds the context to the get import task role info params
func (*GetImportTaskRoleInfoParams) WithDefaults ¶
func (o *GetImportTaskRoleInfoParams) WithDefaults() *GetImportTaskRoleInfoParams
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 ¶
func (o *GetImportTaskRoleInfoParams) WithHTTPClient(client *http.Client) *GetImportTaskRoleInfoParams
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 ¶
func (o *GetImportTaskRoleInfoParams) WithTimeout(timeout time.Duration) *GetImportTaskRoleInfoParams
WithTimeout adds the timeout to the get import task role info params
func (*GetImportTaskRoleInfoParams) WriteToRequest ¶
func (o *GetImportTaskRoleInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetImportTaskRoleInfoTooManyRequests) Code() int
Code gets the status code for the get import task role info too many requests response
func (*GetImportTaskRoleInfoTooManyRequests) Error ¶
func (o *GetImportTaskRoleInfoTooManyRequests) Error() string
func (*GetImportTaskRoleInfoTooManyRequests) GetPayload ¶
func (o *GetImportTaskRoleInfoTooManyRequests) GetPayload() *GetImportTaskRoleInfoTooManyRequestsBody
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 ¶
func (o *GetImportTaskRoleInfoTooManyRequests) IsCode(code int) bool
IsCode returns true when this get import task role info too many requests response a status code equal to that given
func (*GetImportTaskRoleInfoTooManyRequests) IsRedirect ¶
func (o *GetImportTaskRoleInfoTooManyRequests) IsRedirect() bool
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 ¶
func (o *GetImportTaskRoleInfoTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get import task role info too many requests response has a 2xx status code
func (*GetImportTaskRoleInfoTooManyRequests) String ¶
func (o *GetImportTaskRoleInfoTooManyRequests) String() 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 ¶
func (o *GetImportTaskRoleInfoTooManyRequestsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
type GetImportTaskRoleInfoUnauthorized ¶
type GetImportTaskRoleInfoUnauthorized struct {
}
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 ¶
func (o *GetImportTaskRoleInfoUnauthorized) Code() int
Code gets the status code for the get import task role info unauthorized response
func (*GetImportTaskRoleInfoUnauthorized) Error ¶
func (o *GetImportTaskRoleInfoUnauthorized) Error() string
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 ¶
func (o *GetImportTaskRoleInfoUnauthorized) String() 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 ¶
func (o *GetImportTaskTooManyRequests) Code() int
Code gets the status code for the get import task too many requests response
func (*GetImportTaskTooManyRequests) Error ¶
func (o *GetImportTaskTooManyRequests) Error() string
func (*GetImportTaskTooManyRequests) GetPayload ¶
func (o *GetImportTaskTooManyRequests) GetPayload() *GetImportTaskTooManyRequestsBody
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 ¶
func (o *GetImportTaskTooManyRequests) String() 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
type GetImportTaskUnauthorized ¶
type GetImportTaskUnauthorized struct {
}
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 (o *ListImportTasksBadRequest) GetPayload() *ListImportTasksBadRequestBody
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
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 (o *ListImportTasksDefault) GetPayload() *ListImportTasksDefaultBody
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
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 ¶
func (o *ListImportTasksDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *ListImportTasksForbidden) GetPayload() *ListImportTasksForbiddenBody
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
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 ¶
func (o *ListImportTasksInternalServerError) Code() int
Code gets the status code for the list import tasks internal server error response
func (*ListImportTasksInternalServerError) Error ¶
func (o *ListImportTasksInternalServerError) Error() string
func (*ListImportTasksInternalServerError) GetPayload ¶
func (o *ListImportTasksInternalServerError) GetPayload() *ListImportTasksInternalServerErrorBody
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 ¶
func (o *ListImportTasksInternalServerError) IsCode(code int) bool
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 ¶
func (o *ListImportTasksInternalServerError) IsSuccess() bool
IsSuccess returns true when this list import tasks internal server error response has a 2xx status code
func (*ListImportTasksInternalServerError) String ¶
func (o *ListImportTasksInternalServerError) String() 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 ¶
func (o *ListImportTasksInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *ListImportTasksNotFound) GetPayload() *ListImportTasksNotFoundBody
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
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 ¶
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
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
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 ¶
func (o *ListImportTasksOKBodyItemsItems0Metadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) UnmarshalBinary ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsAssumeRoleAccess) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) UnmarshalBinary ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceAwsKeyAccess) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormat) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this list import tasks o k body items items0 spec source format based on the context it is used
func (*ListImportTasksOKBodyItemsItems0SpecSourceFormat) MarshalBinary ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormat) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListImportTasksOKBodyItemsItems0SpecSourceFormat) UnmarshalBinary ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormat) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) UnmarshalBinary ¶
func (o *ListImportTasksOKBodyItemsItems0SpecSourceFormatCsvConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list import tasks o k body items items0 spec target tables items0 based on context it is used
func (*ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) MarshalBinary ¶
func (o *ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) UnmarshalBinary ¶
func (o *ListImportTasksOKBodyItemsItems0SpecTargetTablesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *ListImportTasksOKBodyItemsItems0Status) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *ListImportTasksOKBodyItemsItems0StatusProgress) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list import tasks o k body items items0 status progress based on context it is used
func (*ListImportTasksOKBodyItemsItems0StatusProgress) MarshalBinary ¶
func (o *ListImportTasksOKBodyItemsItems0StatusProgress) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListImportTasksOKBodyItemsItems0StatusProgress) UnmarshalBinary ¶
func (o *ListImportTasksOKBodyItemsItems0StatusProgress) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *ListImportTasksParams) WithContext(ctx context.Context) *ListImportTasksParams
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 ¶
func (o *ListImportTasksParams) WithPage(page *int64) *ListImportTasksParams
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 ¶
func (o *ListImportTasksTooManyRequests) Code() int
Code gets the status code for the list import tasks too many requests response
func (*ListImportTasksTooManyRequests) Error ¶
func (o *ListImportTasksTooManyRequests) Error() string
func (*ListImportTasksTooManyRequests) GetPayload ¶
func (o *ListImportTasksTooManyRequests) GetPayload() *ListImportTasksTooManyRequestsBody
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 ¶
func (o *ListImportTasksTooManyRequests) String() 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
type ListImportTasksUnauthorized ¶
type ListImportTasksUnauthorized struct {
}
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 (o *ListImportTasksUnauthorized) Error() string
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 (o *PreviewImportDataBadRequest) Error() string
func (*PreviewImportDataBadRequest) GetPayload ¶
func (o *PreviewImportDataBadRequest) GetPayload() *PreviewImportDataBadRequestBody
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
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 ¶
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
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 (o *PreviewImportDataDefault) GetPayload() *PreviewImportDataDefaultBody
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
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 ¶
func (o *PreviewImportDataDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *PreviewImportDataForbidden) Error() string
func (*PreviewImportDataForbidden) GetPayload ¶
func (o *PreviewImportDataForbidden) GetPayload() *PreviewImportDataForbiddenBody
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
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 ¶
func (o *PreviewImportDataInternalServerError) Code() int
Code gets the status code for the preview import data internal server error response
func (*PreviewImportDataInternalServerError) Error ¶
func (o *PreviewImportDataInternalServerError) Error() string
func (*PreviewImportDataInternalServerError) GetPayload ¶
func (o *PreviewImportDataInternalServerError) GetPayload() *PreviewImportDataInternalServerErrorBody
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 ¶
func (o *PreviewImportDataInternalServerError) IsCode(code int) bool
IsCode returns true when this preview import data internal server error response a status code equal to that given
func (*PreviewImportDataInternalServerError) IsRedirect ¶
func (o *PreviewImportDataInternalServerError) IsRedirect() bool
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 ¶
func (o *PreviewImportDataInternalServerError) IsSuccess() bool
IsSuccess returns true when this preview import data internal server error response has a 2xx status code
func (*PreviewImportDataInternalServerError) String ¶
func (o *PreviewImportDataInternalServerError) String() 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 ¶
func (o *PreviewImportDataInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *PreviewImportDataNotFound) GetPayload() *PreviewImportDataNotFoundBody
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
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 (o *PreviewImportDataOK) GetPayload() *PreviewImportDataOKBody
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
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 ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreview) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this preview import data o k body table previews items0 data preview based on the context it is used
func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreview) MarshalBinary ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreview) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreview) UnmarshalBinary ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreview) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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 ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) UnmarshalBinary ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0DataPreviewRowsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this preview import data o k body table previews items0 schema preview based on the context it is used
func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) MarshalBinary ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) UnmarshalBinary ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreview) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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 ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) UnmarshalBinary ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) Validate ¶
func (o *PreviewImportDataOKBodyTablePreviewsItems0SchemaPreviewColumnDefinitionsItems0) Validate(formats strfmt.Registry) error
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 ¶
func (o *PreviewImportDataParams) SetBody(body PreviewImportDataBody)
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 ¶
func (o *PreviewImportDataParams) WithBody(body PreviewImportDataBody) *PreviewImportDataParams
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 ¶
func (o *PreviewImportDataParams) WithContext(ctx context.Context) *PreviewImportDataParams
WithContext adds the context to the preview import data params
func (*PreviewImportDataParams) WithDefaults ¶
func (o *PreviewImportDataParams) WithDefaults() *PreviewImportDataParams
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 ¶
func (o *PreviewImportDataParams) WithTimeout(timeout time.Duration) *PreviewImportDataParams
WithTimeout adds the timeout to the preview import data params
func (*PreviewImportDataParams) WriteToRequest ¶
func (o *PreviewImportDataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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
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 ¶
func (o *PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this preview import data params body spec source aws assume role access based on context it is used
func (*PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) MarshalBinary ¶
func (o *PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary ¶
func (o *PreviewImportDataParamsBodySpecSourceAwsAssumeRoleAccess) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *PreviewImportDataParamsBodySpecSourceAwsKeyAccess) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this preview import data params body spec source aws key access based on context it is used
func (*PreviewImportDataParamsBodySpecSourceAwsKeyAccess) MarshalBinary ¶
func (o *PreviewImportDataParamsBodySpecSourceAwsKeyAccess) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreviewImportDataParamsBodySpecSourceAwsKeyAccess) UnmarshalBinary ¶
func (o *PreviewImportDataParamsBodySpecSourceAwsKeyAccess) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *PreviewImportDataParamsBodySpecSourceFormat) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *PreviewImportDataParamsBodySpecSourceFormatCsvConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this preview import data params body spec source format csv config based on context it is used
func (*PreviewImportDataParamsBodySpecSourceFormatCsvConfig) MarshalBinary ¶
func (o *PreviewImportDataParamsBodySpecSourceFormatCsvConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreviewImportDataParamsBodySpecSourceFormatCsvConfig) UnmarshalBinary ¶
func (o *PreviewImportDataParamsBodySpecSourceFormatCsvConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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 ¶
func (o *PreviewImportDataParamsBodySpecTargetTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this preview import data params body spec target tables items0 based on context it is used
func (*PreviewImportDataParamsBodySpecTargetTablesItems0) MarshalBinary ¶
func (o *PreviewImportDataParamsBodySpecTargetTablesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PreviewImportDataParamsBodySpecTargetTablesItems0) UnmarshalBinary ¶
func (o *PreviewImportDataParamsBodySpecTargetTablesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *PreviewImportDataTooManyRequests) Code() int
Code gets the status code for the preview import data too many requests response
func (*PreviewImportDataTooManyRequests) Error ¶
func (o *PreviewImportDataTooManyRequests) Error() string
func (*PreviewImportDataTooManyRequests) GetPayload ¶
func (o *PreviewImportDataTooManyRequests) GetPayload() *PreviewImportDataTooManyRequestsBody
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 ¶
func (o *PreviewImportDataTooManyRequests) String() 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
type PreviewImportDataUnauthorized ¶
type PreviewImportDataUnauthorized struct {
}
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 ¶
func (o *PreviewImportDataUnauthorized) Code() int
Code gets the status code for the preview import data unauthorized response
func (*PreviewImportDataUnauthorized) Error ¶
func (o *PreviewImportDataUnauthorized) Error() string
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 ¶
func (o *PreviewImportDataUnauthorized) String() 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 (o *UpdateImportTaskBadRequest) Error() string
func (*UpdateImportTaskBadRequest) GetPayload ¶
func (o *UpdateImportTaskBadRequest) GetPayload() *UpdateImportTaskBadRequestBody
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
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 ¶
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
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 (o *UpdateImportTaskDefault) GetPayload() *UpdateImportTaskDefaultBody
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
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 ¶
func (o *UpdateImportTaskDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *UpdateImportTaskForbidden) GetPayload() *UpdateImportTaskForbiddenBody
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
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 ¶
func (o *UpdateImportTaskInternalServerError) Code() int
Code gets the status code for the update import task internal server error response
func (*UpdateImportTaskInternalServerError) Error ¶
func (o *UpdateImportTaskInternalServerError) Error() string
func (*UpdateImportTaskInternalServerError) GetPayload ¶
func (o *UpdateImportTaskInternalServerError) GetPayload() *UpdateImportTaskInternalServerErrorBody
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 ¶
func (o *UpdateImportTaskInternalServerError) IsCode(code int) bool
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 ¶
func (o *UpdateImportTaskInternalServerError) IsSuccess() bool
IsSuccess returns true when this update import task internal server error response has a 2xx status code
func (*UpdateImportTaskInternalServerError) String ¶
func (o *UpdateImportTaskInternalServerError) String() 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 ¶
func (o *UpdateImportTaskInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *UpdateImportTaskNotFound) GetPayload() *UpdateImportTaskNotFoundBody
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
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 ¶
func (o *UpdateImportTaskParams) SetBody(body UpdateImportTaskBody)
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 ¶
func (o *UpdateImportTaskParams) WithBody(body UpdateImportTaskBody) *UpdateImportTaskParams
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 ¶
func (o *UpdateImportTaskParams) WithContext(ctx context.Context) *UpdateImportTaskParams
WithContext adds the context to the update import task params
func (*UpdateImportTaskParams) WithDefaults ¶
func (o *UpdateImportTaskParams) WithDefaults() *UpdateImportTaskParams
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 ¶
func (o *UpdateImportTaskParams) WithTimeout(timeout time.Duration) *UpdateImportTaskParams
WithTimeout adds the timeout to the update import task params
func (*UpdateImportTaskParams) WriteToRequest ¶
func (o *UpdateImportTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdateImportTaskTooManyRequests) Code() int
Code gets the status code for the update import task too many requests response
func (*UpdateImportTaskTooManyRequests) Error ¶
func (o *UpdateImportTaskTooManyRequests) Error() string
func (*UpdateImportTaskTooManyRequests) GetPayload ¶
func (o *UpdateImportTaskTooManyRequests) GetPayload() *UpdateImportTaskTooManyRequestsBody
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 ¶
func (o *UpdateImportTaskTooManyRequests) String() 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
type UpdateImportTaskUnauthorized ¶
type UpdateImportTaskUnauthorized struct {
}
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 ¶
func (o *UpdateImportTaskUnauthorized) Code() int
Code gets the status code for the update import task unauthorized response
func (*UpdateImportTaskUnauthorized) Error ¶
func (o *UpdateImportTaskUnauthorized) Error() string
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 ¶
func (o *UpdateImportTaskUnauthorized) String() 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 (o *UploadLocalFileBadRequest) GetPayload() *UploadLocalFileBadRequestBody
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
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 ¶
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
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 (o *UploadLocalFileDefault) GetPayload() *UploadLocalFileDefaultBody
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
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 ¶
func (o *UploadLocalFileDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *UploadLocalFileForbidden) GetPayload() *UploadLocalFileForbiddenBody
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
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 ¶
func (o *UploadLocalFileInternalServerError) Code() int
Code gets the status code for the upload local file internal server error response
func (*UploadLocalFileInternalServerError) Error ¶
func (o *UploadLocalFileInternalServerError) Error() string
func (*UploadLocalFileInternalServerError) GetPayload ¶
func (o *UploadLocalFileInternalServerError) GetPayload() *UploadLocalFileInternalServerErrorBody
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 ¶
func (o *UploadLocalFileInternalServerError) IsCode(code int) bool
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 ¶
func (o *UploadLocalFileInternalServerError) IsSuccess() bool
IsSuccess returns true when this upload local file internal server error response has a 2xx status code
func (*UploadLocalFileInternalServerError) String ¶
func (o *UploadLocalFileInternalServerError) String() 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 ¶
func (o *UploadLocalFileInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 (o *UploadLocalFileNotFound) GetPayload() *UploadLocalFileNotFoundBody
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
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 ¶
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
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 ¶
func (o *UploadLocalFileParams) WithBody(body UploadLocalFileBody) *UploadLocalFileParams
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 ¶
func (o *UploadLocalFileParams) WithContext(ctx context.Context) *UploadLocalFileParams
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
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 ¶
func (o *UploadLocalFileTooManyRequests) Code() int
Code gets the status code for the upload local file too many requests response
func (*UploadLocalFileTooManyRequests) Error ¶
func (o *UploadLocalFileTooManyRequests) Error() string
func (*UploadLocalFileTooManyRequests) GetPayload ¶
func (o *UploadLocalFileTooManyRequests) GetPayload() *UploadLocalFileTooManyRequestsBody
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 ¶
func (o *UploadLocalFileTooManyRequests) String() 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
type UploadLocalFileUnauthorized ¶
type UploadLocalFileUnauthorized struct {
}
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 (o *UploadLocalFileUnauthorized) Error() string
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
Source Files
¶
- create_import_task_parameters.go
- create_import_task_responses.go
- get_import_task_parameters.go
- get_import_task_responses.go
- get_import_task_role_info_parameters.go
- get_import_task_role_info_responses.go
- import_operations_client.go
- list_import_tasks_parameters.go
- list_import_tasks_responses.go
- preview_import_data_parameters.go
- preview_import_data_responses.go
- update_import_task_parameters.go
- update_import_task_responses.go
- upload_local_file_parameters.go
- upload_local_file_responses.go