python3-core-api-client 1.0.3__py3-none-any.whl → 1.0.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,3 @@
1
- from __future__ import annotations
2
-
3
1
  from datetime import datetime
4
2
  from enum import StrEnum, IntEnum
5
3
  from ipaddress import IPv4Address, IPv6Address
@@ -1409,7 +1407,7 @@ class MeilisearchEnvironmentEnum(StrEnum):
1409
1407
 
1410
1408
 
1411
1409
  class NestedPathsDict(RootModelCollectionMixin, CoreApiModel): # type: ignore[misc]
1412
- __root__: Optional[Dict[str, Optional[NestedPathsDict]]] = None
1410
+ __root__: Optional[Dict[str, Optional["NestedPathsDict"]]] = None
1413
1411
 
1414
1412
 
1415
1413
  class NodeAddOnCreateRequest(CoreApiModel):
@@ -1598,7 +1596,7 @@ class PHPSettings(CoreApiModel):
1598
1596
  post_max_size: conint(ge=32, le=256) = Field(32, title="Post Max Size")
1599
1597
  upload_max_filesize: conint(ge=32, le=256) = Field(32, title="Upload Max Filesize")
1600
1598
  tideways_api_key: Optional[
1601
- constr(regex=r"^[a-zA-Z0-9]+$", min_length=16, max_length=32)
1599
+ constr(regex=r"^[a-zA-Z0-9_]+$", min_length=16, max_length=32)
1602
1600
  ] = Field(None, title="Tideways Api Key")
1603
1601
  tideways_sample_rate: Optional[conint(ge=1, le=100)] = Field(
1604
1602
  None, title="Tideways Sample Rate"
@@ -1884,114 +1882,6 @@ class TokenTypeEnum(StrEnum):
1884
1882
  BEARER = "bearer"
1885
1883
 
1886
1884
 
1887
- class TombstoneDataCertificate(CoreApiModel):
1888
- data_type: Literal["certificate"] = Field(..., title="Data Type")
1889
-
1890
-
1891
- class TombstoneDataCron(CoreApiModel):
1892
- data_type: Literal["cron"] = Field(..., title="Data Type")
1893
- name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
1894
- ..., title="Name"
1895
- )
1896
- unix_user_id: int = Field(..., title="Unix User Id")
1897
-
1898
-
1899
- class TombstoneDataDaemon(CoreApiModel):
1900
- data_type: Literal["daemon"] = Field(..., title="Data Type")
1901
- name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
1902
- ..., title="Name"
1903
- )
1904
-
1905
-
1906
- class TombstoneDataFPMPool(CoreApiModel):
1907
- data_type: Literal["fpm_pool"] = Field(..., title="Data Type")
1908
- version: str = Field(..., title="Version")
1909
- name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
1910
- ..., title="Name"
1911
- )
1912
-
1913
-
1914
- class TombstoneDataMailAccount(CoreApiModel):
1915
- data_type: Literal["mail_account"] = Field(..., title="Data Type")
1916
- local_part: constr(regex=r"^[a-z0-9-.]+$", min_length=1, max_length=64) = Field(
1917
- ...,
1918
- description="May not be in use by mail alias in the same mail domain.",
1919
- title="Local Part",
1920
- )
1921
- mail_domain_id: int = Field(..., title="Mail Domain Id")
1922
- delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
1923
-
1924
-
1925
- class TombstoneDataPassengerApp(CoreApiModel):
1926
- data_type: Literal["passenger_app"] = Field(..., title="Data Type")
1927
- name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
1928
- ..., title="Name"
1929
- )
1930
-
1931
-
1932
- class TombstoneDataRedisInstance(CoreApiModel):
1933
- data_type: Literal["redis_instance"] = Field(..., title="Data Type")
1934
- name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
1935
- ..., title="Name"
1936
- )
1937
- delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
1938
-
1939
-
1940
- class TombstoneDataUNIXUser(CoreApiModel):
1941
- data_type: Literal["unix_user"] = Field(..., title="Data Type")
1942
- home_directory: str = Field(..., title="Home Directory")
1943
- delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
1944
-
1945
-
1946
- class TombstoneDataUNIXUserRabbitMQCredentials(CoreApiModel):
1947
- data_type: Literal["unix_user_rabbitmq_credentials"] = Field(..., title="Data Type")
1948
- rabbitmq_virtual_host_name: constr(
1949
- regex=r"^[a-z0-9-.]+$", min_length=1, max_length=32
1950
- ) = Field(..., title="Rabbitmq Virtual Host Name")
1951
-
1952
-
1953
- class TombstoneDataVirtualHost(CoreApiModel):
1954
- data_type: Literal["virtual_host"] = Field(..., title="Data Type")
1955
- domain_root: str = Field(..., title="Domain Root")
1956
- delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
1957
-
1958
-
1959
- class TombstoneIncludes(CoreApiModel):
1960
- pass
1961
-
1962
-
1963
- class TombstoneDataDatabase(CoreApiModel):
1964
- data_type: Literal["database"] = Field(..., title="Data Type")
1965
- name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=63) = Field(
1966
- ..., title="Name"
1967
- )
1968
- server_software_name: DatabaseServerSoftwareNameEnum
1969
- delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
1970
-
1971
-
1972
- class TombstoneResource(CoreApiModel):
1973
- id: int = Field(..., title="Id")
1974
- created_at: datetime = Field(..., title="Created At")
1975
- updated_at: datetime = Field(..., title="Updated At")
1976
- data: Union[
1977
- TombstoneDataPassengerApp,
1978
- TombstoneDataCertificate,
1979
- TombstoneDataFPMPool,
1980
- TombstoneDataUNIXUserRabbitMQCredentials,
1981
- TombstoneDataUNIXUser,
1982
- TombstoneDataCron,
1983
- TombstoneDataDaemon,
1984
- TombstoneDataDatabase,
1985
- TombstoneDataMailAccount,
1986
- TombstoneDataRedisInstance,
1987
- TombstoneDataVirtualHost,
1988
- ] = Field(..., discriminator="data_type", title="Data")
1989
- object_id: int = Field(..., title="Object Id")
1990
- object_model_name: ObjectModelNameEnum
1991
- cluster_id: int = Field(..., title="Cluster Id")
1992
- includes: TombstoneIncludes
1993
-
1994
-
1995
1885
  class UNIXUserComparison(CoreApiModel):
1996
1886
  not_identical_paths: NestedPathsDict
1997
1887
  only_left_files_paths: NestedPathsDict
@@ -5374,4 +5264,112 @@ class MailAliasResource(CoreApiModel):
5374
5264
  includes: MailAliasIncludes
5375
5265
 
5376
5266
 
5267
+ class TombstoneDataCertificate(CoreApiModel):
5268
+ data_type: Literal["certificate"] = Field(..., title="Data Type")
5269
+
5270
+
5271
+ class TombstoneDataCron(CoreApiModel):
5272
+ data_type: Literal["cron"] = Field(..., title="Data Type")
5273
+ name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
5274
+ ..., title="Name"
5275
+ )
5276
+ unix_user_id: int = Field(..., title="Unix User Id")
5277
+
5278
+
5279
+ class TombstoneDataDaemon(CoreApiModel):
5280
+ data_type: Literal["daemon"] = Field(..., title="Data Type")
5281
+ name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
5282
+ ..., title="Name"
5283
+ )
5284
+
5285
+
5286
+ class TombstoneDataFPMPool(CoreApiModel):
5287
+ data_type: Literal["fpm_pool"] = Field(..., title="Data Type")
5288
+ version: str = Field(..., title="Version")
5289
+ name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
5290
+ ..., title="Name"
5291
+ )
5292
+
5293
+
5294
+ class TombstoneDataMailAccount(CoreApiModel):
5295
+ data_type: Literal["mail_account"] = Field(..., title="Data Type")
5296
+ local_part: constr(regex=r"^[a-z0-9-.]+$", min_length=1, max_length=64) = Field(
5297
+ ...,
5298
+ description="May not be in use by mail alias in the same mail domain.",
5299
+ title="Local Part",
5300
+ )
5301
+ mail_domain_id: int = Field(..., title="Mail Domain Id")
5302
+ delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
5303
+
5304
+
5305
+ class TombstoneDataPassengerApp(CoreApiModel):
5306
+ data_type: Literal["passenger_app"] = Field(..., title="Data Type")
5307
+ name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
5308
+ ..., title="Name"
5309
+ )
5310
+
5311
+
5312
+ class TombstoneDataRedisInstance(CoreApiModel):
5313
+ data_type: Literal["redis_instance"] = Field(..., title="Data Type")
5314
+ name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
5315
+ ..., title="Name"
5316
+ )
5317
+ delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
5318
+
5319
+
5320
+ class TombstoneDataUNIXUser(CoreApiModel):
5321
+ data_type: Literal["unix_user"] = Field(..., title="Data Type")
5322
+ home_directory: str = Field(..., title="Home Directory")
5323
+ delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
5324
+
5325
+
5326
+ class TombstoneDataUNIXUserRabbitMQCredentials(CoreApiModel):
5327
+ data_type: Literal["unix_user_rabbitmq_credentials"] = Field(..., title="Data Type")
5328
+ rabbitmq_virtual_host_name: constr(
5329
+ regex=r"^[a-z0-9-.]+$", min_length=1, max_length=32
5330
+ ) = Field(..., title="Rabbitmq Virtual Host Name")
5331
+
5332
+
5333
+ class TombstoneDataVirtualHost(CoreApiModel):
5334
+ data_type: Literal["virtual_host"] = Field(..., title="Data Type")
5335
+ domain_root: str = Field(..., title="Domain Root")
5336
+ delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
5337
+
5338
+
5339
+ class TombstoneIncludes(CoreApiModel):
5340
+ cluster: ClusterResource
5341
+
5342
+
5343
+ class TombstoneDataDatabase(CoreApiModel):
5344
+ data_type: Literal["database"] = Field(..., title="Data Type")
5345
+ name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=63) = Field(
5346
+ ..., title="Name"
5347
+ )
5348
+ server_software_name: DatabaseServerSoftwareNameEnum
5349
+ delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
5350
+
5351
+
5352
+ class TombstoneResource(CoreApiModel):
5353
+ id: int = Field(..., title="Id")
5354
+ created_at: datetime = Field(..., title="Created At")
5355
+ updated_at: datetime = Field(..., title="Updated At")
5356
+ data: Union[
5357
+ TombstoneDataPassengerApp,
5358
+ TombstoneDataCertificate,
5359
+ TombstoneDataFPMPool,
5360
+ TombstoneDataUNIXUserRabbitMQCredentials,
5361
+ TombstoneDataUNIXUser,
5362
+ TombstoneDataCron,
5363
+ TombstoneDataDaemon,
5364
+ TombstoneDataDatabase,
5365
+ TombstoneDataMailAccount,
5366
+ TombstoneDataRedisInstance,
5367
+ TombstoneDataVirtualHost,
5368
+ ] = Field(..., discriminator="data_type", title="Data")
5369
+ object_id: int = Field(..., title="Object Id")
5370
+ object_model_name: ObjectModelNameEnum
5371
+ cluster_id: int = Field(..., title="Cluster Id")
5372
+ includes: TombstoneIncludes
5373
+
5374
+
5377
5375
  NestedPathsDict.update_forward_refs()
@@ -83,17 +83,6 @@ class Clusters(Resource):
83
83
  ).json
84
84
  )
85
85
 
86
- def delete_cluster(
87
- self,
88
- *,
89
- id_: int,
90
- ) -> models.DetailMessage:
91
- return models.DetailMessage.parse_obj(
92
- self.api_connector.send_or_fail(
93
- "DELETE", f"/api/v1/clusters/{id_}", data=None, query_parameters={}
94
- ).json
95
- )
96
-
97
86
  def get_borg_ssh_key(
98
87
  self,
99
88
  *,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python3-core-api-client
3
- Version: 1.0.3
3
+ Version: 1.0.5
4
4
  Summary: Python client for Core API.
5
5
  Author-email: Cyberfusion <support@cyberfusion.io>
6
6
  Project-URL: Source, https://github.com/CyberfusionIO/python3-core-api-client
@@ -13,7 +13,7 @@ Requires-Dist: pydantic[dotenv,email]==1.10.4
13
13
 
14
14
  Python client for Core API.
15
15
 
16
- This client was built for and tested on the **1.241** version of the API.
16
+ This client was built for and tested on the **1.246** version of the API.
17
17
 
18
18
  ## Support
19
19
 
@@ -4,14 +4,14 @@ cyberfusion/CoreApiClient/connector.py,sha256=7yQs9fH8ldGHpw41xHU07NkXD5OPm3_pjc
4
4
  cyberfusion/CoreApiClient/exceptions.py,sha256=fNxPtzVL4SzPiVNZmBTu1l8D57dkCxMxflyIXDPLE4Q,204
5
5
  cyberfusion/CoreApiClient/http.py,sha256=z6ZyfQyUnA3QDCmej2BEIw9BOlTYoCE8zvTZ0-u_VoQ,429
6
6
  cyberfusion/CoreApiClient/interfaces.py,sha256=P0wCbmSNEpB-eF49PHudc_qXM4blIXm4TsD2AB0z_7Q,269
7
- cyberfusion/CoreApiClient/models.py,sha256=nk7VIt4LqEOQxXKB2QIztHKAVNvdZvXGdi5gTcksURk,268325
7
+ cyberfusion/CoreApiClient/models.py,sha256=beU_mWfJZJAkEUFbwzHyBAATuLDwpttiYNeaDTshVcM,268312
8
8
  cyberfusion/CoreApiClient/resources/__init__.py,sha256=E5VMFXttOmN7TjJt0WeARL_tYVoJcLoRoOnIYkCF748,1881
9
9
  cyberfusion/CoreApiClient/resources/basic_authentication_realms.py,sha256=A0B4auQlBSV-kYrww613PwozMey-VsROguycrQBxB4E,2739
10
10
  cyberfusion/CoreApiClient/resources/borg_archives.py,sha256=Dj5seJanmRYZZFSnaagJBkfR7LL-uYO5vpbjody-y0g,4346
11
11
  cyberfusion/CoreApiClient/resources/borg_repositories.py,sha256=yXVQVU1NvgEdChybJdb9CmXt0tzMf5TdvcFClQKu-dQ,3970
12
12
  cyberfusion/CoreApiClient/resources/certificate_managers.py,sha256=-I8on9nFymCytq7HzBixMgVUqsPQ0O6-9kGY8JNHB7I,2997
13
13
  cyberfusion/CoreApiClient/resources/certificates.py,sha256=_ESvxxw1zw_DB1cqrL12nx4WYGBALMiLAt0vbZ7Wk5Q,1897
14
- cyberfusion/CoreApiClient/resources/clusters.py,sha256=zUL224DowliVug9qZ7y347UsG2bH0Qlb0OQnzykReGM,7004
14
+ cyberfusion/CoreApiClient/resources/clusters.py,sha256=eR6wZLxWCzxV3ElTu7SPalMVMGmoicCuLtYDR_g1xGE,6700
15
15
  cyberfusion/CoreApiClient/resources/cmses.py,sha256=Z0gHxWV1Sm5WcNmZJwfxENntRaCY3ryOP6IJztiiy-I,8364
16
16
  cyberfusion/CoreApiClient/resources/crons.py,sha256=jvg4CsW4lKz1zoJ4hY1gkN8HuRvTM2CLYf0gQKnnIro,2152
17
17
  cyberfusion/CoreApiClient/resources/custom_config_snippets.py,sha256=va4xTVhp3bFDYM9DTsDKT7U-quA64k3lUgdVAX_zs6M,2748
@@ -53,7 +53,7 @@ cyberfusion/CoreApiClient/resources/tombstones.py,sha256=brtaywIKuIHfzrhAQSg8wtx
53
53
  cyberfusion/CoreApiClient/resources/unix_users.py,sha256=64j14_pfh4jWgM1hzJUYCicHcYQ7CT84cFzePCp0zTg,3622
54
54
  cyberfusion/CoreApiClient/resources/url_redirects.py,sha256=GBUin-MRtkuKk9191-8EsYc6iZf5X2cMOk_Y-xleW2s,2358
55
55
  cyberfusion/CoreApiClient/resources/virtual_hosts.py,sha256=ZwlymtfSp8sMtglm8iGrUb7wpw4cGtFU6h5b7HTu9Kw,3702
56
- python3_core_api_client-1.0.3.dist-info/METADATA,sha256=mW06GlleEtvRcVYTeR8CHQ_tTYtDxDmsSmtQxzLBBXg,7031
57
- python3_core_api_client-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
58
- python3_core_api_client-1.0.3.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
59
- python3_core_api_client-1.0.3.dist-info/RECORD,,
56
+ python3_core_api_client-1.0.5.dist-info/METADATA,sha256=vRmSUAdjDW3-BKCMn5bWdBzflekVhaRq_laU-3Krr-c,7031
57
+ python3_core_api_client-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
58
+ python3_core_api_client-1.0.5.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
59
+ python3_core_api_client-1.0.5.dist-info/RECORD,,