C# Class Microsoft.WindowsAzure.Commands.Utilities.Scheduler.SchedulerMgmntClient

Show file Open project: Azure/azure-powershell

Private Properties

Property Type Description
GetEndTime string
GetHistoryDetails Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobHistoryDetail
GetSchedulerJobCollection List
GetSchedulerJobs List
PopulateErrorAction Microsoft.WindowsAzure.Scheduler.Models.JobErrorAction
PopulateExistingJobParams Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateParameters
SetHttpAuthentication Microsoft.WindowsAzure.Scheduler.Models.HttpAuthentication
SetRecurrenceSchedule Microsoft.WindowsAzure.Scheduler.Models.JobRecurrenceSchedule

Public Methods

Method Description
CreateHttpJob ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, string &status ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail

Creates a new Http Scheduler job

CreateStorageJob ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, string &status ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail

Creates a Storage Queue Scheduler job

DeleteJob ( string jobCollection, string jobName, string region = "" ) : bool
DeleteJobCollection ( string jobCollection, string region = "" ) : bool
GetAvailableRegions ( ) : List
GetJob ( string region, string jobCollection, string job = "", string state = "" ) : List
GetJobCollection ( string region = "", string jobCollection = "" ) : List
GetJobDetail ( string jobCollection, string job, string cloudService ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail
GetJobHistory ( string jobCollection, string job, string region, string jobStatus = "" ) : List
PatchHttpJob ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, string &status ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail

Updates given Http Scheduler job

PatchStorageJob ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, string &status ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail

Updates given Storage Queue Scheduler job

SchedulerMgmntClient ( AzureSMProfile profile, AzureSubscription subscription ) : System

Creates new Scheduler Management Convenience Client

Private Methods

Method Description
GetEndTime ( Microsoft.WindowsAzure.Scheduler.Models.Job job ) : string
GetHistoryDetails ( string message ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobHistoryDetail
GetSchedulerJobCollection ( CloudServiceListResponse cloudService, string jobCollection ) : List
GetSchedulerJobs ( string cloudService, string jobCollection ) : List
PopulateErrorAction ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest ) : Microsoft.WindowsAzure.Scheduler.Models.JobErrorAction

Populates ErrorAction values from the request

PopulateExistingJobParams ( Microsoft.WindowsAzure.Scheduler.Models.Job job, Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, JobActionType type ) : Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateParameters

If a scheduler job already exists, this will merge the existing job config values with the request

SetHttpAuthentication ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, Microsoft.WindowsAzure.Scheduler.Models.JobCreateOrUpdateParameters jobUpdateParams ) : Microsoft.WindowsAzure.Scheduler.Models.HttpAuthentication
SetRecurrenceSchedule ( Microsoft.WindowsAzure.Scheduler.Models.JobRecurrenceSchedule jobRecurrenceSchedule ) : Microsoft.WindowsAzure.Scheduler.Models.JobRecurrenceSchedule

Existing bug in SDK where recurrence counts are set to 0 instead of null

Method Details

CreateHttpJob() public method

Creates a new Http Scheduler job
public CreateHttpJob ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, string &status ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail
jobRequest Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams Request values
status string Status of create action
return Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail

CreateStorageJob() public method

Creates a Storage Queue Scheduler job
public CreateStorageJob ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, string &status ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail
jobRequest Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams Request values
status string Status of create action
return Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail

DeleteJob() public method

public DeleteJob ( string jobCollection, string jobName, string region = "" ) : bool
jobCollection string
jobName string
region string
return bool

DeleteJobCollection() public method

public DeleteJobCollection ( string jobCollection, string region = "" ) : bool
jobCollection string
region string
return bool

GetAvailableRegions() public method

public GetAvailableRegions ( ) : List
return List

GetJob() public method

public GetJob ( string region, string jobCollection, string job = "", string state = "" ) : List
region string
jobCollection string
job string
state string
return List

GetJobCollection() public method

public GetJobCollection ( string region = "", string jobCollection = "" ) : List
region string
jobCollection string
return List

GetJobDetail() public method

public GetJobDetail ( string jobCollection, string job, string cloudService ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail
jobCollection string
job string
cloudService string
return Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail

GetJobHistory() public method

public GetJobHistory ( string jobCollection, string job, string region, string jobStatus = "" ) : List
jobCollection string
job string
region string
jobStatus string
return List

PatchHttpJob() public method

Updates given Http Scheduler job
public PatchHttpJob ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, string &status ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail
jobRequest Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams Request values
status string Status of uodate operation
return Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail

PatchStorageJob() public method

Updates given Storage Queue Scheduler job
public PatchStorageJob ( Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams jobRequest, string &status ) : Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail
jobRequest Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSCreateJobParams Request values
status string Status of uodate operation
return Microsoft.WindowsAzure.Commands.Utilities.Scheduler.Model.PSJobDetail

SchedulerMgmntClient() public method

Creates new Scheduler Management Convenience Client
public SchedulerMgmntClient ( AzureSMProfile profile, AzureSubscription subscription ) : System
profile AzureSMProfile
subscription AzureSubscription Subscription containing websites to manipulate
return System