nisystemlink.clients.artifact
- class nisystemlink.clients.artifact.ArtifactClient(configuration=None)[source]
- __init__(configuration=None)[source]
Initialize an instance.
- Parameters
configuration (
Optional[nisystemlink.clients.core.HttpConfiguration]) – Defines the web server to connect to and information about how to connect. If not provided, theHttpConfigurationManageris used to obtain the configuration.- Raises
ApiException – if unable to communicate with the Notebook execution Service.
- upload_artifact(workspace, artifact)[source]
Uploads an artifact.
- Parameters
workspace (
str) – The workspace containing the artifact.artifact (
BinaryIO) – The artifact to upload.
- Returns
The response containing the artifact ID.
- Return type
- pydantic model nisystemlink.clients.artifact.models.UploadArtifactResponse[source]
Response for an artifact upload request.
Show JSON schema
{ "title": "UploadArtifactResponse", "description": "Response for an artifact upload request.", "type": "object", "properties": { "id": { "title": "Id", "type": "string" } }, "required": [ "id" ] }
- Fields
-
field id:
str[Required] Information about the uploaded artifact.