-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathgetdestination.py
More file actions
30 lines (21 loc) · 1.27 KB
/
getdestination.py
File metadata and controls
30 lines (21 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..models import destinationresponse as models_destinationresponse
from typing import Optional
@dataclasses.dataclass
class GetDestinationRequest:
destination_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'destinationId', 'style': 'simple', 'explode': False }})
include_secret_coordinates: Optional[bool] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'includeSecretCoordinates', 'style': 'form', 'explode': True }})
r"""Rather than return *** for secret properties include the secret coordinate information"""
@dataclasses.dataclass
class GetDestinationResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
raw_response: requests_http.Response = dataclasses.field()
r"""Raw HTTP response; suitable for custom response parsing"""
destination_response: Optional[models_destinationresponse.DestinationResponse] = dataclasses.field(default=None)
r"""Get a Destination by the id in the path."""