|
19 | 19 | ArkPCloudUpdateAccountCredentialsInVault,
|
20 | 20 | ArkPCloudVerifyAccountCredentials,
|
21 | 21 | )
|
| 22 | +from ark_sdk_python.models.services.pcloud.applications import ( |
| 23 | + ArkPCloudAddApplication, |
| 24 | + ArkPCloudAddApplicationAuthMethod, |
| 25 | + ArkPCloudApplicationAuthMethodsFilter, |
| 26 | + ArkPCloudApplicationsFilter, |
| 27 | + ArkPCloudDeleteApplication, |
| 28 | + ArkPCloudDeleteApplicationAuthMethod, |
| 29 | + ArkPCloudGetApplication, |
| 30 | + ArkPCloudGetApplicationAuthMethod, |
| 31 | + ArkPCloudListApplicationAuthMethods, |
| 32 | +) |
22 | 33 | from ark_sdk_python.models.services.pcloud.platforms import (
|
23 | 34 | ArkPCloudActivateTargetPlatform,
|
24 | 35 | ArkPCloudDeactivateTargetPlatform,
|
|
120 | 131 | schemas=PCLOUD_PLATFORMS_ACTION_TO_SCHEMA_MAP,
|
121 | 132 | )
|
122 | 133 |
|
| 134 | +# PCloud Applications Definitions |
| 135 | +PCLOUD_APPLICATIONS_ACTION_TO_SCHEMA_MAP: Final[Dict[str, Optional[Type[ArkModel]]]] = { |
| 136 | + 'add-application': ArkPCloudAddApplication, |
| 137 | + 'delete-application': ArkPCloudDeleteApplication, |
| 138 | + 'list-applications': None, |
| 139 | + 'list-applications-by': ArkPCloudApplicationsFilter, |
| 140 | + 'application': ArkPCloudGetApplication, |
| 141 | + 'applications-stats': None, |
| 142 | + 'add-application-auth-method': ArkPCloudAddApplicationAuthMethod, |
| 143 | + 'delete-application-auth-method': ArkPCloudDeleteApplicationAuthMethod, |
| 144 | + 'list-application-auth-methods': ArkPCloudListApplicationAuthMethods, |
| 145 | + 'list-application-auth-methods-by': ArkPCloudApplicationAuthMethodsFilter, |
| 146 | + 'application-auth-method': ArkPCloudGetApplicationAuthMethod, |
| 147 | +} |
| 148 | +PCLOUD_APPLICATIONS_ACTION: Final[ArkServiceActionDefinition] = ArkServiceActionDefinition( |
| 149 | + action_name='applications', |
| 150 | + schemas=PCLOUD_APPLICATIONS_ACTION_TO_SCHEMA_MAP, |
| 151 | +) |
| 152 | + |
123 | 153 | # Service Actions Definition
|
124 | 154 | PCLOUD_ACTIONS: Final[ArkServiceActionDefinition] = ArkServiceActionDefinition(
|
125 | 155 | action_name='pcloud',
|
126 | 156 | subactions=[
|
127 | 157 | PCLOUD_ACCOUNTS_ACTION,
|
128 | 158 | PCLOUD_PLATFORMS_ACTION,
|
129 | 159 | PCLOUD_SAFES_ACTION,
|
| 160 | + PCLOUD_APPLICATIONS_ACTION, |
130 | 161 | ],
|
131 | 162 | )
|
0 commit comments