Skip to content

Commit 8a96460

Browse files
committed
format
1 parent 16173f6 commit 8a96460

File tree

2 files changed

+14
-23
lines changed

2 files changed

+14
-23
lines changed

airbyte_cdk/sources/declarative/declarative_component_schema.yaml

+4-13
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ properties:
4242
"$ref": "#/definitions/ConcurrencyLevel"
4343
api_budget:
4444
"$ref": "#/definitions/HTTPAPIBudget"
45-
max_concurrent_async_jobs:
46-
"$ref": "#/definitions/MaxConcurrentAsyncJobs"
45+
max_concurrent_job_count:
46+
title: Maximum Concurrent Async Jobs
47+
description: Maximum number of concurrent async jobs to run. This is often set by the API's maximum number of concurrent jobs on the account level.
48+
type: integer
4749
metadata:
4850
type: object
4951
description: For internal Airbyte use only - DO NOT modify manually. Used by consumers of declarative manifests for storing related metadata.
@@ -2408,17 +2410,6 @@ definitions:
24082410
$parameters:
24092411
type: object
24102412
additionalProperties: true
2411-
MaxConcurrentAsyncJobs:
2412-
title: Maximum Concurrent Async Jobs
2413-
description: Maximum number of concurrent async jobs to run. This is often set by the API's maximum number of concurrent jobs on the account level.
2414-
type: object
2415-
required:
2416-
- max_concurrent_job_count
2417-
properties:
2418-
max_concurrent_job_count:
2419-
title: Maximum Concurrent Job Count
2420-
description: Maximum number of concurrent jobs to run. This is often set by the API's maximum number of concurrent jobs on the account level.
2421-
type: integer
24222413
MinMaxDatetime:
24232414
title: Min-Max Datetime
24242415
description: Compares the provided date against optional minimum or maximum times. The max_datetime serves as the ceiling and will be returned when datetime exceeds it. The min_datetime serves as the floor.

airbyte_cdk/sources/declarative/models/declarative_component_schema.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -929,14 +929,6 @@ class Config:
929929
parameters: Optional[Dict[str, Any]] = Field(None, alias="$parameters")
930930

931931

932-
class MaxConcurrentAsyncJobs(BaseModel):
933-
max_concurrent_job_count: int = Field(
934-
...,
935-
description="Maximum number of concurrent jobs to run. This is often set by the API's maximum number of concurrent jobs on the account level.",
936-
title="Maximum Concurrent Job Count",
937-
)
938-
939-
940932
class MinMaxDatetime(BaseModel):
941933
type: Literal["MinMaxDatetime"]
942934
datetime: str = Field(
@@ -1879,7 +1871,11 @@ class Config:
18791871
spec: Optional[Spec] = None
18801872
concurrency_level: Optional[ConcurrencyLevel] = None
18811873
api_budget: Optional[HTTPAPIBudget] = None
1882-
max_concurrent_async_jobs: Optional[MaxConcurrentAsyncJobs] = None
1874+
max_concurrent_job_count: Optional[int] = Field(
1875+
None,
1876+
description="Maximum number of concurrent async jobs to run. This is often set by the API's maximum number of concurrent jobs on the account level.",
1877+
title="Maximum Concurrent Async Jobs",
1878+
)
18831879
metadata: Optional[Dict[str, Any]] = Field(
18841880
None,
18851881
description="For internal Airbyte use only - DO NOT modify manually. Used by consumers of declarative manifests for storing related metadata.",
@@ -1907,7 +1903,11 @@ class Config:
19071903
spec: Optional[Spec] = None
19081904
concurrency_level: Optional[ConcurrencyLevel] = None
19091905
api_budget: Optional[HTTPAPIBudget] = None
1910-
max_concurrent_async_jobs: Optional[MaxConcurrentAsyncJobs] = None
1906+
max_concurrent_job_count: Optional[int] = Field(
1907+
None,
1908+
description="Maximum number of concurrent async jobs to run. This is often set by the API's maximum number of concurrent jobs on the account level.",
1909+
title="Maximum Concurrent Async Jobs",
1910+
)
19111911
metadata: Optional[Dict[str, Any]] = Field(
19121912
None,
19131913
description="For internal Airbyte use only - DO NOT modify manually. Used by consumers of declarative manifests for storing related metadata.",

0 commit comments

Comments
 (0)