create_template_sync_config
¶
create_template_sync_config(
template_name: ResourceName,
template_type: TemplateType,
repository_provider: RepositoryProvider,
repository_name: RepositoryName,
branch: GitBranchName,
*,
config_overrides: Optional[ProtonClientConfig] = None,
subdirectory: Optional[Subdirectory] = None,
) -> CreateTemplateSyncConfigOutput
Set up a template to create new template versions automatically by tracking a linked repository. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
When a commit is pushed to your linked repository, Proton checks for changes to your repository template bundles. If it detects a template bundle change, a new major or minor version of its template is created, if the version doesn’t already exist. For more information, see Template sync configurations in the Proton User Guide.
Parameters:
-
template_name(ResourceName) –The name of your registered template.
-
template_type(TemplateType) –The type of the registered template.
-
repository_provider(RepositoryProvider) –The provider type for your repository.
-
repository_name(RepositoryName) –The repository name (for example,
myrepos/myrepo). -
branch(GitBranchName) –The repository branch for your template.
-
subdirectory(Optional[Subdirectory], default:None) –A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this repository directory.
Raises:
-
AccessDeniedException–There isn't sufficient access for performing this action.
-
ConflictException–The request couldn't be made due to a conflicting operation or resource.
-
InternalServerException–The request failed to register with the service.
-
ServiceQuotaExceededException–A quota was exceeded. For more information, see Proton Quotas in the Proton User Guide.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input is invalid or an out-of-range value was supplied for the input parameter.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_proton/_services/proton.py
6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 | |