你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebAppSourceControl.DefinitionStages.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
WebAppSourceControl.DefinitionStages.WithGitHubBranch<ParentT> 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.

WebAppSourceControl.DefinitionStages.WithGitHubBranch<ParentT> 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.

WebAppSourceControl.DefinitionStages.WithBranch<ParentT> withPublicGitRepository(String url)

Specifies the repository to be a public external repository, either Git or Mercurial. Continuous integration will not be turned on.

WebAppSourceControl.DefinitionStages.WithBranch<ParentT> 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 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.

Parameters:

url - the URL pointing to the repository, e.g. https://github.com/Azure/azure-sdk-for-java

Returns:

the next stage of the definition

withContinuouslyIntegratedGitHubRepository

public WithGitHubBranch 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.

Parameters:

organization - the user name or organization name the GitHub repository belongs to, e.g. Azure
repository - the name of the repository, e.g. azure-sdk-for-java

Returns:

the next stage of the definition

withPublicGitRepository

public WithBranch withPublicGitRepository(String url)

Specifies the repository to be a public external repository, either Git or Mercurial. Continuous integration will not be turned on.

Parameters:

url - the url of the Git repository

Returns:

the next stage of the definition

withPublicMercurialRepository

public WithBranch withPublicMercurialRepository(String url)

Specifies the repository to be a public external repository, either Git or Mercurial. Continuous integration will not be turned on.

Parameters:

url - the url of the Mercurial repository

Returns:

the next stage of the definition

Applies to