File tree Expand file tree Collapse file tree 5 files changed +7
-2
lines changed
Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ my_database = coolify_client.databases.create(database_model_create=postgres_db)
209209- Create an App
210210``` python
211211from coolipy.models.applications import ApplicationPrivateGHModelCreate
212+ from coolipy.constants import COOLIFY_BUILD_PACKS
212213
213214app_data = ApplicationPrivateGHModelCreate(
214215 project_uuid = " your_project_uuid" ,
Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ def __init__(
5757 coolify_api_key : str ,
5858 coolify_endpoint : str ,
5959 coolify_port : int = 8000 ,
60+ omit_port : bool = False ,
6061 http_protocol : str = "http" ,
6162 ):
62- self ._coolify_url = f"{ http_protocol } ://{ coolify_endpoint } :{ coolify_port } "
63+ self ._coolify_url = f"{ http_protocol } ://{ coolify_endpoint } " if omit_port else f" { http_protocol } :// { coolify_endpoint } :{ coolify_port } "
6364 self ._api_base_endpoint = f"{ self ._coolify_url } { API_BASE_ENTRYPOINT } "
6465 self ._coolify_api_key = coolify_api_key
6566 self ._http = HttpService (
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ class ServerSettingsModel(CoolipyBaseModel):
6868 logdrain_newrelic_base_uri : Optional [str ] = None
6969 logdrain_newrelic_license_key : Optional [str ] = None
7070 wildcard_domain : Optional [str ] = None
71+ server_disk_usage_check_frequency : Optional [str ] = None
7172
7273
7374@dataclass
@@ -99,6 +100,7 @@ class ServerModel(CoolipyBaseModel):
99100 settings : Optional [ServerSettingsModel ] = None
100101 is_reachable : Optional [bool ] = None
101102 is_usable : Optional [bool ] = None
103+ is_coolify_host : Optional [bool ] = None
102104
103105 @override
104106 def _adjust_nested (self ):
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ class ServiceModel(CoolipyBaseModel):
4646 service_type : Optional [str ] = None
4747 created_at : Optional [Union [str , datetime ]] = None
4848 updated_at : Optional [Union [str , datetime ]] = None
49+ status : Optional [str ] = None
4950
5051 @override
5152 def _adjust_nested (self ):
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
77[project ]
88name = " coolipy"
9- version = " 0.0.7 "
9+ version = " 0.0.8 "
1010authors = [
1111 { name =" Gabriel Bocchini" , email =" gabrielbocchini@gmail.com" },
1212]
You can’t perform that action at this time.
0 commit comments