Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.114.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 7, 2023
1 parent aacec3a commit 023c905
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 42 deletions.
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pip install git+https://github.com/speakeasy-sdks/test-repo-test2.git
```python
import test


s = test.Test()


Expand All @@ -29,7 +28,7 @@ if res.status_code == 200:
## Available Resources and Operations


### [pets](docs/sdks/pets/README.md)
### [.pets](docs/sdks/pets/README.md)

* [create_pets](docs/sdks/pets/README.md#create_pets) - Create a pet
* [list_pets](docs/sdks/pets/README.md#list_pets) - List all pets
Expand Down Expand Up @@ -60,8 +59,6 @@ Here's an example of one such pagination call:
# Error Handling

Handling errors in your SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.


<!-- End Error Handling -->


Expand All @@ -79,13 +76,11 @@ You can override the default server globally by passing a server index to the `s

For example:


```python
import test


s = test.Test(
server_idx=0
server_idx=0,
)


Expand All @@ -101,13 +96,11 @@ if res.status_code == 200:

The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:


```python
import test


s = test.Test(
server_url="http://petstore.swagger.io/v1"
server_url="http://petstore.swagger.io/v1",
)


Expand Down Expand Up @@ -137,8 +130,6 @@ http_client = requests.Session()
http_client.headers.update({'x-custom-header': 'someValue'})
s = test.Test(client: http_client)
```


<!-- End Custom HTTP Client -->

<!-- Placeholder for Future Speakeasy SDK Sections -->
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,12 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.109.0 (2.173.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.9.1] .
- [python v0.9.1] .

## 2023-11-07 01:15:30
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.114.1 (2.181.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.10.0] .
1 change: 0 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
```python
import test


s = test.Test()


Expand Down
3 changes: 1 addition & 2 deletions docs/sdks/pets/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Pets
(*pets*)
(*.pets*)

### Available Operations

Expand All @@ -16,7 +16,6 @@ Create a pet
```python
import test


s = test.Test()


Expand Down
8 changes: 4 additions & 4 deletions files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ src/test/sdk.py
pylintrc
setup.py
src/test/__init__.py
src/test/models/__init__.py
src/test/models/errors/sdkerror.py
src/test/utils/__init__.py
src/test/utils/retries.py
src/test/utils/utils.py
src/test/models/errors/sdkerror.py
src/test/models/operations/createpets.py
src/test/models/operations/listpets.py
src/test/models/operations/showpetbyid.py
src/test/models/operations/__init__.py
src/test/models/shared/error.py
src/test/models/shared/pet.py
src/test/models/shared/__init__.py
src/test/models/__init__.py
src/test/models/errors/__init__.py
src/test/models/operations/__init__.py
src/test/models/shared/__init__.py
USAGE.md
docs/models/operations/createpetsresponse.md
docs/models/operations/listpetsrequest.md
Expand Down
25 changes: 14 additions & 11 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,30 @@ configVersion: 1.0.0
management:
docChecksum: 2516596125ef223fbbef6c434d22eaac
docVersion: 1.0.0
speakeasyVersion: 1.109.0
generationVersion: 2.173.0
speakeasyVersion: 1.114.1
generationVersion: 2.181.1
generation:
comments:
disableComments: false
omitDescriptionIfSummaryPresent: false
baseServerURL: ""
repoURL: https://github.com/speakeasy-sdks/test-repo-test2.git
comments: {}
sdkClassName: test
singleTagPerOp: false
tagNamespacingDisabled: false
repoURL: https://github.com/speakeasy-sdks/test-repo-test2.git
features:
python:
core: 3.3.1
core: 4.1.0
globalServerURLs: 2.82.0
python:
version: 0.9.1
version: 0.10.0
author: my-test
clientServerStatusCodesAsErrors: true
description: Python Client SDK Generated by Speakeasy
flattenGlobalSecurity: true
imports:
option: openapi
paths:
callbacks: models/callbacks
errors: models/errors
operations: models/operations
shared: models/shared
webhooks: models/webhooks
installationURL: https://github.com/speakeasy-sdks/test-repo-test2.git
maxMethodParams: 0
packageName: test
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="test",
version="0.9.1",
version="0.10.0",
author="my-test",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
3 changes: 2 additions & 1 deletion src/test/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

# __init__.py

# package
3 changes: 2 additions & 1 deletion src/test/models/errors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

from .sdkerror import SDKError
from .sdkerror import *

__all__ = ["SDKError"]
2 changes: 1 addition & 1 deletion src/test/models/operations/createpets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import error as shared_error
from ...models.shared import error as shared_error
from typing import Optional


Expand Down
4 changes: 2 additions & 2 deletions src/test/models/operations/listpets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import error as shared_error
from ..shared import pet as shared_pet
from ...models.shared import error as shared_error
from ...models.shared import pet as shared_pet
from typing import Dict, List, Optional


Expand Down
4 changes: 2 additions & 2 deletions src/test/models/operations/showpetbyid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ..shared import error as shared_error
from ..shared import pet as shared_pet
from ...models.shared import error as shared_error
from ...models.shared import pet as shared_pet
from typing import Optional


Expand Down
6 changes: 3 additions & 3 deletions src/test/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class SDKConfiguration:
server_idx: int = 0
language: str = 'python'
openapi_doc_version: str = '1.0.0'
sdk_version: str = '0.9.1'
gen_version: str = '2.173.0'
user_agent: str = 'speakeasy-sdk/python 0.9.1 2.173.0 1.0.0 test'
sdk_version: str = '0.10.0'
gen_version: str = '2.181.1'
user_agent: str = 'speakeasy-sdk/python 0.10.0 2.181.1 1.0.0 test'
retry_config: RetryConfig = None

def get_server_details(self) -> Tuple[str, Dict[str, str]]:
Expand Down

0 comments on commit 023c905

Please sign in to comment.