create_template_sync_config
async
¶
create_template_sync_config(
template_name: ResourceName,
template_type: TemplateType,
repository_provider: RepositoryProvider,
repository_name: RepositoryName,
branch: GitBranchName,
*,
config_overrides: Optional[AsyncProtonClientConfig] = 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/async_proton.py
6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 | |