create_service_sync_config
async
¶
create_service_sync_config(
service_name: ResourceName,
repository_provider: RepositoryProvider,
repository_name: RepositoryName,
branch: GitBranchName,
file_path: OpsFilePath,
*,
config_overrides: Optional[AsyncProtonClientConfig] = None,
) -> CreateServiceSyncConfigOutput
Create the Proton Ops configuration file.
Parameters:
-
service_name(ResourceName) –The name of the service the Proton Ops file is for.
-
repository_provider(RepositoryProvider) –The provider type for your repository.
-
repository_name(RepositoryName) –The repository name.
-
branch(GitBranchName) –The repository branch for your Proton Ops file.
-
file_path(OpsFilePath) –The path to the Proton Ops file.
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
5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 | |