ArmAutomationModelFactory.AutomationSourceControlData Method

Definition

Initializes a new instance of AutomationSourceControlData.

public static Azure.ResourceManager.Automation.AutomationSourceControlData AutomationSourceControlData (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, string folderPath = default, bool? isAutoSyncEnabled = default, bool? isAutoPublishRunbookEnabled = default, Azure.ResourceManager.Automation.Models.SourceControlSourceType? sourceType = default, string description = default, DateTimeOffset? createdOn = default, DateTimeOffset? lastModifiedOn = default);
static member AutomationSourceControlData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Uri * string * string * Nullable<bool> * Nullable<bool> * Nullable<Azure.ResourceManager.Automation.Models.SourceControlSourceType> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.ResourceManager.Automation.AutomationSourceControlData
Public Shared Function AutomationSourceControlData (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 folderPath As String = Nothing, Optional isAutoSyncEnabled As Nullable(Of Boolean) = Nothing, Optional isAutoPublishRunbookEnabled As Nullable(Of Boolean) = Nothing, Optional sourceType As Nullable(Of SourceControlSourceType) = Nothing, Optional description As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing) As AutomationSourceControlData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

repoUri
Uri

The repo url of the source control.

branch
String

The repo branch of the source control. Include branch as empty string for VsoTfvc.

folderPath
String

The folder path of the source control.

isAutoSyncEnabled
Nullable<Boolean>

The auto sync of the source control. Default is false.

isAutoPublishRunbookEnabled
Nullable<Boolean>

The auto publish of the source control. Default is true.

sourceType
Nullable<SourceControlSourceType>

The source type. Must be one of VsoGit, VsoTfvc, GitHub.

description
String

The description.

createdOn
Nullable<DateTimeOffset>

The creation time.

lastModifiedOn
Nullable<DateTimeOffset>

The last modified time.

Returns

A new AutomationSourceControlData instance for mocking.

Applies to