AutomationClient class

Extends

Constructors

AutomationClient(ServiceClientCredentials | TokenCredential, string, CountType, AutomationClientOptions)

Initializes a new instance of the AutomationClient class.

Properties

activity
agentRegistrationInformation
automationAccount
certificate
connection
connectionType
credential
dscCompilationJob
dscCompilationJobStream
dscConfiguration
dscNode
dscNodeConfiguration
fields
hybridRunbookWorkerGroup
job
jobSchedule
jobStream
keys
linkedWorkspace
module
nodeCountInformation
nodeReports
objectDataTypes
operations
python2Package
runbook
runbookDraft
schedule
softwareUpdateConfigurationMachineRuns
softwareUpdateConfigurationRuns
softwareUpdateConfigurations
sourceControl
sourceControlSyncJob
sourceControlSyncJobStreams
statistics
testJob
testJobStreams
usages
variable
watcher
webhook

Inherited Properties

acceptLanguage
countType1
credentials
longRunningOperationRetryTimeout

The retry timeout in seconds for Long Running Operations. Default value is 30.

subscriptionId

Inherited Methods

beginLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)

Send the initial request of a LRO (long running operation) and get back an HttpLongRunningOperationResponse that provides methods for polling the LRO and checking if the LRO is finished.

restoreLROPoller(LROPollState)

Restore an LROPoller from the provided LROPollState. This method can be used to recreate an LROPoller on a different process or machine.

sendLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)

Provides a mechanism to make a request that will poll and provide the final result.

sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)

Send the initial request of a LRO (long running operation) and get back an LROPoller that provides methods for polling the LRO and checking if the LRO is finished.

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Send an HTTP request that is populated using the provided OperationSpec.

sendRequest(RequestPrepareOptions | WebResourceLike)

Send the provided httpRequest.

Constructor Details

AutomationClient(ServiceClientCredentials | TokenCredential, string, CountType, AutomationClientOptions)

Initializes a new instance of the AutomationClient class.

new AutomationClient(credentials: ServiceClientCredentials | TokenCredential, subscriptionId: string, countType1: CountType, options?: AutomationClientOptions)

Parameters

credentials

ServiceClientCredentials | TokenCredential

Credentials needed for the client to connect to Azure. Credentials implementing the TokenCredential interface from the @azure/identity package are recommended. For more information about these credentials, see https://www.npmjs.com/package/@azure/identity. Credentials implementing the ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and @azure/ms-rest-browserauth are also supported.

subscriptionId

string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

countType1
CountType

The type of counts to retrieve. Possible values include: 'status', 'nodeconfiguration'

options
AutomationClientOptions

The parameter options

Property Details

activity

activity: ActivityOperations

Property Value

agentRegistrationInformation

agentRegistrationInformation: AgentRegistrationInformation

Property Value

automationAccount

automationAccount: AutomationAccountOperations

Property Value

certificate

certificate: CertificateOperations

Property Value

connection

connection: ConnectionOperations

Property Value

connectionType

connectionType: ConnectionTypeOperations

Property Value

credential

credential: CredentialOperations

Property Value

dscCompilationJob

dscCompilationJob: DscCompilationJobOperations

Property Value

dscCompilationJobStream

dscCompilationJobStream: DscCompilationJobStream

Property Value

dscConfiguration

dscConfiguration: DscConfigurationOperations

Property Value

dscNode

dscNode: DscNodeOperations

Property Value

dscNodeConfiguration

dscNodeConfiguration: DscNodeConfigurationOperations

Property Value

fields

fields: Fields

Property Value

hybridRunbookWorkerGroup

hybridRunbookWorkerGroup: HybridRunbookWorkerGroupOperations

Property Value

job

job: JobOperations

Property Value

jobSchedule

jobSchedule: JobScheduleOperations

Property Value

jobStream

jobStream: JobStreamOperations

Property Value

keys

keys: Keys

Property Value

linkedWorkspace

linkedWorkspace: LinkedWorkspaceOperations

Property Value

module

module: ModuleOperations

Property Value

nodeCountInformation

nodeCountInformation: NodeCountInformation

Property Value

nodeReports

nodeReports: NodeReports

Property Value

objectDataTypes

objectDataTypes: ObjectDataTypes

Property Value

operations

operations: Operations

Property Value

python2Package

python2Package: Python2Package

Property Value

runbook

runbook: RunbookOperations

Property Value

runbookDraft

runbookDraft: RunbookDraftOperations

Property Value

schedule

schedule: ScheduleOperations

Property Value

softwareUpdateConfigurationMachineRuns

softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns

Property Value

softwareUpdateConfigurationRuns

softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns

Property Value

softwareUpdateConfigurations

softwareUpdateConfigurations: SoftwareUpdateConfigurations

Property Value

sourceControl

sourceControl: SourceControlOperations

Property Value

sourceControlSyncJob

sourceControlSyncJob: SourceControlSyncJobOperations

Property Value

sourceControlSyncJobStreams

sourceControlSyncJobStreams: SourceControlSyncJobStreams

Property Value

statistics

statistics: StatisticsOperations

Property Value

testJob

testJob: TestJobOperations

Property Value

testJobStreams

testJobStreams: TestJobStreams

Property Value

usages

usages: Usages

Property Value

variable

variable: VariableOperations

Property Value

watcher

watcher: WatcherOperations

Property Value

webhook

webhook: WebhookOperations

Property Value

Inherited Property Details

acceptLanguage

acceptLanguage: string

Property Value

string

Inherited From AutomationClientContext.acceptLanguage

countType1

countType1: CountType

Property Value

Inherited From AutomationClientContext.countType1

credentials

credentials: ServiceClientCredentials | TokenCredential

Property Value

Inherited From AutomationClientContext.credentials

longRunningOperationRetryTimeout

The retry timeout in seconds for Long Running Operations. Default value is 30.

longRunningOperationRetryTimeout?: number

Property Value

number

Inherited From AutomationClientContext.longRunningOperationRetryTimeout

subscriptionId

subscriptionId: string

Property Value

string

Inherited From AutomationClientContext.subscriptionId

Inherited Method Details

beginLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)

Send the initial request of a LRO (long running operation) and get back an HttpLongRunningOperationResponse that provides methods for polling the LRO and checking if the LRO is finished.

function beginLongRunningRequest(request: RequestPrepareOptions | WebResource, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

request

RequestPrepareOptions | WebResource

The request object

options
RequestOptionsBase

Additional options to be sent while making the request

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

The HttpLongRunningOperationResponse that provides methods for interacting with the LRO.

Inherited From AutomationClientContext.beginLongRunningRequest

restoreLROPoller(LROPollState)

Restore an LROPoller from the provided LROPollState. This method can be used to recreate an LROPoller on a different process or machine.

function restoreLROPoller(lroPollState: LROPollState): LROPoller

Parameters

lroPollState
@azure/ms-rest-azure-js.LROPollState

Returns

@azure/ms-rest-azure-js.LROPoller

Inherited From AutomationClientContext.restoreLROPoller

sendLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)

Provides a mechanism to make a request that will poll and provide the final result.

function sendLongRunningRequest(request: RequestPrepareOptions | WebResource, options?: RequestOptionsBase): Promise<HttpOperationResponse>

Parameters

request

RequestPrepareOptions | WebResource

The request object

options
RequestOptionsBase

Additional options to be sent while making the request

Returns

The HttpOperationResponse containing the final polling request, response and the responseBody.

Inherited From AutomationClientContext.sendLongRunningRequest

sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)

Send the initial request of a LRO (long running operation) and get back an LROPoller that provides methods for polling the LRO and checking if the LRO is finished.

function sendLRORequest(operationArguments: OperationArguments, operationSpec: OperationSpec, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

operationArguments
OperationArguments

The arguments to the operation.

operationSpec
OperationSpec

The specification for the operation.

options
RequestOptionsBase

Additional options to be sent while making the request.

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

The LROPoller object that provides methods for interacting with the LRO.

Inherited From AutomationClientContext.sendLRORequest

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Send an HTTP request that is populated using the provided OperationSpec.

function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>

Parameters

operationArguments
OperationArguments

The arguments that the HTTP request's templated values will be populated from.

operationSpec
OperationSpec

The OperationSpec to use to populate the httpRequest.

callback

ServiceCallback<any>

The callback to call when the response is received.

Returns

Promise<RestResponse>

Inherited From AutomationClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Send the provided httpRequest.

function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>

Parameters

Returns

Inherited From AutomationClientContext.sendRequest