Skip to content

Commit e0af59c

Browse files
clean up
Clarify argument requirements and exclusivity in get_custom_source_definition.
1 parent 4bbe0c6 commit e0af59c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

airbyte/cloud/workspaces.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,18 +583,18 @@ def list_custom_source_definitions(
583583

584584
def get_custom_source_definition(
585585
self,
586-
*,
587586
definition_id: str | None = None,
587+
*,
588588
definition_type: Literal["yaml", "docker"],
589589
connector_builder_project_id: str | None = None,
590590
) -> CustomCloudSourceDefinition:
591591
"""Get a specific custom source definition by ID or builder project ID.
592592
593593
Args:
594-
definition_id: The definition ID (optional if connector_builder_project_id is provided)
594+
definition_id: The definition ID. Mutually exclusive with `connector_builder_project_id`.
595595
definition_type: Connector type ("yaml" or "docker"). Required.
596-
connector_builder_project_id: The connector builder project ID (optional, only valid
597-
for "yaml" definition_type)
596+
connector_builder_project_id: The connector builder project ID. Mutually exclusive with
597+
`definition_id`.
598598
599599
Returns:
600600
CustomCloudSourceDefinition object

0 commit comments

Comments
 (0)