Skip to content

Commit 0867303

Browse files
Merge pull request #63 from devopsarr/feature/code-generation
fix: map Field to ContractField to avoid pydantic issue
2 parents ad221cc + 73829ad commit 0867303

19 files changed

+80
-35
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ Class | Method | HTTP request | Description
343343
- [CommandResult](docs/CommandResult.md)
344344
- [CommandStatus](docs/CommandStatus.md)
345345
- [CommandTrigger](docs/CommandTrigger.md)
346+
- [ContractField](docs/ContractField.md)
346347
- [CustomFilterResource](docs/CustomFilterResource.md)
347348
- [CustomFormatResource](docs/CustomFormatResource.md)
348349
- [CustomFormatSpecificationSchema](docs/CustomFormatSpecificationSchema.md)
@@ -360,7 +361,6 @@ Class | Method | HTTP request | Description
360361
- [EpisodeResourcePagingResource](docs/EpisodeResourcePagingResource.md)
361362
- [EpisodeTitleRequiredType](docs/EpisodeTitleRequiredType.md)
362363
- [EpisodesMonitoredResource](docs/EpisodesMonitoredResource.md)
363-
- [Field](docs/Field.md)
364364
- [FileDateType](docs/FileDateType.md)
365365
- [HealthCheckResult](docs/HealthCheckResult.md)
366366
- [HealthResource](docs/HealthResource.md)

docs/AutoTaggingSpecificationSchema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**implementation_name** | **str** | | [optional]
1212
**negate** | **bool** | | [optional]
1313
**required** | **bool** | | [optional]
14-
**fields** | [**List[Field]**](Field.md) | | [optional]
14+
**fields** | [**List[ContractField]**](ContractField.md) | | [optional]
1515

1616
## Example
1717

docs/ContractField.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# ContractField
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**order** | **int** | | [optional]
9+
**name** | **str** | | [optional]
10+
**label** | **str** | | [optional]
11+
**unit** | **str** | | [optional]
12+
**help_text** | **str** | | [optional]
13+
**help_text_warning** | **str** | | [optional]
14+
**help_link** | **str** | | [optional]
15+
**value** | **object** | | [optional]
16+
**type** | **str** | | [optional]
17+
**advanced** | **bool** | | [optional]
18+
**select_options** | [**List[SelectOption]**](SelectOption.md) | | [optional]
19+
**select_options_provider_action** | **str** | | [optional]
20+
**section** | **str** | | [optional]
21+
**hidden** | **str** | | [optional]
22+
**privacy** | [**PrivacyLevel**](PrivacyLevel.md) | | [optional]
23+
**placeholder** | **str** | | [optional]
24+
**is_float** | **bool** | | [optional]
25+
26+
## Example
27+
28+
```python
29+
from sonarr.models.contract_field import ContractField
30+
31+
# TODO update the JSON string below
32+
json = "{}"
33+
# create an instance of ContractField from a JSON string
34+
contract_field_instance = ContractField.from_json(json)
35+
# print the JSON string representation of the object
36+
print ContractField.to_json()
37+
38+
# convert the object into a dict
39+
contract_field_dict = contract_field_instance.to_dict()
40+
# create an instance of ContractField from a dict
41+
contract_field_form_dict = contract_field.from_dict(contract_field_dict)
42+
```
43+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
44+
45+

docs/CustomFormatSpecificationSchema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**info_link** | **str** | | [optional]
1313
**negate** | **bool** | | [optional]
1414
**required** | **bool** | | [optional]
15-
**fields** | [**List[Field]**](Field.md) | | [optional]
15+
**fields** | [**List[ContractField]**](ContractField.md) | | [optional]
1616
**presets** | [**List[CustomFormatSpecificationSchema]**](CustomFormatSpecificationSchema.md) | | [optional]
1717

1818
## Example

docs/DownloadClientResource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**id** | **int** | | [optional]
99
**name** | **str** | | [optional]
10-
**fields** | [**List[Field]**](Field.md) | | [optional]
10+
**fields** | [**List[ContractField]**](ContractField.md) | | [optional]
1111
**implementation_name** | **str** | | [optional]
1212
**implementation** | **str** | | [optional]
1313
**config_contract** | **str** | | [optional]

docs/ImportListResource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**id** | **int** | | [optional]
99
**name** | **str** | | [optional]
10-
**fields** | [**List[Field]**](Field.md) | | [optional]
10+
**fields** | [**List[ContractField]**](ContractField.md) | | [optional]
1111
**implementation_name** | **str** | | [optional]
1212
**implementation** | **str** | | [optional]
1313
**config_contract** | **str** | | [optional]

docs/IndexerResource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**id** | **int** | | [optional]
99
**name** | **str** | | [optional]
10-
**fields** | [**List[Field]**](Field.md) | | [optional]
10+
**fields** | [**List[ContractField]**](ContractField.md) | | [optional]
1111
**implementation_name** | **str** | | [optional]
1212
**implementation** | **str** | | [optional]
1313
**config_contract** | **str** | | [optional]

docs/MetadataResource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**id** | **int** | | [optional]
99
**name** | **str** | | [optional]
10-
**fields** | [**List[Field]**](Field.md) | | [optional]
10+
**fields** | [**List[ContractField]**](ContractField.md) | | [optional]
1111
**implementation_name** | **str** | | [optional]
1212
**implementation** | **str** | | [optional]
1313
**config_contract** | **str** | | [optional]

docs/NotificationResource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**id** | **int** | | [optional]
99
**name** | **str** | | [optional]
10-
**fields** | [**List[Field]**](Field.md) | | [optional]
10+
**fields** | [**List[ContractField]**](ContractField.md) | | [optional]
1111
**implementation_name** | **str** | | [optional]
1212
**implementation** | **str** | | [optional]
1313
**config_contract** | **str** | | [optional]

sonarr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
from sonarr.models.command_result import CommandResult
116116
from sonarr.models.command_status import CommandStatus
117117
from sonarr.models.command_trigger import CommandTrigger
118+
from sonarr.models.contract_field import ContractField
118119
from sonarr.models.custom_filter_resource import CustomFilterResource
119120
from sonarr.models.custom_format_resource import CustomFormatResource
120121
from sonarr.models.custom_format_specification_schema import CustomFormatSpecificationSchema
@@ -132,7 +133,6 @@
132133
from sonarr.models.episode_resource_paging_resource import EpisodeResourcePagingResource
133134
from sonarr.models.episode_title_required_type import EpisodeTitleRequiredType
134135
from sonarr.models.episodes_monitored_resource import EpisodesMonitoredResource
135-
from sonarr.models.field import Field
136136
from sonarr.models.file_date_type import FileDateType
137137
from sonarr.models.health_check_result import HealthCheckResult
138138
from sonarr.models.health_resource import HealthResource

0 commit comments

Comments
 (0)