你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WebAppSourceControl.UpdateDefinitionStages.WithRepositoryType<ParentT> Interface
Type Parameters
- ParentT
the stage of the parent definition to return to after attaching this definition
public interface WithRepositoryType
A web app source control definition allowing repository type to be specified.
Method Summary
Modifier and Type | Method and Description |
---|---|
Web |
withContinuouslyIntegratedGitHubRepository(String url)
Specifies the repository to be a GitHub repository. Continuous integration will be turned on. This repository can be either public or private, but your GitHub access token must have enough privileges to add a webhook to the repository. |
Web |
withContinuouslyIntegratedGitHubRepository(String organization, String repository)
Specifies the repository to be a GitHub repository. Continuous integration will be turned on. This repository can be either public or private, but your GitHub access token must have enough privileges to add a webhook to the repository. |
Web |
withPublicGitRepository(String url)
Specifies the repository to be a public external repository, either Git or Mercurial. Continuous integration will not be turned on. |
Web |
withPublicMercurialRepository(String url)
Specifies the repository to be a public external repository, either Git or Mercurial. Continuous integration will not be turned on. |
Method Details
withContinuouslyIntegratedGitHubRepository
public WithGitHubBranch
Specifies the repository to be a GitHub repository. Continuous integration will be turned on. This repository can be either public or private, but your GitHub access token must have enough privileges to add a webhook to the repository.
Parameters:
Returns:
withContinuouslyIntegratedGitHubRepository
public WithGitHubBranch
Specifies the repository to be a GitHub repository. Continuous integration will be turned on. This repository can be either public or private, but your GitHub access token must have enough privileges to add a webhook to the repository.
Parameters:
Returns:
withPublicGitRepository
public WithBranch
Specifies the repository to be a public external repository, either Git or Mercurial. Continuous integration will not be turned on.
Parameters:
Returns:
withPublicMercurialRepository
public WithBranch
Specifies the repository to be a public external repository, either Git or Mercurial. Continuous integration will not be turned on.
Parameters:
Returns:
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈