Share via


SourceControlOperations interface

Interface representing a SourceControlOperations.

Methods

createOrUpdate(string, string, string, SourceControlCreateOrUpdateParameters, SourceControlCreateOrUpdateOptionalParams)

Create a source control.

delete(string, string, string, SourceControlDeleteOptionalParams)

Delete the source control.

get(string, string, string, SourceControlGetOptionalParams)

Retrieve the source control identified by source control name.

listByAutomationAccount(string, string, SourceControlListByAutomationAccountOptionalParams)

Retrieve a list of source controls.

update(string, string, string, SourceControlUpdateParameters, SourceControlUpdateOptionalParams)

Update a source control.

Method Details

createOrUpdate(string, string, string, SourceControlCreateOrUpdateParameters, SourceControlCreateOrUpdateOptionalParams)

Create a source control.

function createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: SourceControlCreateOrUpdateParameters, options?: SourceControlCreateOrUpdateOptionalParams): Promise<SourceControl>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

sourceControlName

string

The source control name.

parameters
SourceControlCreateOrUpdateParameters

The parameters supplied to the create or update source control operation.

options
SourceControlCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<SourceControl>

delete(string, string, string, SourceControlDeleteOptionalParams)

Delete the source control.

function delete(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: SourceControlDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

sourceControlName

string

The name of source control.

options
SourceControlDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, SourceControlGetOptionalParams)

Retrieve the source control identified by source control name.

function get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: SourceControlGetOptionalParams): Promise<SourceControl>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

sourceControlName

string

The name of source control.

options
SourceControlGetOptionalParams

The options parameters.

Returns

Promise<SourceControl>

listByAutomationAccount(string, string, SourceControlListByAutomationAccountOptionalParams)

Retrieve a list of source controls.

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: SourceControlListByAutomationAccountOptionalParams): PagedAsyncIterableIterator<SourceControl, SourceControl[], PageSettings>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

options
SourceControlListByAutomationAccountOptionalParams

The options parameters.

Returns

update(string, string, string, SourceControlUpdateParameters, SourceControlUpdateOptionalParams)

Update a source control.

function update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: SourceControlUpdateParameters, options?: SourceControlUpdateOptionalParams): Promise<SourceControl>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

sourceControlName

string

The source control name.

parameters
SourceControlUpdateParameters

The parameters supplied to the update source control operation.

options
SourceControlUpdateOptionalParams

The options parameters.

Returns

Promise<SourceControl>