Udostępnij za pośrednictwem


AutomationJobCollection Class

Definition

A class representing a collection of AutomationJobResource and their operations. Each AutomationJobResource in the collection will belong to the same instance of AutomationAccountResource. To get an AutomationJobCollection instance call the GetAutomationJobs method from an instance of AutomationAccountResource.

public class AutomationJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Automation.Models.AutomationJobCollectionItemData>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Automation.Models.AutomationJobCollectionItemData>
type AutomationJobCollection = class
    inherit ArmCollection
    interface seq<AutomationJobCollectionItemData>
    interface IEnumerable
    interface IAsyncEnumerable<AutomationJobCollectionItemData>
Public Class AutomationJobCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of AutomationJobCollectionItemData), IEnumerable(Of AutomationJobCollectionItemData)
Inheritance
AutomationJobCollection
Implements

Constructors

AutomationJobCollection()

Initializes a new instance of the AutomationJobCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, AutomationJobCreateOrUpdateContent, String, CancellationToken)

Create a job of the runbook.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  • Operation Id: Job_Create
CreateOrUpdateAsync(WaitUntil, String, AutomationJobCreateOrUpdateContent, String, CancellationToken)

Create a job of the runbook.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  • Operation Id: Job_Create
Exists(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  • Operation Id: Job_Get
ExistsAsync(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  • Operation Id: Job_Get
Get(String, String, CancellationToken)

Retrieve the job identified by job name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  • Operation Id: Job_Get
GetAll(String, String, CancellationToken)

Retrieve a list of jobs.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs
  • Operation Id: Job_ListByAutomationAccount
GetAllAsync(String, String, CancellationToken)

Retrieve a list of jobs.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs
  • Operation Id: Job_ListByAutomationAccount
GetAsync(String, String, CancellationToken)

Retrieve the job identified by job name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  • Operation Id: Job_Get
GetIfExists(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  • Operation Id: Job_Get
GetIfExistsAsync(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  • Operation Id: Job_Get
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<AutomationJobCollectionItemData>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<AutomationJobCollectionItemData>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to