feat(api): OpenAPI spec update via Stainless API (#1188)

This commit is contained in:
stainless-app[bot] 2024-07-15 20:14:47 +00:00 committed by stainless-bot
parent c2e0647baf
commit 90ce238bfa
4 changed files with 20 additions and 25 deletions

View file

@ -1,2 +1,2 @@
configured_endpoints: 1256
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7bc261aaae82e045d5b257d76a8e4dedcc8102a8b20f0d32d091e41296624124.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8698fc16cc1cd7549c7f51bf3f3118b80e198b25fee1f20e4aaeb226608dafd1.yml

View file

@ -1,5 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from typing_extensions import Literal
from ..._models import BaseModel
@ -14,11 +15,14 @@ class Configuration(BaseModel):
host: str
"""The host (hostname or IP) of your origin database."""
port: int
"""The port (default: 5432 for Postgres) of your origin database."""
scheme: Literal["postgres", "postgresql", "mysql"]
"""Specifies the URL scheme used to connect to your origin database."""
user: str
"""The user of your origin database."""
access_client_id: Optional[str] = None
"""The Client ID of the Access token to use when connecting to the origin database"""
port: Optional[int] = None
"""The port (default: 5432 for Postgres) of your origin database."""

View file

@ -14,11 +14,14 @@ class ConfigurationParam(TypedDict, total=False):
host: Required[str]
"""The host (hostname or IP) of your origin database."""
port: Required[int]
"""The port (default: 5432 for Postgres) of your origin database."""
scheme: Required[Literal["postgres", "postgresql", "mysql"]]
"""Specifies the URL scheme used to connect to your origin database."""
user: Required[str]
"""The user of your origin database."""
access_client_id: str
"""The Client ID of the Access token to use when connecting to the origin database"""
port: int
"""The port (default: 5432 for Postgres) of your origin database."""

View file

@ -30,7 +30,6 @@ class TestConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -44,6 +43,7 @@ class TestConfigs:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
name="example-hyperdrive",
origin={
"access_client_id": "0123456789abcdef0123456789abcdef.access",
"database": "postgres",
"host": "database.example.com",
"port": 5432,
@ -67,7 +67,6 @@ class TestConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -87,7 +86,6 @@ class TestConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -110,7 +108,6 @@ class TestConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -126,7 +123,6 @@ class TestConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -141,6 +137,7 @@ class TestConfigs:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
name="example-hyperdrive",
origin={
"access_client_id": "0123456789abcdef0123456789abcdef.access",
"database": "postgres",
"host": "database.example.com",
"port": 5432,
@ -165,7 +162,6 @@ class TestConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -186,7 +182,6 @@ class TestConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -210,7 +205,6 @@ class TestConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -224,7 +218,6 @@ class TestConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -338,6 +331,7 @@ class TestConfigs:
},
name="example-hyperdrive",
origin={
"access_client_id": "0123456789abcdef0123456789abcdef.access",
"database": "postgres",
"host": "database.example.com",
"port": 5432,
@ -451,7 +445,6 @@ class TestAsyncConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -465,6 +458,7 @@ class TestAsyncConfigs:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
name="example-hyperdrive",
origin={
"access_client_id": "0123456789abcdef0123456789abcdef.access",
"database": "postgres",
"host": "database.example.com",
"port": 5432,
@ -488,7 +482,6 @@ class TestAsyncConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -508,7 +501,6 @@ class TestAsyncConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -531,7 +523,6 @@ class TestAsyncConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -547,7 +538,6 @@ class TestAsyncConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -562,6 +552,7 @@ class TestAsyncConfigs:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
name="example-hyperdrive",
origin={
"access_client_id": "0123456789abcdef0123456789abcdef.access",
"database": "postgres",
"host": "database.example.com",
"port": 5432,
@ -586,7 +577,6 @@ class TestAsyncConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -607,7 +597,6 @@ class TestAsyncConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -631,7 +620,6 @@ class TestAsyncConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -645,7 +633,6 @@ class TestAsyncConfigs:
origin={
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres",
},
@ -759,6 +746,7 @@ class TestAsyncConfigs:
},
name="example-hyperdrive",
origin={
"access_client_id": "0123456789abcdef0123456789abcdef.access",
"database": "postgres",
"host": "database.example.com",
"port": 5432,