Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.3
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 29, 2023
1 parent 95de351 commit e9e9882
Show file tree
Hide file tree
Showing 14 changed files with 109 additions and 41 deletions.
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,12 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.5.1] .
- [python v0.5.1] .

## 2023-09-29 01:12:54
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.6.0] .
6 changes: 3 additions & 3 deletions docs/models/operations/createpetsresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `error` | [Optional[shared.Error]](../../models/shared/error.md) | :heavy_minus_sign: | unexpected error |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation |
| `error` | [Optional[shared.Error]](undefined/models/shared/error.md) | :heavy_minus_sign: | unexpected error |
| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
8 changes: 4 additions & 4 deletions docs/models/operations/listpetsresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `error` | [Optional[shared.Error]](../../models/shared/error.md) | :heavy_minus_sign: | unexpected error |
| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation |
| `error` | [Optional[shared.Error]](undefined/models/shared/error.md) | :heavy_minus_sign: | unexpected error |
| `headers` | dict[str, list[*str*]] | :heavy_minus_sign: | N/A |
| `pets` | list[[shared.Pet](../../models/shared/pet.md)] | :heavy_minus_sign: | A paged array of pets |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `pets` | list[[shared.Pet](undefined/models/shared/pet.md)] | :heavy_minus_sign: | A paged array of pets |
| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
2 changes: 1 addition & 1 deletion docs/models/operations/showpetbyidrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

| Field | Type | Required | Description |
| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- |
| `pet_id` | *str* | :heavy_check_mark: | The id of the pet to retrieve |
| `pet_id` | *Optional[str]* | :heavy_check_mark: | The id of the pet to retrieve |
8 changes: 4 additions & 4 deletions docs/models/operations/showpetbyidresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `error` | [Optional[shared.Error]](../../models/shared/error.md) | :heavy_minus_sign: | unexpected error |
| `pet` | [Optional[shared.Pet]](../../models/shared/pet.md) | :heavy_minus_sign: | Expected response to a valid request |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation |
| `error` | [Optional[shared.Error]](undefined/models/shared/error.md) | :heavy_minus_sign: | unexpected error |
| `pet` | [Optional[shared.Pet]](undefined/models/shared/pet.md) | :heavy_minus_sign: | Expected response to a valid request |
| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
4 changes: 2 additions & 2 deletions docs/models/shared/error.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `code` | *int* | :heavy_check_mark: | N/A |
| `message` | *str* | :heavy_check_mark: | N/A |
| `code` | *Optional[int]* | :heavy_check_mark: | N/A |
| `message` | *Optional[str]* | :heavy_check_mark: | N/A |
4 changes: 2 additions & 2 deletions docs/models/shared/pet.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `id` | *int* | :heavy_check_mark: | N/A |
| `name` | *str* | :heavy_check_mark: | N/A |
| `id` | *Optional[int]* | :heavy_check_mark: | N/A |
| `name` | *Optional[str]* | :heavy_check_mark: | N/A |
| `tag` | *Optional[str]* | :heavy_minus_sign: | N/A |
4 changes: 2 additions & 2 deletions docs/sdks/pets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ from test.models import operations
s = test.Test()

req = operations.ListPetsRequest(
limit=548814,
limit=21453,
)

res = s.pets.list_pets(req)
Expand Down Expand Up @@ -79,7 +79,7 @@ from test.models import operations
s = test.Test()

req = operations.ShowPetByIDRequest(
pet_id='provident',
pet_id='South bandwidth male',
)

res = s.pets.show_pet_by_id(req)
Expand Down
8 changes: 4 additions & 4 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ configVersion: 1.0.0
management:
docChecksum: 2516596125ef223fbbef6c434d22eaac
docVersion: 1.0.0
speakeasyVersion: 1.91.2
generationVersion: 2.131.1
speakeasyVersion: 1.91.3
generationVersion: 2.139.1
generation:
comments:
disableComments: false
Expand All @@ -14,10 +14,10 @@ generation:
tagNamespacingDisabled: false
features:
python:
core: 2.86.1
core: 2.87.0
globalServerURLs: 2.82.0
python:
version: 0.5.1
version: 0.6.0
author: my-test
clientServerStatusCodesAsErrors: true
description: Python Client SDK Generated by Speakeasy
Expand Down
4 changes: 2 additions & 2 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ argument-naming-style=snake_case
#argument-rgx=

# Naming style matching correct attribute names.
attr-naming-style=snake_case
#attr-naming-style=snake_case

# Regular expression matching correct attribute names. Overrides attr-naming-
# style. If left empty, attribute names will be checked with the set naming
# style.
#attr-rgx=
attr-rgx=[^\W\d][^\W]*|__.*__$

# Bad variable names which should always be refused, separated by a comma.
bad-names=
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.5.1",
version="0.6.0",
author="my-test",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
6 changes: 3 additions & 3 deletions src/test/pets.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def create_pets(self) -> operations.CreatePetsResponse:
url = base_url + '/pets'
headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}'
headers['user-agent'] = self.sdk_configuration.user_agent

client = self.sdk_configuration.client

Expand Down Expand Up @@ -50,7 +50,7 @@ def list_pets(self, request: operations.ListPetsRequest) -> operations.ListPetsR
headers = {}
query_params = utils.get_query_params(operations.ListPetsRequest, request)
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}'
headers['user-agent'] = self.sdk_configuration.user_agent

client = self.sdk_configuration.client

Expand Down Expand Up @@ -86,7 +86,7 @@ def show_pet_by_id(self, request: operations.ShowPetByIDRequest) -> operations.S
url = utils.generate_url(operations.ShowPetByIDRequest, base_url, '/pets/{petId}', request)
headers = {}
headers['Accept'] = 'application/json'
headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}'
headers['user-agent'] = self.sdk_configuration.user_agent

client = self.sdk_configuration.client

Expand Down
5 changes: 3 additions & 2 deletions src/test/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ class SDKConfiguration:
server_idx: int = 0
language: str = 'python'
openapi_doc_version: str = '1.0.0'
sdk_version: str = '0.5.1'
gen_version: str = '2.131.1'
sdk_version: str = '0.6.0'
gen_version: str = '2.139.1'
user_agent: str = 'speakeasy-sdk/python 0.6.0 2.139.1 1.0.0 test'
retry_config: RetryConfig = None

def get_server_details(self) -> tuple[str, dict[str, str]]:
Expand Down
Loading

0 comments on commit e9e9882

Please sign in to comment.