共用方式為


SqlServerJobCollection Class

Definition

A class representing a collection of SqlServerJobResource and their operations. Each SqlServerJobResource in the collection will belong to the same instance of SqlServerJobAgentResource. To get a SqlServerJobCollection instance call the GetSqlServerJobs method from an instance of SqlServerJobAgentResource.

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

Constructors

SqlServerJobCollection()

Initializes a new instance of the SqlServerJobCollection 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, SqlServerJobData, CancellationToken)

Creates or updates a job.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}
  • Operation Id: Jobs_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
CreateOrUpdateAsync(WaitUntil, String, SqlServerJobData, CancellationToken)

Creates or updates a job.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}
  • Operation Id: Jobs_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}
  • Operation Id: Jobs_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}
  • Operation Id: Jobs_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
Get(String, CancellationToken)

Gets a job.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}
  • Operation Id: Jobs_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
GetAll(CancellationToken)

Gets a list of jobs.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs
  • Operation Id: Jobs_ListByAgent
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
GetAllAsync(CancellationToken)

Gets a list of jobs.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs
  • Operation Id: Jobs_ListByAgent
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
GetAsync(String, CancellationToken)

Gets a job.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}
  • Operation Id: Jobs_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}
  • Operation Id: Jobs_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}
  • Operation Id: Jobs_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerJobResource
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<SqlServerJobResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SqlServerJobResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to