Newer
Older
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from api_invocation_logs.models.base_model import Model
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from api_invocation_logs.models.log import Log
import re
from api_invocation_logs import util
from api_invocation_logs.models.log import Log # noqa: E501
import re # noqa: E501
class InvocationLog(Model):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit the class manually.
"""
def __init__(self, aef_id=None, api_invoker_id=None, logs=None, supported_features=None): # noqa: E501
"""InvocationLog - a model defined in OpenAPI
:param aef_id: The aef_id of this InvocationLog. # noqa: E501
:type aef_id: str
:param api_invoker_id: The api_invoker_id of this InvocationLog. # noqa: E501
:type api_invoker_id: str
:param logs: The logs of this InvocationLog. # noqa: E501
:type logs: List[Log]
:param supported_features: The supported_features of this InvocationLog. # noqa: E501
:type supported_features: str
"""
self.openapi_types = {
'aef_id': str,
'api_invoker_id': str,
'logs': List[Log],
'supported_features': str
}
self.attribute_map = {
'aef_id': 'aefId',
'api_invoker_id': 'apiInvokerId',
'logs': 'logs',
'supported_features': 'supportedFeatures'
}
self._aef_id = aef_id
self._api_invoker_id = api_invoker_id
self._logs = logs
self._supported_features = supported_features
@classmethod
def from_dict(cls, dikt) -> 'InvocationLog':
"""Returns the dict as a model
:param dikt: A dict.
:type: dict
:return: The InvocationLog of this InvocationLog. # noqa: E501
:rtype: InvocationLog
"""
return util.deserialize_model(dikt, cls)
@property
Identity information of the API exposing function requesting logging of service API invocations # noqa: E501
:return: The aef_id of this InvocationLog.
:rtype: str
"""
return self._aef_id
@aef_id.setter
Identity information of the API exposing function requesting logging of service API invocations # noqa: E501
:param aef_id: The aef_id of this InvocationLog.
:type aef_id: str
"""
if aef_id is None:
raise ValueError("Invalid value for `aef_id`, must not be `None`") # noqa: E501
self._aef_id = aef_id
@property
"""Gets the api_invoker_id of this InvocationLog.
Identity of the API invoker which invoked the service API # noqa: E501
:return: The api_invoker_id of this InvocationLog.
:rtype: str
"""
return self._api_invoker_id
@api_invoker_id.setter
"""Sets the api_invoker_id of this InvocationLog.
Identity of the API invoker which invoked the service API # noqa: E501
:param api_invoker_id: The api_invoker_id of this InvocationLog.
:type api_invoker_id: str
"""
if api_invoker_id is None:
raise ValueError("Invalid value for `api_invoker_id`, must not be `None`") # noqa: E501
self._api_invoker_id = api_invoker_id
@property
"""Gets the logs of this InvocationLog.
Service API invocation log # noqa: E501
:return: The logs of this InvocationLog.
:rtype: List[Log]
"""
return self._logs
@logs.setter
"""Sets the logs of this InvocationLog.
Service API invocation log # noqa: E501
:param logs: The logs of this InvocationLog.
:type logs: List[Log]
"""
if logs is None:
raise ValueError("Invalid value for `logs`, must not be `None`") # noqa: E501
if logs is not None and len(logs) < 1:
raise ValueError("Invalid value for `logs`, number of items must be greater than or equal to `1`") # noqa: E501
self._logs = logs
@property
"""Gets the supported_features of this InvocationLog.
A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. # noqa: E501
:return: The supported_features of this InvocationLog.
:rtype: str
"""
return self._supported_features
@supported_features.setter
def supported_features(self, supported_features: str):
"""Sets the supported_features of this InvocationLog.
A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported. # noqa: E501
:param supported_features: The supported_features of this InvocationLog.
:type supported_features: str
"""
if supported_features is not None and not re.search(r'^[A-Fa-f0-9]*$', supported_features): # noqa: E501
raise ValueError("Invalid value for `supported_features`, must be a follow pattern or equal to `/^[A-Fa-f0-9]*$/`") # noqa: E501
self._supported_features = supported_features