# coding: utf-8 """ Test Snapshots API Creates a new test snapshot in ThousandEyes. 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 = { "create_test_snapshot": OperationExpectation( operation_id="create_test_snapshot", method="POST", path="/tests/{testId}/snapshot", path_param_examples={ "testId": '202701', }, success_status=201, success_body=json.loads(""" { "shareDate" : "2023-06-06T00:00:00Z", "uid" : "281474976810911", "test" : { "_links" : { "testResults" : [ { "href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/network" }, { "href" : "https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis" } ], "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" } }, "liveShare" : false, "savedEvent" : true, "description" : "ThousandEyes Test", "type" : "agent-to-server", "enabled" : true, "createdDate" : "2022-07-17T22:00:54Z", "createdBy" : "user@user.com", "modifiedDate" : "2022-07-17T22:00:54Z", "interval" : 60, "modifiedBy" : "user@user.com", "testId" : "281474976710706", "alertsEnabled" : true, "testName" : "ThousandEyes Test" }, "_links" : { "appLink" : { "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" } }, "startRoundId" : 1538784000, "displayName" : "Snapshot created through API", "endRoundId" : 1538787600, "testId" : "281474976710801", "extraParams" : "params", "id" : "wdiac", "roundId" : 1538784000, "sourceTestId" : "281474976710706" } """), success_content_type="application/json", request_body_example=json.loads(""" { "endDate" : "2023-06-06T01:00:00Z", "displayName" : "Snapshot created through API", "isPublic" : false, "startDate" : "2023-06-06T00:00:00Z" } """), 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", ), }, ), }