| |
- builtins.object
-
- Artifact
class Artifact(builtins.object) |
|
Artifact(name: str, id: str, url: str, kind: ai_api_client_sdk.models.artifact.Artifact.Kind, scenario_id: str, created_at: datetime.datetime, modified_at: datetime.datetime, execution_id: str = None, configuration_id: str = None, description: str = None, labels: List[ai_api_client_sdk.models.label.Label] = None, scenario: ai_api_client_sdk.models.scenario.Scenario = None, **kwargs)
The Artifact object defines an artifact
:param name: Name of the artifact
:type name: str
:param id: ID of the artifact
:type id: str
:param url: URL of the artifact
:type url: str
:param kind: Kind of the artifact
:type kind: class:`ai_api_client_sdk.models.artifact.Artifact.Kind`
:param scenario_id: ID of the scenario which the artifact belongs to
:type scenario_id: str
:param created_at: Time when the artifact was created
:type created_at: datetime
:param modified_at: Time when the artifact was last modified
:type modified_at: datetime
:param execution_id: ID of the execution which the artifact resulted from, defaults to None
:type execution_id: str, optional
:param configuration_id: ID of the configuration which the artifact relates to, defaults to None
:type configuration_id: str, optional
:param description: Description of the artifact, defaults to None
:type description: str, optional
:param labels: List of the labels of the artifact, defaults to None
:type labels: List[class:`ai_api_client_sdk.models.label.Label`]
:param scenario: A dict, which gives detailed information on scenario, defaults to None
:type scenario: class:`ai_api_client_sdk.models.scenario.Scenario`, optional
:param `**kwargs`: The keyword arguments are there in case there are additional attributes returned from server |
|
Methods defined here:
- __eq__(self, other)
- Return self==value.
- __init__(self, name: str, id: str, url: str, kind: ai_api_client_sdk.models.artifact.Artifact.Kind, scenario_id: str, created_at: datetime.datetime, modified_at: datetime.datetime, execution_id: str = None, configuration_id: str = None, description: str = None, labels: List[ai_api_client_sdk.models.label.Label] = None, scenario: ai_api_client_sdk.models.scenario.Scenario = None, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- __str__(self)
- Return str(self).
Static methods defined here:
- from_dict(artifact_dict: Dict[str, Any])
- Returns a :class:`ai_api_client_sdk.models.artifact.Artifact` object, created from the values in the dict
provided as parameter
:param artifact_dict: Dict which includes the necessary values to create the object
:type artifact_dict: Dict[str, Any]
:return: An object, created from the values provided
:rtype: class:`ai_api_client_sdk.models.artifact.Artifact`
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- Kind = <enum 'Kind'>
- An enumeration.
- __hash__ = None
| |