Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Jobs

Package version

Class representing a Jobs.

Hierarchy

  • Jobs

Index

Constructors

constructor

Methods

create

  • Creates a new job or updates an existing job in the specified subscription.

    Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • body: PutJobParameters

      The parameters used for creating the job

    • Optional options: Models.JobsCreateOptionalParams

    Returns Promise<Models.JobsCreateResponse>

    Promise<Models.JobsCreateResponse>

  • Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • body: PutJobParameters

      The parameters used for creating the job

    • callback: msRest.ServiceCallback<JobResponse>

      The callback

    Returns void

  • Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • body: PutJobParameters

      The parameters used for creating the job

    • options: JobsCreateOptionalParams

      The optional parameters

    • callback: msRest.ServiceCallback<JobResponse>

      The callback

    Returns void

deleteMethod

  • deleteMethod(jobName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>
  • deleteMethod(jobName: string, resourceGroupName: string, callback: msRest.ServiceCallback<void>): void
  • deleteMethod(jobName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void
  • Deletes an existing job. Only jobs in the Creating or Completed states can be deleted.

    Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRest.RestResponse>

    Promise<msRest.RestResponse>

  • Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

  • Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<void>

      The callback

    Returns void

get

  • get(jobName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.JobsGetResponse>
  • get(jobName: string, resourceGroupName: string, callback: msRest.ServiceCallback<JobResponse>): void
  • get(jobName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<JobResponse>): void
  • Gets information about an existing job.

    Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.JobsGetResponse>

    Promise<Models.JobsGetResponse>

  • Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • callback: msRest.ServiceCallback<JobResponse>

      The callback

    Returns void

  • Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<JobResponse>

      The callback

    Returns void

listByResourceGroup

  • listByResourceGroup(resourceGroupName: string, options?: Models.JobsListByResourceGroupOptionalParams): Promise<Models.JobsListByResourceGroupResponse>
  • listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<ListJobsResponse>): void
  • listByResourceGroup(resourceGroupName: string, options: JobsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback<ListJobsResponse>): void
  • Returns all active and completed jobs in a resource group.

    Parameters

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • Optional options: Models.JobsListByResourceGroupOptionalParams

    Returns Promise<Models.JobsListByResourceGroupResponse>

    Promise<Models.JobsListByResourceGroupResponse>

  • Parameters

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • callback: msRest.ServiceCallback<ListJobsResponse>

      The callback

    Returns void

  • Parameters

    Returns void

listByResourceGroupNext

  • listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.JobsListByResourceGroupNextResponse>
  • listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<ListJobsResponse>): void
  • listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<ListJobsResponse>): void
  • Returns all active and completed jobs in a resource group.

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.JobsListByResourceGroupNextResponse>

    Promise<Models.JobsListByResourceGroupNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<ListJobsResponse>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<ListJobsResponse>

      The callback

    Returns void

listBySubscription

listBySubscriptionNext

  • listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.JobsListBySubscriptionNextResponse>
  • listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<ListJobsResponse>): void
  • listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<ListJobsResponse>): void
  • Returns all active and completed jobs in a subscription.

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.JobsListBySubscriptionNextResponse>

    Promise<Models.JobsListBySubscriptionNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<ListJobsResponse>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<ListJobsResponse>

      The callback

    Returns void

update

  • update(jobName: string, resourceGroupName: string, body: UpdateJobParameters, options?: msRest.RequestOptionsBase): Promise<Models.JobsUpdateResponse>
  • update(jobName: string, resourceGroupName: string, body: UpdateJobParameters, callback: msRest.ServiceCallback<JobResponse>): void
  • update(jobName: string, resourceGroupName: string, body: UpdateJobParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<JobResponse>): void
  • Updates specific properties of a job. You can call this operation to notify the Import/Export service that the hard drives comprising the import or export job have been shipped to the Microsoft data center. It can also be used to cancel an existing job.

    Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • body: UpdateJobParameters

      The parameters to update in the job

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.JobsUpdateResponse>

    Promise<Models.JobsUpdateResponse>

  • Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • body: UpdateJobParameters

      The parameters to update in the job

    • callback: msRest.ServiceCallback<JobResponse>

      The callback

    Returns void

  • Parameters

    • jobName: string

      The name of the import/export job.

    • resourceGroupName: string

      The resource group name uniquely identifies the resource group within the user subscription.

    • body: UpdateJobParameters

      The parameters to update in the job

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<JobResponse>

      The callback

    Returns void

Generated using TypeDoc