| |
- builtins.object
-
- BasicNameResponse
- Message
class BasicNameResponse(builtins.object) |
|
BasicNameResponse(name: str, message: str, **kwargs)
The BasicNameResponse object defines the response with name from the server
:param name: Name of the relevant resource
:type id: str
:param message: Response message from the server
:type message: str
:param `**kwargs`: The keyword arguments are there in case there are additional attributes returned from server |
|
Methods defined here:
- __init__(self, name: str, message: str, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- __str__(self)
- Return str(self).
Static methods defined here:
- from_dict(bnr_dict: Dict[str, str])
- Returns a :class:`ai_core_sdk.models.base_models.BasicNameResponse` object, created from the values in the
dict provided as parameter
:param bnr_dict: Dict which includes the necessary values to create the object
:type bnr_dict: Dict[str, str]
:return: An object, created from the values provided
:rtype: class:`ai_core_sdk.models.base_models.BasicNameResponse`
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Message(builtins.object) |
|
Message(message: str, **kwargs)
Message object defines a message
:param message: message
:type message: str |
|
Methods defined here:
- __eq__(self, other)
- Return self==value.
- __init__(self, message: str, **kwargs)
- Initialize self. See help(type(self)) for accurate signature.
- __str__(self)
- Return str(self).
Static methods defined here:
- from_dict(message_dict: Dict[str, str])
- Returns a :class:`ai_core_sdk.models.base_models.Message` object, created from the values in the
dict provided as parameter
:param message_dict: Dict which includes the necessary values to create the object
:type message_dict: Dict[str, str]
:return: An object, created from the values provided
:rtype: class:`ai_core_sdk.models.base_models.Message`
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:
- __hash__ = None
| |