mirror of
https://github.com/LukeHagar/speakeasy-playground.git
synced 2025-12-06 12:47:46 +00:00
generate speakeasy sdk
This commit is contained in:
26
src/shippo/models/operations/example.py
Normal file
26
src/shippo/models/operations/example.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import dataclasses
|
||||
import requests as requests_http
|
||||
from typing import Optional
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class ExampleRequest:
|
||||
results_per_page: Optional[int] = dataclasses.field(default=25, metadata={'query_param': { 'field_name': 'results_per_page', 'style': 'form', 'explode': True }})
|
||||
r"""The number of results to return per page (max 100)"""
|
||||
|
||||
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class ExampleResponse:
|
||||
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"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user