feat: add level config to catalog-backend-module-bitbucket-cloud plugin

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2024-09-26 15:36:34 +02:00
parent 2e406568d2
commit 3574c51b24
@@ -59,6 +59,14 @@ export interface Config {
* (Optional) TaskScheduleDefinition for the discovery.
*/
schedule?: SchedulerServiceTaskScheduleDefinitionConfig;
/**
* (Optional) On what level discovery should take place, affecting Bitbucket Cloud API limits.
*
* Possible values:
* - `workspace` (default): 1 API call per workspace, limited to 900 repositories per workspace.
* - `project`: 1 API call per project, limited to 900 repositories per project.
*/
level?: 'workspace' | 'project';
}
| {
[name: string]: {
@@ -92,6 +100,14 @@ export interface Config {
* (Optional) TaskScheduleDefinition for the discovery.
*/
schedule?: SchedulerServiceTaskScheduleDefinitionConfig;
/**
* (Optional) On what level discovery should take place, affecting Bitbucket Cloud API limits.
*
* Possible values:
* - `workspace` (default): 1 API call per workspace, limited to 900 repositories per workspace.
* - `project`: 1 API call per project, limited to 900 repositories per project.
*/
level?: 'workspace' | 'project';
};
};
};