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 @@
## Apply Updates
Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed

View File

@@ -0,0 +1,20 @@
{/* Autogenerated DO NOT EDIT */}
import Tonight from "/content/types/models/operations/tonight/python.mdx"
import Skip from "/content/types/models/operations/skip/python.mdx"
import Collapsible from "/src/components/Collapsible";
import Labels from "/src/lib/labels";
##### `tonight` *{`Optional[operations.Tonight]`}*
Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
<Collapsible openLabel={Labels.showProperties} closeLabel={Labels.hideProperties}>
<Tonight/>
</Collapsible>
---
##### `skip` *{`Optional[operations.Skip]`}*
Indicate that the latest version should be marked as skipped. The \<Release\> entry for this version will have the `state` set to `skipped`.
<Collapsible openLabel={Labels.showProperties} closeLabel={Labels.hideProperties}>
<Skip/>
</Collapsible>

View File

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

View File

@@ -0,0 +1,31 @@
<CH.Code>
```python ApplyUpdates.py
import sdk
from sdk.models import operations
s = sdk.SDK(
access_token="<YOUR_API_KEY_HERE>",
)
res = s.updater.apply_updates(tonight=operations.Tonight.ZERO, skip=operations.Skip.ONE)
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';
###### *Updater*
<OperationHeader
sdkHeader={<SDKHeader />}
curlHeader={<CurlHeader />}
/>
{/* render operation */}