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

ArmAppServiceModelFactory.SiteSourceControlData 方法

定义

初始化 SiteSourceControlData 的新实例。

public static Azure.ResourceManager.AppService.SiteSourceControlData SiteSourceControlData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Uri repoUri = default, string branch = default, bool? isManualIntegration = default, bool? isGitHubAction = default, bool? isDeploymentRollbackEnabled = default, bool? isMercurial = default, Azure.ResourceManager.AppService.Models.GitHubActionConfiguration gitHubActionConfiguration = default, string kind = default);
static member SiteSourceControlData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Uri * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.ResourceManager.AppService.Models.GitHubActionConfiguration * string -> Azure.ResourceManager.AppService.SiteSourceControlData
Public Shared Function SiteSourceControlData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional repoUri As Uri = Nothing, Optional branch As String = Nothing, Optional isManualIntegration As Nullable(Of Boolean) = Nothing, Optional isGitHubAction As Nullable(Of Boolean) = Nothing, Optional isDeploymentRollbackEnabled As Nullable(Of Boolean) = Nothing, Optional isMercurial As Nullable(Of Boolean) = Nothing, Optional gitHubActionConfiguration As GitHubActionConfiguration = Nothing, Optional kind As String = Nothing) As SiteSourceControlData

参数

name
String

名称。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

repoUri
Uri

存储库或源代码管理 URL。

branch
String

用于部署的分支的名称。

isManualIntegration
Nullable<Boolean>

<code>true</code> to limit to manual integration; <代码>false</code> ,用于启用持续集成 (将 Webhook 配置为 GitHub) 等联机存储库。

isGitHubAction
Nullable<Boolean>

<如果通过 GitHub 操作进行部署,则 code>为 true</code> 。

isDeploymentRollbackEnabled
Nullable<Boolean>

<code>true</code> 用于启用部署回滚;否则为 <代码>false</code>。

isMercurial
Nullable<Boolean>

<code>true</code> for a Mercurial repository; <git 存储库的 code>false</code> 。

gitHubActionConfiguration
GitHubActionConfiguration

如果选择了“GitHub 操作”,则为关联的配置。

kind
String

资源类型。

返回

用于模拟的新 SiteSourceControlData 实例。

适用于