Data Class
Data for training and scoring.
Constructor
Data(*, name: str | None = None, version: str | None = None, description: str | None = None, tags: Dict | None = None, properties: Dict | None = None, path: str | None = None, type: str = 'uri_folder', **kwargs: Any)
		Parameters
| Name | Description | 
|---|---|
| 
		 name 
			
				Required
			 
	 | 
	
		
		 Name of the resource.  | 
| 
		 version 
			
				Required
			 
	 | 
	
		
		 Version of the resource.  | 
| 
		 description 
			
				Required
			 
	 | 
	
		
		 Description of the resource.  | 
| 
		 tags 
			
				Required
			 
	 | 
	
		
		 Tag dictionary. Tags can be added, removed, and updated.  | 
| 
		 properties 
			
				Required
			 
	 | 
	
		
		 The asset property dictionary.  | 
| 
		 path 
			
				Required
			 
	 | 
	
		
		 The path to the asset on the datastore. This can be local or remote  | 
| 
		 type 
			
				Required
			 
	 | 
	
		 
				Literal[AssetTypes.URI_FILE, AssetTypes.URI_FOLDER, AssetTypes.MLTABLE]
		 
		The type of the asset. Valid values are uri_file, uri_folder, mltable. Defaults to uri_folder.  | 
| 
		 kwargs 
			
				Required
			 
	 | 
	
		
		 A dictionary of additional configuration parameters.  | 
Keyword-Only Parameters
| Name | Description | 
|---|---|
| 
		 name 
	 | 
	
		 Default value: None 
			 | 
| 
		 version 
	 | 
	
		 Default value: None 
			 | 
| 
		 description 
	 | 
	
		 Default value: None 
			 | 
| 
		 tags 
	 | 
	
		 Default value: None 
			 | 
| 
		 properties 
	 | 
	
		 Default value: None 
			 | 
| 
		 path 
	 | 
	
		 Default value: None 
			 | 
| 
		 type 
	 | 
	
		 Default value: uri_folder 
			 | 
Methods
| dump | 
					 Dump the asset content into a file in YAML format.  | 
			
dump
Dump the asset content into a file in YAML format.
dump(dest: str | PathLike | IO, **kwargs: Any) -> None
		Parameters
| Name | Description | 
|---|---|
| 
		 dest 
			
				Required
			 
	 | 
	
		
		 The local path or file stream to write the YAML content to. If dest is a file path, a new file will be created. If dest is an open file, the file will be written to directly.  | 
Exceptions
| Type | Description | 
|---|---|
| 
					 Raised if dest is a file path and the file already exists.  | 
			|
| 
					 Raised if dest is an open file and the file is not writable.  | 
			
Attributes
base_path
creation_context
The creation context of the resource.
Returns
| Type | Description | 
|---|---|
| 
					 The creation metadata for the resource.  |