ai_core_sdk.models.base_models module¶
- class ai_core_sdk.models.base_models.BasicNameResponse(name: str, message: str, **kwargs)¶
Bases:
objectThe BasicNameResponse object defines the response with name from the server
- Parameters:
name – Name of the relevant resource
message (str) – Response message from the server
**kwargs – The keyword arguments are there in case there are additional attributes returned from server
- __init__(name: str, message: str, **kwargs)¶
- static from_dict(bnr_dict: Dict[str, str])¶
Returns a
ai_core_sdk.models.base_models.BasicNameResponseobject, created from the values in the dict provided as parameter- Parameters:
bnr_dict (Dict[str, str]) – Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.base_models.BasicNameResponse
- class ai_core_sdk.models.base_models.Message(message: str, **kwargs)¶
Bases:
objectMessage object defines a message
- Parameters:
message (str) – message
- __init__(message: str, **kwargs)¶
- static from_dict(message_dict: Dict[str, str])¶
Returns a
ai_core_sdk.models.base_models.Messageobject, created from the values in the dict provided as parameter- Parameters:
message_dict (Dict[str, str]) – Dict which includes the necessary values to create the object
- Returns:
An object, created from the values provided
- Return type:
class:ai_core_sdk.models.base_models.Message