version

package
v0.0.0-...-63319d1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestOpts = golangsdk.RequestOpts{
	MoreHeaders: map[string]string{"Content-Type": "application/json", "X-Language": "en-us"},
}

Functions

func Delete

func Delete(c *golangsdk.ServiceClient, datesetId string, versionId string) *golangsdk.ErrResult

func List

func List(c *golangsdk.ServiceClient, datesetId string, opts ListOpts) (*pagination.Pager, error)

Types

type CreateOpts

type CreateOpts struct {
	ClearHardProperty        *bool  `json:"clear_hard_property,omitempty"`
	Description              string `json:"description,omitempty"`
	ExportImages             *bool  `json:"export_images,omitempty"`
	RemoveSampleUsage        *bool  `json:"remove_sample_usage,omitempty"`
	TrainEvaluateSampleRatio string `json:"train_evaluate_sample_ratio,omitempty"`
	VersionFormat            string `json:"version_format,omitempty"`
	VersionName              string `json:"version_name,omitempty"`
	WithColumnHeader         *bool  `json:"with_column_header,omitempty"`
}

type CreateResp

type CreateResp struct {
	VersionId string `json:"version_id"`
}

func Create

func Create(c *golangsdk.ServiceClient, datesetId string, opts CreateOpts) (*CreateResp, error)

type DatasetVersion

type DatasetVersion struct {
	AddSampleCount               int                    `json:"add_sample_count"`
	AnalysisCachePath            string                 `json:"analysis_cache_path"`
	AnalysisStatus               int                    `json:"analysis_status"`
	AnalysisTaskId               string                 `json:"analysis_task_id"`
	AnnotatedSampleCount         int                    `json:"annotated_sample_count"`
	AnnotatedSubSampleCount      int                    `json:"annotated_sub_sample_count"`
	ClearHardProperty            bool                   `json:"clear_hard_property"`
	Code                         string                 `json:"code"`
	CreateTime                   int                    `json:"create_time"`
	Crop                         bool                   `json:"crop"`
	CropPath                     string                 `json:"crop_path"`
	CropRotateCachePath          string                 `json:"crop_rotate_cache_path"`
	DataAnalysis                 map[string]interface{} `json:"data_analysis"`
	DataPath                     string                 `json:"data_path"`
	DataStatistics               map[string]interface{} `json:"data_statistics"`
	DataValidate                 bool                   `json:"data_validate"`
	DeletedSampleCount           int                    `json:"deleted_sample_count"`
	DeletionStats                map[string]int         `json:"deletion_stats"`
	Description                  string                 `json:"description"`
	ExportImages                 bool                   `json:"export_images"`
	ExtractSerialNumber          bool                   `json:"extract_serial_number"`
	IncludeDatasetData           bool                   `json:"include_dataset_data"`
	IsCurrent                    bool                   `json:"is_current"`
	LabelStats                   []dataset.Label        `json:"label_stats"`
	LabelType                    string                 `json:"label_type"`
	ManifestCacheInputPath       string                 `json:"manifest_cache_input_path"`
	ManifestPath                 string                 `json:"manifest_path"`
	Message                      string                 `json:"message"`
	ModifiedSampleCount          int                    `json:"modified_sample_count"`
	PreviousAnnotatedSampleCount int                    `json:"previous_annotated_sample_count"`
	PreviousTotalSampleCount     int                    `json:"previous_total_sample_count"`
	PreviousVersionId            string                 `json:"previous_version_id"`
	ProcessorTaskId              string                 `json:"processor_task_id"`
	ProcessorTaskStatus          int                    `json:"processor_task_status"`
	RemoveSampleUsage            bool                   `json:"remove_sample_usage"`
	Rotate                       bool                   `json:"rotate"`
	RotatePath                   string                 `json:"rotate_path"`
	SampleState                  string                 `json:"sample_state"`
	StartProcessorTask           bool                   `json:"start_processor_task"`
	Status                       int                    `json:"status"`
	Tags                         []string               `json:"tags"`
	TaskType                     int                    `json:"task_type"`
	TotalSampleCount             int                    `json:"total_sample_count"`
	TotalSubSampleCount          int                    `json:"total_sub_sample_count"`
	TrainEvaluateSampleRatio     string                 `json:"train_evaluate_sample_ratio"`
	UpdateTime                   int                    `json:"update_time"`
	VersionFormat                string                 `json:"version_format"`
	VersionId                    string                 `json:"version_id"`
	VersionName                  string                 `json:"version_name"`
	WithColumnHeader             bool                   `json:"with_column_header"`
}

func ExtractDatasetVersions

func ExtractDatasetVersions(r pagination.Page) ([]DatasetVersion, error)

func Get

func Get(c *golangsdk.ServiceClient, datesetId string, versionId string) (*DatasetVersion, error)

type DatasetVersionPage

type DatasetVersionPage struct {
	pagination.OffsetPageBase
}

func (DatasetVersionPage) IsEmpty

func (b DatasetVersionPage) IsEmpty() (bool, error)

type ListDatasetVersions

type ListDatasetVersions struct {
	TotalNumber int              `json:"total_number"`
	Versions    []DatasetVersion `json:"versions"`
}

type ListOpts

type ListOpts struct {
	Status             int    `q:"status"`
	TrainEvaluateRatio string `q:"train_evaluate_ratio"`
	VersionFormat      int    `q:"version_format"`
	Offset             int    `q:"offset"`
	Limit              int    `q:"limit"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL