otcextensions.sdk.modelartsv2.v2.dataset_export_task

The ModelArts DatasetExportTask Class

The Config class inherits from Resource.

class otcextensions.sdk.modelartsv2.v2.dataset_export_task.DatasetExportTask(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

base_path: str = '/datasets/%(uri_dataset_id)s/export-tasks'

The base part of the URI for this resource.

resources_key: ty.Optional[str] = 'export_tasks'

Plural form of key for resource.

allow_create = True

Allow create operation for this resource.

allow_list = True

Allow list operation for this resource.

allow_fetch = True

Allow get operation for this resource.

annotation_format

Labeling format.

created_at

Time when a task is created.

dataset_id

Dataset ID.

uri_dataset_id

Dataset ID.

dataset_type

Dataset type.

error_code

Error code.

error_msg

Error message.

export_format

Format of the exported directory.

export_params

Parameters of a dataset export task.

export_type

Export type.

finished_sample_count

Number of completed samples.

path

Export output path.

progress

Percentage of current task progress.

sample_state

Sample status.

source_type_header

Prefix of the OBS path in the exported labeling file.

status

Task status.

task_id

Task ID.

total_count

Total number of export tasks.

total_sample_count

Total number of samples.

updated_at

Time when a task is updated.

version_format

Format of a dataset version.

version_id

Dataset version ID.

with_column_header

Whether to write the column name in the first line of the CSV file during export.