Initial Commit

This commit is contained in:
Luke Hagar
2024-01-01 15:47:37 -06:00
parent 203c48ae7c
commit f91c1e6f54
4519 changed files with 88021 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
## Log Line
This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log.

View File

@@ -0,0 +1,26 @@
{/* Autogenerated DO NOT EDIT */}
import Level from "/content/types/models/operations/level/python.mdx"
import Collapsible from "/src/components/Collapsible";
import Labels from "/src/lib/labels";
##### `level` *{`operations.Level`}*
An integer log level to write to the PMS log with.
0: Error
1: Warning
2: Info
3: Debug
4: Verbose
<Collapsible openLabel={Labels.showProperties} closeLabel={Labels.hideProperties}>
<Level/>
</Collapsible>
---
##### `message` *{`str`}*
The text of the message to write to the log.
---
##### `source` *{`str`}*
a string indicating the source of the message.

View File

@@ -0,0 +1,11 @@
{/* Autogenerated DO NOT EDIT */}
import LogLineResponse from "/content/types/models/operations/log_line_response/python.mdx"
import Collapsible from "/src/components/Collapsible";
import Labels from "/src/lib/labels";
##### *{`operations.LogLineResponse`}*
<Collapsible defaultOpen openLabel={Labels.showProperties} closeLabel={Labels.hideProperties}>
<LogLineResponse/>
</Collapsible>

View File

@@ -0,0 +1,31 @@
<CH.Code>
```python LogLine.py
import sdk
from sdk.models import operations
s = sdk.SDK(
access_token="<YOUR_API_KEY_HERE>",
)
res = s.log.log_line(level=operations.Level.FOUR, message='string', source='string')
if res.status_code == 200:
# handle response
pass
```
---
```json Example Response
{
"errors": [
{
"code": 1001,
"message": "User could not be authenticated",
"status": 401
}
]
}
```
</CH.Code>

View File

@@ -0,0 +1,12 @@
import CurlHeader from './_header.mdx';
import SDKHeader from './_header.mdx';
import OperationHeader from '/src/components/OperationHeader';
###### *Log*
<OperationHeader
sdkHeader={<SDKHeader />}
curlHeader={<CurlHeader />}
/>
{/* render operation */}