connect.repository

connect.repository

Repository resources.

Classes

Name Description
ContentItemRepository Content items GitHub repository information.
ContentItemRepositoryMixin

ContentItemRepository

connect.repository.ContentItemRepository()

Content items GitHub repository information.

See Also

  • Get info: https://docs.posit.co/connect/api/#get-/v1/content/-guid-/repository
  • Delete info: https://docs.posit.co/connect/api/#delete-/v1/content/-guid-/repository
  • Update info: https://docs.posit.co/connect/api/#patch-/v1/content/-guid-/repository

Methods

Name Description
destroy Delete the content’s git repository location.
update Update the content’s repository.
destroy
connect.repository.ContentItemRepository.destroy()

Delete the content’s git repository location.

See Also
  • https://docs.posit.co/connect/api/#delete-/v1/content/-guid-/repository
update
connect.repository.ContentItemRepository.update(
    repository=None
    branch='main'
    directory='.'
    polling=False
)

Update the content’s repository.

Parameters
Name Type Description Default
repository Optional[str] URL for the repository. Default is None. None
branch str The tracked Git branch. Default is ‘main’. 'main'
directory str Directory containing the content. Default is ‘.’ '.'
polling bool Indicates that the Git repository is regularly polled. Default is False. False
Returns
Name Type Description
None
See Also
  • https://docs.posit.co/connect/api/#patch-/v1/content/-guid-/repository

ContentItemRepositoryMixin

connect.repository.ContentItemRepositoryMixin()

Attributes

Name Description
repository

Methods

Name Description
create_repository Create repository.
create_repository
connect.repository.ContentItemRepositoryMixin.create_repository(**attributes)

Create repository.

Parameters
Name Type Description Default
repository str URL for the respository. required
branch str The tracked Git branch. Default is ‘main’. required
directory str Directory containing the content. Default is ‘.’. required
polling bool Indicates that the Git repository is regularly polled. Default is False. required
Returns
Name Type Description
ContentItemRepository