Skip to content

Commit 456dd81

Browse files
feat: sdk generation alignment
1 parent 22f1fae commit 456dd81

File tree

156 files changed

+3689
-3771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+3689
-3771
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ docs/UpdateChanges.md
188188
docs/UpdateLogFileApi.md
189189
docs/UpdateMechanism.md
190190
docs/UpdateResource.md
191-
docs/Version.md
191+
pyproject.toml
192192
setup.cfg
193193
setup.py
194194
sonarr/__init__.py
@@ -384,5 +384,4 @@ sonarr/models/unmapped_folder.py
384384
sonarr/models/update_changes.py
385385
sonarr/models/update_mechanism.py
386386
sonarr/models/update_resource.py
387-
sonarr/models/version.py
388387
sonarr/rest.py

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.3.0-SNAPSHOT
1+
6.5.0-SNAPSHOT

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ Sonarr API docs
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6+
[comment]: # (x-release-please-start-version)
7+
- Package version: 0.5.0
8+
9+
[comment]: # (x-release-please-end)
610
- API version: 3.0.0
7-
- Package version: 0.6.0
11+
812
- Build package: org.openapitools.codegen.languages.PythonNextgenClientCodegen
913

1014
## Requirements.
@@ -63,18 +67,18 @@ configuration = sonarr.Configuration(
6367
# Examples for each auth method are provided below, use the example that
6468
# satisfies your auth use case.
6569

66-
# Configure API key authorization: X-Api-Key
67-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
68-
69-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
70-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
71-
7270
# Configure API key authorization: apikey
7371
configuration.api_key['apikey'] = os.environ["API_KEY"]
7472

7573
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
7674
# configuration.api_key_prefix['apikey'] = 'Bearer'
7775

76+
# Configure API key authorization: X-Api-Key
77+
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
78+
79+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
80+
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
81+
7882

7983
# Enter a context with an instance of the API client
8084
with sonarr.ApiClient(configuration) as api_client:
@@ -444,7 +448,6 @@ Class | Method | HTTP request | Description
444448
- [UpdateChanges](docs/UpdateChanges.md)
445449
- [UpdateMechanism](docs/UpdateMechanism.md)
446450
- [UpdateResource](docs/UpdateResource.md)
447-
- [Version](docs/Version.md)
448451

449452

450453
## Documentation For Authorization

docs/ApiInfoApi.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Method | HTTP request | Description
1414

1515
### Example
1616

17-
* Api Key Authentication (X-Api-Key):
17+
* Api Key Authentication (apikey):
1818
```python
1919
from __future__ import print_function
2020
import time
@@ -33,18 +33,18 @@ configuration = sonarr.Configuration(
3333
# Examples for each auth method are provided below, use the example that
3434
# satisfies your auth use case.
3535

36-
# Configure API key authorization: X-Api-Key
37-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
38-
39-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
40-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
41-
4236
# Configure API key authorization: apikey
4337
configuration.api_key['apikey'] = os.environ["API_KEY"]
4438

4539
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
4640
# configuration.api_key_prefix['apikey'] = 'Bearer'
4741

42+
# Configure API key authorization: X-Api-Key
43+
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
44+
45+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
46+
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
47+
4848
# Enter a context with an instance of the API client
4949
with sonarr.ApiClient(configuration) as api_client:
5050
# Create an instance of the API class
@@ -56,7 +56,7 @@ with sonarr.ApiClient(configuration) as api_client:
5656
print("Exception when calling ApiInfoApi->get_api: %s\n" % e)
5757
```
5858

59-
* Api Key Authentication (apikey):
59+
* Api Key Authentication (X-Api-Key):
6060
```python
6161
from __future__ import print_function
6262
import time
@@ -75,18 +75,18 @@ configuration = sonarr.Configuration(
7575
# Examples for each auth method are provided below, use the example that
7676
# satisfies your auth use case.
7777

78-
# Configure API key authorization: X-Api-Key
79-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
80-
81-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
82-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
83-
8478
# Configure API key authorization: apikey
8579
configuration.api_key['apikey'] = os.environ["API_KEY"]
8680

8781
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
8882
# configuration.api_key_prefix['apikey'] = 'Bearer'
8983

84+
# Configure API key authorization: X-Api-Key
85+
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
86+
87+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
88+
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
89+
9090
# Enter a context with an instance of the API client
9191
with sonarr.ApiClient(configuration) as api_client:
9292
# Create an instance of the API class
@@ -107,7 +107,7 @@ void (empty response body)
107107

108108
### Authorization
109109

110-
[X-Api-Key](../README.md#X-Api-Key), [apikey](../README.md#apikey)
110+
[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)
111111

112112
### HTTP request headers
113113

docs/AuthenticationApi.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Method | HTTP request | Description
1515

1616
### Example
1717

18-
* Api Key Authentication (X-Api-Key):
18+
* Api Key Authentication (apikey):
1919
```python
2020
from __future__ import print_function
2121
import time
@@ -34,18 +34,18 @@ configuration = sonarr.Configuration(
3434
# Examples for each auth method are provided below, use the example that
3535
# satisfies your auth use case.
3636

37-
# Configure API key authorization: X-Api-Key
38-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
39-
40-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
41-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
42-
4337
# Configure API key authorization: apikey
4438
configuration.api_key['apikey'] = os.environ["API_KEY"]
4539

4640
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
4741
# configuration.api_key_prefix['apikey'] = 'Bearer'
4842

43+
# Configure API key authorization: X-Api-Key
44+
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
45+
46+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
47+
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
48+
4949
# Enter a context with an instance of the API client
5050
with sonarr.ApiClient(configuration) as api_client:
5151
# Create an instance of the API class
@@ -61,7 +61,7 @@ with sonarr.ApiClient(configuration) as api_client:
6161
print("Exception when calling AuthenticationApi->create_login: %s\n" % e)
6262
```
6363

64-
* Api Key Authentication (apikey):
64+
* Api Key Authentication (X-Api-Key):
6565
```python
6666
from __future__ import print_function
6767
import time
@@ -80,18 +80,18 @@ configuration = sonarr.Configuration(
8080
# Examples for each auth method are provided below, use the example that
8181
# satisfies your auth use case.
8282

83-
# Configure API key authorization: X-Api-Key
84-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
85-
86-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
87-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
88-
8983
# Configure API key authorization: apikey
9084
configuration.api_key['apikey'] = os.environ["API_KEY"]
9185

9286
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
9387
# configuration.api_key_prefix['apikey'] = 'Bearer'
9488

89+
# Configure API key authorization: X-Api-Key
90+
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
91+
92+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
93+
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
94+
9595
# Enter a context with an instance of the API client
9696
with sonarr.ApiClient(configuration) as api_client:
9797
# Create an instance of the API class
@@ -122,7 +122,7 @@ void (empty response body)
122122

123123
### Authorization
124124

125-
[X-Api-Key](../README.md#X-Api-Key), [apikey](../README.md#apikey)
125+
[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)
126126

127127
### HTTP request headers
128128

@@ -143,7 +143,7 @@ void (empty response body)
143143

144144
### Example
145145

146-
* Api Key Authentication (X-Api-Key):
146+
* Api Key Authentication (apikey):
147147
```python
148148
from __future__ import print_function
149149
import time
@@ -162,18 +162,18 @@ configuration = sonarr.Configuration(
162162
# Examples for each auth method are provided below, use the example that
163163
# satisfies your auth use case.
164164

165-
# Configure API key authorization: X-Api-Key
166-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
167-
168-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
169-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
170-
171165
# Configure API key authorization: apikey
172166
configuration.api_key['apikey'] = os.environ["API_KEY"]
173167

174168
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
175169
# configuration.api_key_prefix['apikey'] = 'Bearer'
176170

171+
# Configure API key authorization: X-Api-Key
172+
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
173+
174+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
175+
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
176+
177177
# Enter a context with an instance of the API client
178178
with sonarr.ApiClient(configuration) as api_client:
179179
# Create an instance of the API class
@@ -185,7 +185,7 @@ with sonarr.ApiClient(configuration) as api_client:
185185
print("Exception when calling AuthenticationApi->get_logout: %s\n" % e)
186186
```
187187

188-
* Api Key Authentication (apikey):
188+
* Api Key Authentication (X-Api-Key):
189189
```python
190190
from __future__ import print_function
191191
import time
@@ -204,18 +204,18 @@ configuration = sonarr.Configuration(
204204
# Examples for each auth method are provided below, use the example that
205205
# satisfies your auth use case.
206206

207-
# Configure API key authorization: X-Api-Key
208-
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
209-
210-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
211-
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
212-
213207
# Configure API key authorization: apikey
214208
configuration.api_key['apikey'] = os.environ["API_KEY"]
215209

216210
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
217211
# configuration.api_key_prefix['apikey'] = 'Bearer'
218212

213+
# Configure API key authorization: X-Api-Key
214+
configuration.api_key['X-Api-Key'] = os.environ["API_KEY"]
215+
216+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
217+
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
218+
219219
# Enter a context with an instance of the API client
220220
with sonarr.ApiClient(configuration) as api_client:
221221
# Create an instance of the API class
@@ -236,7 +236,7 @@ void (empty response body)
236236

237237
### Authorization
238238

239-
[X-Api-Key](../README.md#X-Api-Key), [apikey](../README.md#apikey)
239+
[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)
240240

241241
### HTTP request headers
242242

0 commit comments

Comments
 (0)