(reports)
REST APIs for managing reports (lint reports, change reports, etc)
- get_changes_report_signed_url - Get the signed access url for the change reports for a particular document.
- get_linting_report_signed_url - Get the signed access url for the linting reports for a particular document.
- upload_report - Upload a report.
Get the signed access url for the change reports for a particular document.
from speakeasy_client_sdk_python import Speakeasy
from speakeasy_client_sdk_python.models import shared
with Speakeasy(
security=shared.Security(
api_key="<YOUR_API_KEY_HERE>",
),
) as speakeasy:
res = speakeasy.reports.get_changes_report_signed_url(request={
"document_checksum": "<value>",
})
assert res.signed_access is not None
# Handle response
print(res.signed_access)
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.GetChangesReportSignedURLRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.GetChangesReportSignedURLResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.SDKError | 4XX, 5XX | */* |
Get the signed access url for the linting reports for a particular document.
from speakeasy_client_sdk_python import Speakeasy
from speakeasy_client_sdk_python.models import shared
with Speakeasy(
security=shared.Security(
api_key="<YOUR_API_KEY_HERE>",
),
) as speakeasy:
res = speakeasy.reports.get_linting_report_signed_url(request={
"document_checksum": "<value>",
})
assert res.signed_access is not None
# Handle response
print(res.signed_access)
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.GetLintingReportSignedURLRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.GetLintingReportSignedURLResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.SDKError | 4XX, 5XX | */* |
Upload a report.
from speakeasy_client_sdk_python import Speakeasy
from speakeasy_client_sdk_python.models import shared
with Speakeasy(
security=shared.Security(
api_key="<YOUR_API_KEY_HERE>",
),
) as speakeasy:
res = speakeasy.reports.upload_report(request={
"data": {},
"file": {
"content": open("example.file", "rb"),
"file_name": "example.file",
},
})
assert res.uploaded_report is not None
# Handle response
print(res.uploaded_report)
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.UploadReportRequestBody | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.UploadReportResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.SDKError | 4XX, 5XX | */* |