Skip to content

Commit

Permalink
Merge pull request #36 from devopsarr/feature/code-generation
Browse files Browse the repository at this point in the history
chore(deps): update prowlarr digest to cad42fd
  • Loading branch information
devopsarr[bot] committed Nov 21, 2023
2 parents 0189058 + 9c65f6d commit 6a08a2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/HostConfigResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**analytics_enabled** | **bool** | | [optional]
**username** | **str** | | [optional]
**password** | **str** | | [optional]
**password_confirmation** | **str** | | [optional]
**log_level** | **str** | | [optional]
**console_log_level** | **str** | | [optional]
**branch** | **str** | | [optional]
Expand Down
8 changes: 7 additions & 1 deletion prowlarr/models/host_config_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class HostConfigResource(BaseModel):
analytics_enabled: Optional[bool]
username: Optional[str]
password: Optional[str]
password_confirmation: Optional[str]
log_level: Optional[str]
console_log_level: Optional[str]
branch: Optional[str]
Expand All @@ -67,7 +68,7 @@ class HostConfigResource(BaseModel):
backup_interval: Optional[int]
backup_retention: Optional[int]
history_cleanup_days: Optional[int]
__properties = ["id", "bindAddress", "port", "sslPort", "enableSsl", "launchBrowser", "authenticationMethod", "authenticationRequired", "analyticsEnabled", "username", "password", "logLevel", "consoleLogLevel", "branch", "apiKey", "sslCertPath", "sslCertPassword", "urlBase", "instanceName", "applicationUrl", "updateAutomatically", "updateMechanism", "updateScriptPath", "proxyEnabled", "proxyType", "proxyHostname", "proxyPort", "proxyUsername", "proxyPassword", "proxyBypassFilter", "proxyBypassLocalAddresses", "certificateValidation", "backupFolder", "backupInterval", "backupRetention", "historyCleanupDays"]
__properties = ["id", "bindAddress", "port", "sslPort", "enableSsl", "launchBrowser", "authenticationMethod", "authenticationRequired", "analyticsEnabled", "username", "password", "passwordConfirmation", "logLevel", "consoleLogLevel", "branch", "apiKey", "sslCertPath", "sslCertPassword", "urlBase", "instanceName", "applicationUrl", "updateAutomatically", "updateMechanism", "updateScriptPath", "proxyEnabled", "proxyType", "proxyHostname", "proxyPort", "proxyUsername", "proxyPassword", "proxyBypassFilter", "proxyBypassLocalAddresses", "certificateValidation", "backupFolder", "backupInterval", "backupRetention", "historyCleanupDays"]

class Config:
allow_population_by_field_name = True
Expand Down Expand Up @@ -108,6 +109,10 @@ def to_dict(self):
if self.password is None:
_dict['password'] = None

# set to None if password_confirmation (nullable) is None
if self.password_confirmation is None:
_dict['passwordConfirmation'] = None

# set to None if log_level (nullable) is None
if self.log_level is None:
_dict['logLevel'] = None
Expand Down Expand Up @@ -191,6 +196,7 @@ def from_dict(cls, obj: dict) -> HostConfigResource:
"analytics_enabled": obj.get("analyticsEnabled"),
"username": obj.get("username"),
"password": obj.get("password"),
"password_confirmation": obj.get("passwordConfirmation"),
"log_level": obj.get("logLevel"),
"console_log_level": obj.get("consoleLogLevel"),
"branch": obj.get("branch"),
Expand Down

0 comments on commit 6a08a2c

Please sign in to comment.