Interface Jobs
-
public interface Jobs
Resource collection API of Jobs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AzureBackupJobResource
get(String resourceGroupName, String vaultName, String jobId)
Gets a job with id in a backup vault.com.azure.core.http.rest.Response<AzureBackupJobResource>
getWithResponse(String resourceGroupName, String vaultName, String jobId, com.azure.core.util.Context context)
Gets a job with id in a backup vault.com.azure.core.http.rest.PagedIterable<AzureBackupJobResource>
list(String resourceGroupName, String vaultName)
Returns list of jobs belonging to a backup vault.com.azure.core.http.rest.PagedIterable<AzureBackupJobResource>
list(String resourceGroupName, String vaultName, com.azure.core.util.Context context)
Returns list of jobs belonging to a backup vault.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<AzureBackupJobResource> list(String resourceGroupName, String vaultName)
Returns list of jobs belonging to a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.- Returns:
- list of AzureBackup Job resources.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<AzureBackupJobResource> list(String resourceGroupName, String vaultName, com.azure.core.util.Context context)
Returns list of jobs belonging to a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.context
- The context to associate with this operation.- Returns:
- list of AzureBackup Job resources.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
AzureBackupJobResource get(String resourceGroupName, String vaultName, String jobId)
Gets a job with id in a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.jobId
- The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).- Returns:
- a job with id in a backup vault.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<AzureBackupJobResource> getWithResponse(String resourceGroupName, String vaultName, String jobId, com.azure.core.util.Context context)
Gets a job with id in a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.jobId
- The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).context
- The context to associate with this operation.- Returns:
- a job with id in a backup vault.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-