Interface RegistrySourceTrigger.UpdateStages.RepositoryBranchAndAuth

  • All Known Subinterfaces:
    RegistrySourceTrigger.Update
    Enclosing interface:
    RegistrySourceTrigger.UpdateStages

    public static interface RegistrySourceTrigger.UpdateStages.RepositoryBranchAndAuth
    The stage of the container registry source trigger update allowing to specify the branch of the repository and authentication credentials if needed to interact with the source control repository.
    • Method Detail

      • withRepositoryBranch

        RegistrySourceTrigger.Update withRepositoryBranch​(String branch)
        The function that specifies the branch of the respository to use.
        Parameters:
        branch - the repository branch.
        Returns:
        the next stage of the container registry source trigger definition.
      • withRepositoryAuthentication

        RegistrySourceTrigger.Update withRepositoryAuthentication​(TokenType tokenType,
                                                                  String token)
        The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.
        Parameters:
        tokenType - the type of the token used to authenticate to the source control repository.
        token - the token used to authenticate to the source control repository.
        Returns:
        the next stage of the container registry source trigger definition.
      • withRepositoryAuthentication

        RegistrySourceTrigger.Update withRepositoryAuthentication​(TokenType tokenType,
                                                                  String token,
                                                                  String refreshToken,
                                                                  String scope,
                                                                  int expiresIn)
        The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.
        Parameters:
        tokenType - the type of the token used to authenticate to the source control repository.
        token - the token used to authenticate to the source control repository.
        refreshToken - the token that is used to refresh the access token.
        scope - the scope of the access token.
        expiresIn - time in seconds that the token remains valid.
        Returns:
        the next stage of the container registry source trigger definition.