Module slack_sdk.audit_logs.v1.response
Classes
class AuditLogsResponse (*, url: str, status_code: int, raw_body: str | None, headers: dict)
-
Expand source code
class AuditLogsResponse: url: str status_code: int headers: Dict[str, Any] raw_body: Optional[str] body: Optional[Dict[str, Any]] typed_body: Optional[LogsResponse] @property def typed_body(self) -> Optional[LogsResponse]: # type: ignore if self.body is None: return None return LogsResponse(**self.body) def __init__( self, *, url: str, status_code: int, raw_body: Optional[str], headers: dict, ): self.url = url self.status_code = status_code self.headers = headers self.raw_body = raw_body self.body = json.loads(raw_body) if raw_body is not None and raw_body.startswith("{") else None
Class variables
var body : Dict[str, Any] | None
-
The type of the None singleton.
var headers : Dict[str, Any]
-
The type of the None singleton.
var raw_body : str | None
-
The type of the None singleton.
var status_code : int
-
The type of the None singleton.
var url : str
-
The type of the None singleton.
Instance variables
prop typed_body : LogsResponse | None
-
Expand source code
@property def typed_body(self) -> Optional[LogsResponse]: # type: ignore if self.body is None: return None return LogsResponse(**self.body)