thousandeyes-sdk-python/thousandeyes-sdk-bgp-updates/test/mock_manifest.py
api-team-automation[bot] d4b7ca82b7
Some checks failed
Python CI / build (push) Has been cancelled
[GitHub Bot] Generated python SDK (#193)
Co-authored-by: API Team <api-team@thousandeyes.com>
2026-09-08 13:15:25 +01:00

207 lines
6.6 KiB
Python

# coding: utf-8
"""
BGP Updates API
Retrieve BGP updates observed by BGP monitors tracking prefixes in your ThousandEyes account group.
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import json
from sdk_test_support.mock_server_types import ErrorResponseExpectation, OperationExpectation
OPERATION_MANIFEST = {
"get_bgp_updates": OperationExpectation(
operation_id="get_bgp_updates",
method="GET",
path="/bgp/updates",
path_param_examples={
},
success_status=200,
success_body=json.loads("""
{
"_links" : {
"next" : {
"hreflang" : "hreflang",
"templated" : true,
"profile" : "profile",
"name" : "name",
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
"type" : "type",
"deprecation" : "deprecation",
"title" : "title"
},
"previous" : {
"hreflang" : "hreflang",
"templated" : true,
"profile" : "profile",
"name" : "name",
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
"type" : "type",
"deprecation" : "deprecation",
"title" : "title"
},
"self" : {
"hreflang" : "hreflang",
"templated" : true,
"profile" : "profile",
"name" : "name",
"href" : "https://api.thousandeyes.com/v7/link/to/resource/id",
"type" : "type",
"deprecation" : "deprecation",
"title" : "title"
}
},
"updates" : [ {
"monitorId" : "101",
"prefix" : "192.0.2.0/24",
"asPath" : [ 64512, 64513 ],
"originAs" : 64512,
"monitor" : {
"monitorId" : "101",
"ipAddress" : "10.0.0.1",
"asn" : 64512,
"monitorType" : "private",
"monitorName" : "Private monitor",
"countryId" : "US"
},
"rpkiStatus" : "Valid",
"communities" : [ "64512:100" ],
"updateType" : "announcement",
"timestamp" : "2024-05-31T16:08:37Z"
}, {
"monitorId" : "101",
"prefix" : "192.0.2.0/24",
"asPath" : [ 64512, 64513 ],
"originAs" : 64512,
"monitor" : {
"monitorId" : "101",
"ipAddress" : "10.0.0.1",
"asn" : 64512,
"monitorType" : "private",
"monitorName" : "Private monitor",
"countryId" : "US"
},
"rpkiStatus" : "Valid",
"communities" : [ "64512:100" ],
"updateType" : "announcement",
"timestamp" : "2024-05-31T16:08:37Z"
} ]
}
"""),
success_content_type="application/json",
request_body_example=None,
error_responses={
"400": ErrorResponseExpectation(
status=400,
body=json.loads("""
{
"instance" : "instance",
"detail" : "detail",
"type" : "type",
"title" : "title",
"errors" : [ {
"code" : "code",
"field" : "field",
"message" : "message"
}, {
"code" : "code",
"field" : "field",
"message" : "message"
} ],
"status" : 0
}"""),
content_type="application/json",
),
"401": ErrorResponseExpectation(
status=401,
body=json.loads("""
{
"error_description" : "Invalid access token",
"error" : "invalid_token"
}"""),
content_type="application/json",
),
"403": ErrorResponseExpectation(
status=403,
body=json.loads("""
{
"instance" : "instance",
"detail" : "detail",
"type" : "type",
"title" : "title",
"status" : 6
}"""),
content_type="application/json",
),
"404": ErrorResponseExpectation(
status=404,
body=json.loads("""
{
"instance" : "instance",
"detail" : "detail",
"type" : "type",
"title" : "title",
"status" : 6
}"""),
content_type="application/json",
),
"429": ErrorResponseExpectation(
status=429,
body=json.loads("""
{
"instance" : "instance",
"detail" : "detail",
"type" : "type",
"title" : "title",
"status" : 6
}"""),
content_type="application/json",
),
"500": ErrorResponseExpectation(
status=500,
body=json.loads("""
{
"instance" : "instance",
"detail" : "detail",
"type" : "type",
"title" : "title",
"status" : 6
}"""),
content_type="application/json",
),
"502": ErrorResponseExpectation(
status=502,
body=json.loads("""
{
"instance" : "instance",
"detail" : "detail",
"type" : "type",
"title" : "title",
"status" : 6
}"""),
content_type="application/json",
),
},
),
}