SourceControlOperations class

Class representing a SourceControlOperations.

Constructors

SourceControlOperations(AutomationClientContext)

Create a SourceControlOperations.

Methods

createOrUpdate(string, string, string, SourceControlCreateOrUpdateParameters, RequestOptionsBase)

Create a source control.

createOrUpdate(string, string, string, SourceControlCreateOrUpdateParameters, RequestOptionsBase, ServiceCallback<SourceControl>)
createOrUpdate(string, string, string, SourceControlCreateOrUpdateParameters, ServiceCallback<SourceControl>)
deleteMethod(string, string, string, RequestOptionsBase)

Delete the source control.

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, RequestOptionsBase)

Retrieve the source control identified by source control name.

get(string, string, string, RequestOptionsBase, ServiceCallback<SourceControl>)
get(string, string, string, ServiceCallback<SourceControl>)
listByAutomationAccount(string, string, ServiceCallback<SourceControlListResult>)
listByAutomationAccount(string, string, SourceControlListByAutomationAccountOptionalParams)

Retrieve a list of source controls.

listByAutomationAccount(string, string, SourceControlListByAutomationAccountOptionalParams, ServiceCallback<SourceControlListResult>)
listByAutomationAccountNext(string, RequestOptionsBase)

Retrieve a list of source controls.

listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<SourceControlListResult>)
listByAutomationAccountNext(string, ServiceCallback<SourceControlListResult>)
update(string, string, string, SourceControlUpdateParameters, RequestOptionsBase)

Update a source control.

update(string, string, string, SourceControlUpdateParameters, RequestOptionsBase, ServiceCallback<SourceControl>)
update(string, string, string, SourceControlUpdateParameters, ServiceCallback<SourceControl>)

Constructor Details

SourceControlOperations(AutomationClientContext)

Create a SourceControlOperations.

new SourceControlOperations(client: AutomationClientContext)

Parameters

client
AutomationClientContext

Reference to the service client.

Method Details

createOrUpdate(string, string, string, SourceControlCreateOrUpdateParameters, RequestOptionsBase)

Create a source control.

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

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
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SourceControlCreateOrUpdateResponse>

createOrUpdate(string, string, string, SourceControlCreateOrUpdateParameters, RequestOptionsBase, ServiceCallback<SourceControl>)

function createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: SourceControlCreateOrUpdateParameters, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

callback

ServiceCallback<SourceControl>

The callback

createOrUpdate(string, string, string, SourceControlCreateOrUpdateParameters, ServiceCallback<SourceControl>)

function createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: SourceControlCreateOrUpdateParameters, callback: ServiceCallback<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.

callback

ServiceCallback<SourceControl>

The callback

deleteMethod(string, string, string, RequestOptionsBase)

Delete the source control.

function deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: RequestOptionsBase): Promise<RestResponse>

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
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback<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.

callback

ServiceCallback<void>

The callback

get(string, string, string, RequestOptionsBase)

Retrieve the source control identified by source control name.

function get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: RequestOptionsBase): Promise<SourceControlGetResponse>

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
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SourceControlGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<SourceControl>)

function get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

callback

ServiceCallback<SourceControl>

The callback

get(string, string, string, ServiceCallback<SourceControl>)

function get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: ServiceCallback<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.

callback

ServiceCallback<SourceControl>

The callback

listByAutomationAccount(string, string, ServiceCallback<SourceControlListResult>)

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback<SourceControlListResult>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

callback

ServiceCallback<SourceControlListResult>

The callback

listByAutomationAccount(string, string, SourceControlListByAutomationAccountOptionalParams)

Retrieve a list of source controls.

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: SourceControlListByAutomationAccountOptionalParams): Promise<SourceControlListByAutomationAccountResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

options
SourceControlListByAutomationAccountOptionalParams

The optional parameters

Returns

Promise<Models.SourceControlListByAutomationAccountResponse>

listByAutomationAccount(string, string, SourceControlListByAutomationAccountOptionalParams, ServiceCallback<SourceControlListResult>)

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: SourceControlListByAutomationAccountOptionalParams, callback: ServiceCallback<SourceControlListResult>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

options
SourceControlListByAutomationAccountOptionalParams

The optional parameters

callback

ServiceCallback<SourceControlListResult>

The callback

listByAutomationAccountNext(string, RequestOptionsBase)

Retrieve a list of source controls.

function listByAutomationAccountNext(nextPageLink: string, options?: RequestOptionsBase): Promise<SourceControlListByAutomationAccountNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SourceControlListByAutomationAccountNextResponse>

listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<SourceControlListResult>)

function listByAutomationAccountNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<SourceControlListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<SourceControlListResult>

The callback

listByAutomationAccountNext(string, ServiceCallback<SourceControlListResult>)

function listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback<SourceControlListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<SourceControlListResult>

The callback

update(string, string, string, SourceControlUpdateParameters, RequestOptionsBase)

Update a source control.

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

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
RequestOptionsBase

The optional parameters

Returns

Promise<Models.SourceControlUpdateResponse>

update(string, string, string, SourceControlUpdateParameters, RequestOptionsBase, ServiceCallback<SourceControl>)

function update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: SourceControlUpdateParameters, options: RequestOptionsBase, callback: ServiceCallback<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
RequestOptionsBase

The optional parameters

callback

ServiceCallback<SourceControl>

The callback

update(string, string, string, SourceControlUpdateParameters, ServiceCallback<SourceControl>)

function update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: SourceControlUpdateParameters, callback: ServiceCallback<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.

callback

ServiceCallback<SourceControl>

The callback