RPA.Robocorp.Storage
Delete an asset by providing its name.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | str | null | Name of the asset to delete |
This operation cannot be undone.
param name: | Name of the asset to delete |
---|---|
raises AssetNotFound: | |
Asset with the given name does not exist |
Example: Robot Framework
Example: Python
Get the asset's bytes value by providing its name.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | str | null | Name of the asset |
param name: | Name of the asset |
---|---|
raises AssetNotFound: | |
Asset with the given name does not exist | |
returns: | The current value of this asset as bytes |
Example: Robot Framework
Example: Python
Get the asset's content saved to disk by providing its name.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | str | null | Name of the asset |
path | str | null | Destination path to the downloaded file |
overwrite | bool | False | Replace destination file if it already exists (default False) |
param name: | Name of the asset |
---|---|
param path: | Destination path to the downloaded file |
param overwrite: | |
Replace destination file if it already exists (default False) | |
raises AssetNotFound: | |
Asset with the given name does not exist | |
returns: | A local path pointing to the retrieved file |
Example: Robot Framework
Example: Python
Get the asset's dictionary value by providing its name.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | str | null | Name of the asset |
param name: | Name of the asset |
---|---|
raises AssetNotFound: | |
Asset with the given name does not exist | |
returns: | The current value of this asset as a dictionary |
Example: Robot Framework
Example: Python
Get the asset's text value by providing its name.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | str | null | Name of the asset |
param name: | Name of the asset |
---|---|
raises AssetNotFound: | |
Asset with the given name does not exist | |
returns: | The current value of this asset as text |
Example: Robot Framework
Example: Python
List all the existing assets.
returns: | A list of available assets' names |
---|
Example: Robot Framework
Example: Python
Creates or updates an asset named name with the provided bytes value.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | str | null | Name of the existing or new asset to create (if missing) |
value | bytes | null | The new bytes value to set within the asset |
wait | bool | True | Wait for the value to be set successfully |
param name: | Name of the existing or new asset to create (if missing) |
---|---|
param value: | The new bytes value to set within the asset |
param wait: | Wait for the value to be set successfully |
Example: Robot Framework
Example: Python
Creates or updates an asset named name with the content of the given path file.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | str | null | Name of the existing or new asset to create (if missing) |
path | str | null | The file path whose content to be set within the asset |
wait | bool | True | Wait for the value to be set successfully |
param name: | Name of the existing or new asset to create (if missing) |
---|---|
param path: | The file path whose content to be set within the asset |
param wait: | Wait for the value to be set successfully |
Example: Robot Framework
Example: Python
Creates or updates an asset named name with the provided dictionary value.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | str | null | Name of the existing or new asset to create (if missing) |
value | Dict | null | The new dictionary value to set within the asset |
wait | bool | True | Wait for the value to be set successfully |
param name: | Name of the existing or new asset to create (if missing) |
---|---|
param value: | The new dictionary value to set within the asset |
param wait: | Wait for the value to be set successfully |
Example: Robot Framework
Example: Python
Creates or updates an asset named name with the provided text value.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | str | null | Name of the existing or new asset to create (if missing) |
value | str | null | The new text value to set within the asset |
wait | bool | True | Wait for the value to be set successfully |
param name: | Name of the existing or new asset to create (if missing) |
---|---|
param value: | The new text value to set within the asset |
param wait: | Wait for the value to be set successfully |
Example: Robot Framework
Example: Python