python3-core-api-client 8.1__py3-none-any.whl → 9.0__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.
- cyberfusion/CoreApiClient/connector.py +8 -0
- cyberfusion/CoreApiClient/models.py +173 -0
- cyberfusion/CoreApiClient/resources/__init__.py +4 -0
- cyberfusion/CoreApiClient/resources/clusters.py +17 -0
- cyberfusion/CoreApiClient/resources/health_checks.py +19 -0
- cyberfusion/CoreApiClient/resources/node_add_ons.py +20 -0
- cyberfusion/CoreApiClient/resources/nodes.py +22 -0
- cyberfusion/CoreApiClient/resources/scheduled_actions.py +77 -0
- cyberfusion/CoreApiClient/resources/task_collections.py +1 -6
- {python3_core_api_client-8.1.dist-info → python3_core_api_client-9.0.dist-info}/METADATA +2 -2
- {python3_core_api_client-8.1.dist-info → python3_core_api_client-9.0.dist-info}/RECORD +13 -11
- {python3_core_api_client-8.1.dist-info → python3_core_api_client-9.0.dist-info}/WHEEL +0 -0
- {python3_core_api_client-8.1.dist-info → python3_core_api_client-9.0.dist-info}/top_level.txt +0 -0
|
@@ -324,6 +324,14 @@ class CoreApiConnector(CoreApiClient):
|
|
|
324
324
|
def carbon_txts(self) -> resources.carbon_txts.CarbonTxts:
|
|
325
325
|
return resources.carbon_txts.CarbonTxts(self)
|
|
326
326
|
|
|
327
|
+
@cached_property
|
|
328
|
+
def scheduled_actions(self) -> resources.scheduled_actions.ScheduledActions:
|
|
329
|
+
return resources.scheduled_actions.ScheduledActions(self)
|
|
330
|
+
|
|
331
|
+
@cached_property
|
|
332
|
+
def health_checks(self) -> resources.health_checks.HealthChecks:
|
|
333
|
+
return resources.health_checks.HealthChecks(self)
|
|
334
|
+
|
|
327
335
|
@cached_property
|
|
328
336
|
def firewall_groups(self) -> resources.firewall_groups.FirewallGroups:
|
|
329
337
|
return resources.firewall_groups.FirewallGroups(self)
|
|
@@ -1199,6 +1199,7 @@ class ObjectModelNameEnum(StrEnum):
|
|
|
1199
1199
|
MALWARE = "Malware"
|
|
1200
1200
|
STANDARDS_SCAN = "StandardsScan"
|
|
1201
1201
|
CARBON_TXT = "CarbonTxt"
|
|
1202
|
+
SCHEDULED_ACTION = "ScheduledAction"
|
|
1202
1203
|
|
|
1203
1204
|
|
|
1204
1205
|
class PhpExtensionEnum(StrEnum):
|
|
@@ -2632,6 +2633,7 @@ class CmsResource(BaseCoreApiModel):
|
|
|
2632
2633
|
cluster_id: int
|
|
2633
2634
|
software_name: CmsSoftwareNameEnum
|
|
2634
2635
|
is_manually_created: bool
|
|
2636
|
+
version: Optional[constr(pattern=r"^[0-9.]+$", min_length=1, max_length=20)]
|
|
2635
2637
|
virtual_host_id: int
|
|
2636
2638
|
includes: CmsIncludes
|
|
2637
2639
|
|
|
@@ -4242,6 +4244,177 @@ class StandardsScansSearchRequest(BaseCoreApiModel):
|
|
|
4242
4244
|
cluster_id: Optional[int] = None
|
|
4243
4245
|
|
|
4244
4246
|
|
|
4247
|
+
class ScheduledActionEnum(StrEnum):
|
|
4248
|
+
XGRADE_NODE = "xgrade_node"
|
|
4249
|
+
CREATE_NODE_ADD_ON = "create_node_add_on"
|
|
4250
|
+
UPDATE_CLUSTER_NODES = "update_cluster_nodes"
|
|
4251
|
+
|
|
4252
|
+
|
|
4253
|
+
class ScheduledActionDataXgradeNode(BaseCoreApiModel):
|
|
4254
|
+
data_type: Literal["xgrade_node"] = "xgrade_node"
|
|
4255
|
+
node_id: int
|
|
4256
|
+
product_id: int
|
|
4257
|
+
original_product_id: int
|
|
4258
|
+
|
|
4259
|
+
|
|
4260
|
+
class ScheduledActionDataCreateNodeAddOn(BaseCoreApiModel):
|
|
4261
|
+
data_type: Literal["create_node_add_on"] = "create_node_add_on"
|
|
4262
|
+
node_id: int
|
|
4263
|
+
product_id: int
|
|
4264
|
+
quantity: conint(gt=0, le=4294967295)
|
|
4265
|
+
|
|
4266
|
+
|
|
4267
|
+
class ScheduledActionDataUpdateClusterNodes(BaseCoreApiModel):
|
|
4268
|
+
data_type: Literal["update_cluster_nodes"] = "update_cluster_nodes"
|
|
4269
|
+
|
|
4270
|
+
|
|
4271
|
+
class ScheduledActionIncludes(BaseCoreApiModel):
|
|
4272
|
+
cluster: Optional[ClusterResource]
|
|
4273
|
+
|
|
4274
|
+
|
|
4275
|
+
class ScheduledActionResource(BaseCoreApiModel):
|
|
4276
|
+
id: int
|
|
4277
|
+
created_at: datetime
|
|
4278
|
+
updated_at: datetime
|
|
4279
|
+
action: ScheduledActionEnum
|
|
4280
|
+
data: Union[
|
|
4281
|
+
ScheduledActionDataXgradeNode,
|
|
4282
|
+
ScheduledActionDataCreateNodeAddOn,
|
|
4283
|
+
ScheduledActionDataUpdateClusterNodes,
|
|
4284
|
+
] = Field(..., discriminator="data_type")
|
|
4285
|
+
scheduled_at: datetime
|
|
4286
|
+
cluster_id: int
|
|
4287
|
+
task_collection_uuid: Optional[UUID4]
|
|
4288
|
+
deployment_status: DeploymentStatusEnum
|
|
4289
|
+
includes: ScheduledActionIncludes
|
|
4290
|
+
|
|
4291
|
+
|
|
4292
|
+
class ScheduledActionUpdateRequest(BaseCoreApiModel):
|
|
4293
|
+
scheduled_at: Optional[datetime] = None
|
|
4294
|
+
|
|
4295
|
+
|
|
4296
|
+
class ScheduledActionsSearchRequest(BaseCoreApiModel):
|
|
4297
|
+
action: Optional[ScheduledActionEnum] = None
|
|
4298
|
+
task_collection_uuid: Optional[UUID4] = None
|
|
4299
|
+
|
|
4300
|
+
|
|
4301
|
+
class HealthCheckCategoryEnum(StrEnum):
|
|
4302
|
+
HOSTING_SECURITY = "hosting_security"
|
|
4303
|
+
APPLICATION_SECURITY = "application_security"
|
|
4304
|
+
PERFORMANCE = "performance"
|
|
4305
|
+
|
|
4306
|
+
|
|
4307
|
+
class HealthCheckSeverityEnum(StrEnum):
|
|
4308
|
+
RECOMMENDATION = "recommendation"
|
|
4309
|
+
WARNING = "warning"
|
|
4310
|
+
CRITICAL = "critical"
|
|
4311
|
+
|
|
4312
|
+
|
|
4313
|
+
class HealthCheckTypeEnum(StrEnum):
|
|
4314
|
+
INNODB_BUFFER_POOL_SIZE_SUFFICIENT = "InnoDB buffer pool size sufficient"
|
|
4315
|
+
FPM_POOL_PHP_VERSION_UP_TO_DATE = "FPM pool PHP version up to date"
|
|
4316
|
+
UNIX_USER_PHP_VERSION_UP_TO_DATE = "UNIX user PHP version up to date"
|
|
4317
|
+
DATABASE_ENCRYPTION_AT_REST_ENABLED = "Database encryption at rest enabled"
|
|
4318
|
+
SSH_RESTRICTED_TO_SPECIFIC_IP_NETWORKS = "SSH restricted to specific IP networks"
|
|
4319
|
+
AUTOMATIC_OS_UPGRADES_ENABLED = "Automatic OS upgrades enabled"
|
|
4320
|
+
OPTIMISING_FOR_DATABASE_ENABLED = "Optimising for database enabled"
|
|
4321
|
+
QUIC_ENABLED_FOR_DOMAIN_ROUTER = "QUIC enabled for domain router"
|
|
4322
|
+
DATABASE_INDEXES_CREATED = "Database indexes created"
|
|
4323
|
+
WOOCOMMERCE_HPOS_ENABLED = "WooCommerce HPOS enabled"
|
|
4324
|
+
|
|
4325
|
+
|
|
4326
|
+
class HealthCheckDataInnodbBufferPoolSizeSufficient(BaseCoreApiModel):
|
|
4327
|
+
check_type: Literal["InnoDB buffer pool size sufficient"] = (
|
|
4328
|
+
"InnoDB buffer pool size sufficient"
|
|
4329
|
+
)
|
|
4330
|
+
current_bytes: int
|
|
4331
|
+
target_bytes: int
|
|
4332
|
+
|
|
4333
|
+
|
|
4334
|
+
class HealthCheckDataFpmPoolPhpVersionUpToDate(BaseCoreApiModel):
|
|
4335
|
+
check_type: Literal["FPM pool PHP version up to date"] = (
|
|
4336
|
+
"FPM pool PHP version up to date"
|
|
4337
|
+
)
|
|
4338
|
+
|
|
4339
|
+
|
|
4340
|
+
class HealthCheckDataUnixUserPhpVersionUpToDate(BaseCoreApiModel):
|
|
4341
|
+
check_type: Literal["UNIX user PHP version up to date"] = (
|
|
4342
|
+
"UNIX user PHP version up to date"
|
|
4343
|
+
)
|
|
4344
|
+
|
|
4345
|
+
|
|
4346
|
+
class HealthCheckDataDatabaseEncryptionAtRestEnabled(BaseCoreApiModel):
|
|
4347
|
+
check_type: Literal["Database encryption at rest enabled"] = (
|
|
4348
|
+
"Database encryption at rest enabled"
|
|
4349
|
+
)
|
|
4350
|
+
|
|
4351
|
+
|
|
4352
|
+
class HealthCheckDataSshRestrictedToSpecificIpNetworks(BaseCoreApiModel):
|
|
4353
|
+
check_type: Literal["SSH restricted to specific IP networks"] = (
|
|
4354
|
+
"SSH restricted to specific IP networks"
|
|
4355
|
+
)
|
|
4356
|
+
|
|
4357
|
+
|
|
4358
|
+
class HealthCheckDataAutomaticOsUpgradesEnabled(BaseCoreApiModel):
|
|
4359
|
+
check_type: Literal["Automatic OS upgrades enabled"] = (
|
|
4360
|
+
"Automatic OS upgrades enabled"
|
|
4361
|
+
)
|
|
4362
|
+
|
|
4363
|
+
|
|
4364
|
+
class HealthCheckDataOptimisingForDatabaseEnabled(BaseCoreApiModel):
|
|
4365
|
+
check_type: Literal["Optimising for database enabled"] = (
|
|
4366
|
+
"Optimising for database enabled"
|
|
4367
|
+
)
|
|
4368
|
+
|
|
4369
|
+
|
|
4370
|
+
class HealthCheckDataQuicEnabledForDomainRouter(BaseCoreApiModel):
|
|
4371
|
+
check_type: Literal["QUIC enabled for domain router"] = (
|
|
4372
|
+
"QUIC enabled for domain router"
|
|
4373
|
+
)
|
|
4374
|
+
|
|
4375
|
+
|
|
4376
|
+
class HealthCheckDataDatabaseIndexesCreated(BaseCoreApiModel):
|
|
4377
|
+
check_type: Literal["Database indexes created"] = "Database indexes created"
|
|
4378
|
+
|
|
4379
|
+
|
|
4380
|
+
class HealthCheckDataWoocommerceHposEnabled(BaseCoreApiModel):
|
|
4381
|
+
check_type: Literal["WooCommerce HPOS enabled"] = "WooCommerce HPOS enabled"
|
|
4382
|
+
|
|
4383
|
+
|
|
4384
|
+
class HealthCheckIncludes(BaseCoreApiModel):
|
|
4385
|
+
cluster: Optional[ClusterResource]
|
|
4386
|
+
|
|
4387
|
+
|
|
4388
|
+
class HealthCheckResource(BaseCoreApiModel):
|
|
4389
|
+
id: int
|
|
4390
|
+
created_at: datetime
|
|
4391
|
+
updated_at: datetime
|
|
4392
|
+
cluster_id: int
|
|
4393
|
+
check_type: HealthCheckTypeEnum
|
|
4394
|
+
category: HealthCheckCategoryEnum
|
|
4395
|
+
healthy: bool
|
|
4396
|
+
since: datetime
|
|
4397
|
+
severity: HealthCheckSeverityEnum
|
|
4398
|
+
silenced_at: Optional[datetime]
|
|
4399
|
+
object_model_name: ObjectModelNameEnum
|
|
4400
|
+
object_id: int
|
|
4401
|
+
data: Union[
|
|
4402
|
+
HealthCheckDataInnodbBufferPoolSizeSufficient,
|
|
4403
|
+
HealthCheckDataFpmPoolPhpVersionUpToDate,
|
|
4404
|
+
HealthCheckDataUnixUserPhpVersionUpToDate,
|
|
4405
|
+
HealthCheckDataDatabaseEncryptionAtRestEnabled,
|
|
4406
|
+
HealthCheckDataSshRestrictedToSpecificIpNetworks,
|
|
4407
|
+
HealthCheckDataAutomaticOsUpgradesEnabled,
|
|
4408
|
+
HealthCheckDataOptimisingForDatabaseEnabled,
|
|
4409
|
+
HealthCheckDataQuicEnabledForDomainRouter,
|
|
4410
|
+
HealthCheckDataDatabaseIndexesCreated,
|
|
4411
|
+
HealthCheckDataWoocommerceHposEnabled,
|
|
4412
|
+
] = Field(..., discriminator="check_type")
|
|
4413
|
+
motivation: constr(pattern=r"^[ -~\n]+$", min_length=1, max_length=65535)
|
|
4414
|
+
deployment_status: DeploymentStatusEnum
|
|
4415
|
+
includes: HealthCheckIncludes
|
|
4416
|
+
|
|
4417
|
+
|
|
4245
4418
|
NestedPathsDict.model_rebuild()
|
|
4246
4419
|
CompositeSpecificationSatisfyResult.model_rebuild()
|
|
4247
4420
|
CompositeSpecificationSatisfyResultResource.model_rebuild()
|
|
@@ -49,6 +49,8 @@ from . import (
|
|
|
49
49
|
mail_domains,
|
|
50
50
|
standards_scans,
|
|
51
51
|
available_versions,
|
|
52
|
+
scheduled_actions,
|
|
53
|
+
health_checks,
|
|
52
54
|
)
|
|
53
55
|
|
|
54
56
|
__all__ = [
|
|
@@ -96,6 +98,8 @@ __all__ = [
|
|
|
96
98
|
"regions",
|
|
97
99
|
"ssh_keys",
|
|
98
100
|
"standards_scans",
|
|
101
|
+
"scheduled_actions",
|
|
102
|
+
"health_checks",
|
|
99
103
|
"task_collections",
|
|
100
104
|
"unix_users",
|
|
101
105
|
"url_redirects",
|
|
@@ -1561,3 +1561,20 @@ class Clusters(Resource):
|
|
|
1561
1561
|
)
|
|
1562
1562
|
|
|
1563
1563
|
return DtoResponse.from_responses(local_response, models.DatabaseInnodbReport)
|
|
1564
|
+
|
|
1565
|
+
def refresh_cluster_health_checks(
|
|
1566
|
+
self,
|
|
1567
|
+
*,
|
|
1568
|
+
id_: int,
|
|
1569
|
+
callback_url: Optional[str] = None,
|
|
1570
|
+
) -> DtoResponse[models.TaskCollectionResource]:
|
|
1571
|
+
local_response = self.api_connector.send_or_fail(
|
|
1572
|
+
"POST",
|
|
1573
|
+
f"/api/v1/clusters/{id_}/health-checks/refresh",
|
|
1574
|
+
data=None,
|
|
1575
|
+
query_parameters={
|
|
1576
|
+
"callback_url": callback_url,
|
|
1577
|
+
},
|
|
1578
|
+
)
|
|
1579
|
+
|
|
1580
|
+
return DtoResponse.from_responses(local_response, models.TaskCollectionResource)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from cyberfusion.CoreApiClient import models
|
|
2
|
+
from cyberfusion.CoreApiClient.interfaces import Resource
|
|
3
|
+
from cyberfusion.CoreApiClient.http import DtoResponse
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class HealthChecks(Resource):
|
|
7
|
+
def read_health_check(
|
|
8
|
+
self,
|
|
9
|
+
*,
|
|
10
|
+
id_: int,
|
|
11
|
+
) -> DtoResponse[models.HealthCheckResource]:
|
|
12
|
+
local_response = self.api_connector.send_or_fail(
|
|
13
|
+
"GET",
|
|
14
|
+
f"/api/v1/health-checks/{id_}",
|
|
15
|
+
data=None,
|
|
16
|
+
query_parameters={},
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
return DtoResponse.from_responses(local_response, models.HealthCheckResource)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from cyberfusion.CoreApiClient import models
|
|
2
|
+
from datetime import datetime
|
|
2
3
|
from typing import Optional
|
|
3
4
|
|
|
4
5
|
from cyberfusion.CoreApiClient.interfaces import Resource
|
|
@@ -23,6 +24,25 @@ class NodeAddOns(Resource):
|
|
|
23
24
|
|
|
24
25
|
return DtoResponse.from_responses(local_response, models.TaskCollectionResource)
|
|
25
26
|
|
|
27
|
+
def schedule_create_node_add_on(
|
|
28
|
+
self,
|
|
29
|
+
request: models.NodeAddOnCreateRequest,
|
|
30
|
+
*,
|
|
31
|
+
scheduled_at: datetime,
|
|
32
|
+
) -> DtoResponse[models.ScheduledActionResource]:
|
|
33
|
+
local_response = self.api_connector.send_or_fail(
|
|
34
|
+
"POST",
|
|
35
|
+
"/api/v1/node-add-ons/schedule",
|
|
36
|
+
data=request.model_dump(exclude_unset=True),
|
|
37
|
+
query_parameters={
|
|
38
|
+
"scheduled_at": scheduled_at,
|
|
39
|
+
},
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
return DtoResponse.from_responses(
|
|
43
|
+
local_response, models.ScheduledActionResource
|
|
44
|
+
)
|
|
45
|
+
|
|
26
46
|
def list_node_add_ons(
|
|
27
47
|
self,
|
|
28
48
|
*,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from cyberfusion.CoreApiClient import models
|
|
2
|
+
from datetime import datetime
|
|
2
3
|
from typing import Optional
|
|
3
4
|
|
|
4
5
|
from cyberfusion.CoreApiClient.interfaces import Resource
|
|
@@ -119,6 +120,27 @@ class Nodes(Resource):
|
|
|
119
120
|
|
|
120
121
|
return DtoResponse.from_responses(local_response, models.TaskCollectionResource)
|
|
121
122
|
|
|
123
|
+
def schedule_upgrade_downgrade_node(
|
|
124
|
+
self,
|
|
125
|
+
*,
|
|
126
|
+
id_: int,
|
|
127
|
+
product: str,
|
|
128
|
+
scheduled_at: datetime,
|
|
129
|
+
) -> DtoResponse[models.ScheduledActionResource]:
|
|
130
|
+
local_response = self.api_connector.send_or_fail(
|
|
131
|
+
"POST",
|
|
132
|
+
f"/api/v1/nodes/{id_}/xgrade/schedule",
|
|
133
|
+
data=None,
|
|
134
|
+
query_parameters={
|
|
135
|
+
"product": product,
|
|
136
|
+
"scheduled_at": scheduled_at,
|
|
137
|
+
},
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
return DtoResponse.from_responses(
|
|
141
|
+
local_response, models.ScheduledActionResource
|
|
142
|
+
)
|
|
143
|
+
|
|
122
144
|
def add_node_groups(
|
|
123
145
|
self,
|
|
124
146
|
*,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from cyberfusion.CoreApiClient import models
|
|
2
|
+
from cyberfusion.CoreApiClient.interfaces import Resource
|
|
3
|
+
from cyberfusion.CoreApiClient._helpers import construct_includes_query_parameter
|
|
4
|
+
from cyberfusion.CoreApiClient.http import DtoResponse
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ScheduledActions(Resource):
|
|
8
|
+
def list_scheduled_actions(
|
|
9
|
+
self,
|
|
10
|
+
*,
|
|
11
|
+
include_filters: models.ScheduledActionsSearchRequest | None = None,
|
|
12
|
+
includes: list[str] | None = None,
|
|
13
|
+
) -> DtoResponse[list[models.ScheduledActionResource]]:
|
|
14
|
+
local_responses = self.api_connector.send_or_fail_with_auto_pagination(
|
|
15
|
+
"GET",
|
|
16
|
+
"/api/v1/scheduled-actions",
|
|
17
|
+
data=None,
|
|
18
|
+
query_parameters=(
|
|
19
|
+
include_filters.model_dump(exclude_unset=True)
|
|
20
|
+
if include_filters
|
|
21
|
+
else {}
|
|
22
|
+
)
|
|
23
|
+
| construct_includes_query_parameter(includes),
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
return DtoResponse.from_responses(
|
|
27
|
+
local_responses, models.ScheduledActionResource
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
def read_scheduled_action(
|
|
31
|
+
self,
|
|
32
|
+
*,
|
|
33
|
+
id_: int,
|
|
34
|
+
includes: list[str] | None = None,
|
|
35
|
+
) -> DtoResponse[models.ScheduledActionResource]:
|
|
36
|
+
local_response = self.api_connector.send_or_fail(
|
|
37
|
+
"GET",
|
|
38
|
+
f"/api/v1/scheduled-actions/{id_}",
|
|
39
|
+
data=None,
|
|
40
|
+
query_parameters=construct_includes_query_parameter(includes),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
return DtoResponse.from_responses(
|
|
44
|
+
local_response, models.ScheduledActionResource
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
def delete_scheduled_action(
|
|
48
|
+
self,
|
|
49
|
+
*,
|
|
50
|
+
id_: int,
|
|
51
|
+
) -> DtoResponse[models.DetailMessage]:
|
|
52
|
+
local_response = self.api_connector.send_or_fail(
|
|
53
|
+
"DELETE",
|
|
54
|
+
f"/api/v1/scheduled-actions/{id_}",
|
|
55
|
+
data=None,
|
|
56
|
+
query_parameters={},
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
return DtoResponse.from_responses(local_response, models.DetailMessage)
|
|
60
|
+
|
|
61
|
+
def update_scheduled_action(
|
|
62
|
+
self,
|
|
63
|
+
request: models.ScheduledActionUpdateRequest,
|
|
64
|
+
*,
|
|
65
|
+
id_: int,
|
|
66
|
+
includes: list[str] | None = None,
|
|
67
|
+
) -> DtoResponse[models.ScheduledActionResource]:
|
|
68
|
+
local_response = self.api_connector.send_or_fail(
|
|
69
|
+
"PATCH",
|
|
70
|
+
f"/api/v1/scheduled-actions/{id_}",
|
|
71
|
+
data=request.model_dump(exclude_unset=True),
|
|
72
|
+
query_parameters=construct_includes_query_parameter(includes),
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
return DtoResponse.from_responses(
|
|
76
|
+
local_response, models.ScheduledActionResource
|
|
77
|
+
)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
from cyberfusion.CoreApiClient import models
|
|
2
|
-
from typing import Optional
|
|
3
2
|
|
|
4
3
|
from cyberfusion.CoreApiClient.interfaces import Resource
|
|
5
4
|
from cyberfusion.CoreApiClient._helpers import construct_includes_query_parameter
|
|
@@ -25,17 +24,13 @@ class TaskCollections(Resource):
|
|
|
25
24
|
self,
|
|
26
25
|
*,
|
|
27
26
|
uuid: str,
|
|
28
|
-
callback_url: Optional[str] = None,
|
|
29
27
|
includes: list[str] | None = None,
|
|
30
28
|
) -> DtoResponse[models.TaskCollectionResource]:
|
|
31
29
|
local_response = self.api_connector.send_or_fail(
|
|
32
30
|
"POST",
|
|
33
31
|
f"/api/v1/task-collections/{uuid}/retry",
|
|
34
32
|
data=None,
|
|
35
|
-
query_parameters=
|
|
36
|
-
"callback_url": callback_url,
|
|
37
|
-
}
|
|
38
|
-
| construct_includes_query_parameter(includes),
|
|
33
|
+
query_parameters=construct_includes_query_parameter(includes),
|
|
39
34
|
)
|
|
40
35
|
|
|
41
36
|
return DtoResponse.from_responses(local_response, models.TaskCollectionResource)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-core-api-client
|
|
3
|
-
Version:
|
|
3
|
+
Version: 9.0
|
|
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[email]==2.12.5
|
|
|
13
13
|
|
|
14
14
|
Python client for Core API.
|
|
15
15
|
|
|
16
|
-
This client was built for and tested on the **1.
|
|
16
|
+
This client was built for and tested on the **1.277.0** version of the API.
|
|
17
17
|
|
|
18
18
|
## Support
|
|
19
19
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
cyberfusion/CoreApiClient/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
cyberfusion/CoreApiClient/_encoders.py,sha256=Cf52zbE5vs4WYXRNvFPt9bBo4TV-pOyCLa1IImYnaJU,467
|
|
3
3
|
cyberfusion/CoreApiClient/_helpers.py,sha256=QZ5OsQB_THFyKOyplR3bbdnVI1YlieiQF2imMOzc5So,241
|
|
4
|
-
cyberfusion/CoreApiClient/connector.py,sha256=
|
|
4
|
+
cyberfusion/CoreApiClient/connector.py,sha256=I8lp9FY6RqVjRQ11iq0XBCOL9mk7tuRlfMKbGJtKoFk,14454
|
|
5
5
|
cyberfusion/CoreApiClient/exceptions.py,sha256=fNxPtzVL4SzPiVNZmBTu1l8D57dkCxMxflyIXDPLE4Q,204
|
|
6
6
|
cyberfusion/CoreApiClient/http.py,sha256=I0eNtlqZ1cvhDCL7nJUCUxnV0MmLckNnZoMLj4ot-bk,1577
|
|
7
7
|
cyberfusion/CoreApiClient/interfaces.py,sha256=P0wCbmSNEpB-eF49PHudc_qXM4blIXm4TsD2AB0z_7Q,269
|
|
8
|
-
cyberfusion/CoreApiClient/models.py,sha256=
|
|
9
|
-
cyberfusion/CoreApiClient/resources/__init__.py,sha256=
|
|
8
|
+
cyberfusion/CoreApiClient/models.py,sha256=WeKteOI8pw0iveTs9YsiMZWtoJRX1-t1ateaUwRbb_k,129188
|
|
9
|
+
cyberfusion/CoreApiClient/resources/__init__.py,sha256=_RUmP6a909jBr5AhFvMIG_IKrgFx4-HXeA5hKr5YteY,2109
|
|
10
10
|
cyberfusion/CoreApiClient/resources/available_versions.py,sha256=vzsTL0j5oaG84_5crC29N3gCMnRvw49qMXuEwpywUCk,1838
|
|
11
11
|
cyberfusion/CoreApiClient/resources/basic_authentication_realms.py,sha256=XRkECp58sdER3be7z7GON-GO9-zvVk2L1MzeJAdNoDY,3176
|
|
12
12
|
cyberfusion/CoreApiClient/resources/borg_archives.py,sha256=asHM1dYVEFOB17EzhM7rF39uHAq2FZ5veMJLcsVsHLA,4130
|
|
@@ -14,7 +14,7 @@ cyberfusion/CoreApiClient/resources/borg_repositories.py,sha256=QgOTJBqB3R1Nvi-7
|
|
|
14
14
|
cyberfusion/CoreApiClient/resources/carbon_txts.py,sha256=-BP10iGqe5tKYNl-dXlWOJQt8DXvNJsVyS-S7qUD-aI,2770
|
|
15
15
|
cyberfusion/CoreApiClient/resources/certificate_managers.py,sha256=U6mfeBRg4d5Hza1QcXkgWqNYakiT_dHp_L_I41tHEeQ,3440
|
|
16
16
|
cyberfusion/CoreApiClient/resources/certificates.py,sha256=5MPfeMu6Wdvawz7l5EwPjm2kDdACA5PvASbRBzKeJWE,2251
|
|
17
|
-
cyberfusion/CoreApiClient/resources/clusters.py,sha256=
|
|
17
|
+
cyberfusion/CoreApiClient/resources/clusters.py,sha256=4yeUJnwjl5pd-Osh8zxv_aou5DjEtH_kWjjc8JvhIv8,54657
|
|
18
18
|
cyberfusion/CoreApiClient/resources/cmses.py,sha256=G28flYuBmF1LN2cTJgkP3pWTy3DQquRGPUXaLA2LQlE,12096
|
|
19
19
|
cyberfusion/CoreApiClient/resources/crons.py,sha256=NmWdqk6cArOjpw88JmsIB6l9PdEUGbmTd2kS-xuF6wY,2578
|
|
20
20
|
cyberfusion/CoreApiClient/resources/custom_config_snippets.py,sha256=EZgPGsd9sjeBfEE2kobhvMf79N4stQAzAaIxHroS1UI,3185
|
|
@@ -32,6 +32,7 @@ cyberfusion/CoreApiClient/resources/ftp_users.py,sha256=4_dK5Il2Dr7GDeRvfM5YleoL
|
|
|
32
32
|
cyberfusion/CoreApiClient/resources/haproxy_listens.py,sha256=pXi9AYYK4KjwcQP1Qc9cLRlMyHSxPGJddZEKquzRSDQ,2330
|
|
33
33
|
cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py,sha256=hul_NXSWSJgyUrclbzPx4fZ3V4SKe85qOfyrbWhgH80,2521
|
|
34
34
|
cyberfusion/CoreApiClient/resources/health.py,sha256=Fis6X6aRThflelWkpTrsBtFnrGGvsT33YEpWccFzzKU,483
|
|
35
|
+
cyberfusion/CoreApiClient/resources/health_checks.py,sha256=692l_sM1jlBD3V_pw0aRtuluooKzUcuLtCWc_J5lgi4,584
|
|
35
36
|
cyberfusion/CoreApiClient/resources/hosts_entries.py,sha256=szKdTNfQky004HUVGZwAYFdPO-P61i01vUxVUkcowDY,2248
|
|
36
37
|
cyberfusion/CoreApiClient/resources/htpasswd_files.py,sha256=ogxSQf2bMNvDc1tQ_wAhuFcc-IoxyfSY1tulFWjSa0Q,2313
|
|
37
38
|
cyberfusion/CoreApiClient/resources/htpasswd_users.py,sha256=KQb28mpIuHkEzOYWCGN03E2xft90oAtveDNTrH7zJu4,2801
|
|
@@ -44,20 +45,21 @@ cyberfusion/CoreApiClient/resources/mail_hostnames.py,sha256=aUTbTW0cF7AIJh4_TdR
|
|
|
44
45
|
cyberfusion/CoreApiClient/resources/malwares.py,sha256=FsFaAHo-4u4v7TIl7GNjlx26dPw5S6c1_18fR0uhSYk,956
|
|
45
46
|
cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py,sha256=Hw-A2Y_b3mUxruHbxCmxwydzfjWPu4inAeh8GQvPMCU,2115
|
|
46
47
|
cyberfusion/CoreApiClient/resources/n8n_instances.py,sha256=pbGIUlYjq5e52KPLnq0hG-W1rM2EaILIEOIaBVpoLXA,2926
|
|
47
|
-
cyberfusion/CoreApiClient/resources/node_add_ons.py,sha256=
|
|
48
|
-
cyberfusion/CoreApiClient/resources/nodes.py,sha256=
|
|
48
|
+
cyberfusion/CoreApiClient/resources/node_add_ons.py,sha256=BxhL4uNx3QjVyR000lVxp9o9D_MbYtcf8CvsQ-0DtkU,3489
|
|
49
|
+
cyberfusion/CoreApiClient/resources/nodes.py,sha256=0fKmLS5w2-QpMAC2NWSzKseV96-mah8--grwWpcU2yo,5026
|
|
49
50
|
cyberfusion/CoreApiClient/resources/passenger_apps.py,sha256=f2HnASA-byB_34UtpIdXVJcmhDVRSYXqdKp4fqmLyV0,3455
|
|
50
51
|
cyberfusion/CoreApiClient/resources/redis_instances.py,sha256=60XC7DpZpV8Q__FkQZrSkH8kJMm5IZ7gJm1w8EvzS7g,2970
|
|
51
52
|
cyberfusion/CoreApiClient/resources/regions.py,sha256=yr8W7JlXzyPr8hWsX18Zj4Zbc7YfcCyunYU2vEps4sQ,950
|
|
52
53
|
cyberfusion/CoreApiClient/resources/root_ssh_keys.py,sha256=bKHxFIC_sEu4OT6TMx95JyBgPJ1TZKLXcQKG1Rd-4MI,2736
|
|
54
|
+
cyberfusion/CoreApiClient/resources/scheduled_actions.py,sha256=dW2_vVNoKtkr8DZbTN0ij2qlK8J_oFVgi3ROhnid_hQ,2551
|
|
53
55
|
cyberfusion/CoreApiClient/resources/security_txt_policies.py,sha256=5uOPMatxEWs9WXl0rp8djV4Vi2_4ZI8waRrsgcKu66Y,3016
|
|
54
56
|
cyberfusion/CoreApiClient/resources/ssh_keys.py,sha256=U7OPQWVnCtpGJ3-wybIjWb7dd-oFaXM0Jy-8FJNlE90,2638
|
|
55
57
|
cyberfusion/CoreApiClient/resources/standards_scans.py,sha256=C6-AE18p33Rw8UDT0Q3N8WYFKCL9tdnyTQrzjm6yTRo,1899
|
|
56
|
-
cyberfusion/CoreApiClient/resources/task_collections.py,sha256=
|
|
58
|
+
cyberfusion/CoreApiClient/resources/task_collections.py,sha256=9XKijkqc_DxeA4CQif66uamLsuCP6z_UNaXVol4eUzI,1184
|
|
57
59
|
cyberfusion/CoreApiClient/resources/unix_users.py,sha256=dJknxliUJpWaKzrZgRhZvnuTRgnC-25vXt1asUPDxmc,4092
|
|
58
60
|
cyberfusion/CoreApiClient/resources/url_redirects.py,sha256=S113S_8-Xzy040Lt67AetenB-Cjsnyg34prDnr5yf84,2741
|
|
59
61
|
cyberfusion/CoreApiClient/resources/virtual_hosts.py,sha256=mIFeF17_XJtQKkIDXJfrOFQ9M-uOifBKGRIytOnGjNk,5392
|
|
60
|
-
python3_core_api_client-
|
|
61
|
-
python3_core_api_client-
|
|
62
|
-
python3_core_api_client-
|
|
63
|
-
python3_core_api_client-
|
|
62
|
+
python3_core_api_client-9.0.dist-info/METADATA,sha256=enwwTxorg-W11MHg5Jiv-ybfAu5i78cN-dwmjVCtZ3s,8593
|
|
63
|
+
python3_core_api_client-9.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
64
|
+
python3_core_api_client-9.0.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
|
|
65
|
+
python3_core_api_client-9.0.dist-info/RECORD,,
|
|
File without changes
|
{python3_core_api_client-8.1.dist-info → python3_core_api_client-9.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|