Skip to content

Commit

Permalink
Merge pull request #45 from devopsarr/feature/code-generation
Browse files Browse the repository at this point in the history
chore(deps): update dependency prowlarr/prowlarr to v1.13.3.4273
  • Loading branch information
devopsarr[bot] committed Feb 14, 2024
2 parents 647419f + be9882f commit d6f06ff
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ Class | Method | HTTP request | Description
- [MusicSearchParam](docs/MusicSearchParam.md)
- [NotificationResource](docs/NotificationResource.md)
- [PingResource](docs/PingResource.md)
- [PrivacyLevel](docs/PrivacyLevel.md)
- [ProviderMessage](docs/ProviderMessage.md)
- [ProviderMessageType](docs/ProviderMessageType.md)
- [ProxyType](docs/ProxyType.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/AppProfileResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Name | Type | Description | Notes
**id** | **int** | | [optional]
**name** | **str** | | [optional]
**enable_rss** | **bool** | | [optional]
**enable_interactive_search** | **bool** | | [optional]
**enable_automatic_search** | **bool** | | [optional]
**enable_interactive_search** | **bool** | | [optional]
**minimum_seeders** | **int** | | [optional]

## Example
Expand Down
1 change: 1 addition & 0 deletions docs/Field.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Name | Type | Description | Notes
**select_options_provider_action** | **str** | | [optional]
**section** | **str** | | [optional]
**hidden** | **str** | | [optional]
**privacy** | [**PrivacyLevel**](PrivacyLevel.md) | | [optional]
**placeholder** | **str** | | [optional]
**is_float** | **bool** | | [optional]

Expand Down
1 change: 1 addition & 0 deletions docs/PrivacyLevel.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

Expand Down
1 change: 1 addition & 0 deletions prowlarr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
from prowlarr.models.music_search_param import MusicSearchParam
from prowlarr.models.notification_resource import NotificationResource
from prowlarr.models.ping_resource import PingResource
from prowlarr.models.privacy_level import PrivacyLevel
from prowlarr.models.provider_message import ProviderMessage
from prowlarr.models.provider_message_type import ProviderMessageType
from prowlarr.models.proxy_type import ProxyType
Expand Down
1 change: 1 addition & 0 deletions prowlarr/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
from prowlarr.models.music_search_param import MusicSearchParam
from prowlarr.models.notification_resource import NotificationResource
from prowlarr.models.ping_resource import PingResource
from prowlarr.models.privacy_level import PrivacyLevel
from prowlarr.models.provider_message import ProviderMessage
from prowlarr.models.provider_message_type import ProviderMessageType
from prowlarr.models.proxy_type import ProxyType
Expand Down
6 changes: 3 additions & 3 deletions prowlarr/models/app_profile_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class AppProfileResource(BaseModel):
id: Optional[StrictInt] = None
name: Optional[StrictStr] = None
enable_rss: Optional[StrictBool] = Field(default=None, alias="enableRss")
enable_interactive_search: Optional[StrictBool] = Field(default=None, alias="enableInteractiveSearch")
enable_automatic_search: Optional[StrictBool] = Field(default=None, alias="enableAutomaticSearch")
enable_interactive_search: Optional[StrictBool] = Field(default=None, alias="enableInteractiveSearch")
minimum_seeders: Optional[StrictInt] = Field(default=None, alias="minimumSeeders")
__properties: ClassVar[List[str]] = ["id", "name", "enableRss", "enableInteractiveSearch", "enableAutomaticSearch", "minimumSeeders"]
__properties: ClassVar[List[str]] = ["id", "name", "enableRss", "enableAutomaticSearch", "enableInteractiveSearch", "minimumSeeders"]

model_config = {
"populate_by_name": True,
Expand Down Expand Up @@ -93,8 +93,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"id": obj.get("id"),
"name": obj.get("name"),
"enableRss": obj.get("enableRss"),
"enableInteractiveSearch": obj.get("enableInteractiveSearch"),
"enableAutomaticSearch": obj.get("enableAutomaticSearch"),
"enableInteractiveSearch": obj.get("enableInteractiveSearch"),
"minimumSeeders": obj.get("minimumSeeders")
})
return _obj
Expand Down
5 changes: 4 additions & 1 deletion prowlarr/models/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from prowlarr.models.privacy_level import PrivacyLevel
from prowlarr.models.select_option import SelectOption
from typing import Optional, Set
from typing_extensions import Self
Expand All @@ -41,9 +42,10 @@ class Field(BaseModel):
select_options_provider_action: Optional[StrictStr] = Field(default=None, alias="selectOptionsProviderAction")
section: Optional[StrictStr] = None
hidden: Optional[StrictStr] = None
privacy: Optional[PrivacyLevel] = None
placeholder: Optional[StrictStr] = None
is_float: Optional[StrictBool] = Field(default=None, alias="isFloat")
__properties: ClassVar[List[str]] = ["order", "name", "label", "unit", "helpText", "helpTextWarning", "helpLink", "value", "type", "advanced", "selectOptions", "selectOptionsProviderAction", "section", "hidden", "placeholder", "isFloat"]
__properties: ClassVar[List[str]] = ["order", "name", "label", "unit", "helpText", "helpTextWarning", "helpLink", "value", "type", "advanced", "selectOptions", "selectOptionsProviderAction", "section", "hidden", "privacy", "placeholder", "isFloat"]

model_config = {
"populate_by_name": True,
Expand Down Expand Up @@ -182,6 +184,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"selectOptionsProviderAction": obj.get("selectOptionsProviderAction"),
"section": obj.get("section"),
"hidden": obj.get("hidden"),
"privacy": obj.get("privacy"),
"placeholder": obj.get("placeholder"),
"isFloat": obj.get("isFloat")
})
Expand Down
39 changes: 39 additions & 0 deletions prowlarr/models/privacy_level.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# coding: utf-8

"""
Prowlarr
Prowlarr API docs
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class PrivacyLevel(str, Enum):
"""
PrivacyLevel
"""

"""
allowed enum values
"""
NORMAL = 'normal'
PASSWORD = 'password'
APIKEY = 'apiKey'
USERNAME = 'userName'

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of PrivacyLevel from a JSON string"""
return cls(json.loads(json_str))


0 comments on commit d6f06ff

Please sign in to comment.