All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.storagecache.fluent.ImportJobsClient Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for StorageCache Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Managed Lustre provides a fully managed Lustre® file system, integrated with Blob storage, for use on demand. These operations create and manage Azure Managed Lustre file systems. Package tag package-2024-03.

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.storagecache.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.storagecache.fluent.models.ImportJobInner;
import com.azure.resourcemanager.storagecache.models.ImportJobUpdate;

/**
 * An instance of this class provides access to all the operations defined in ImportJobsClient.
 */
public interface ImportJobsClient {
    /**
     * Schedules an import job for deletion.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of long-running operation.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller, Void> beginDelete(String resourceGroupName, String amlFilesystemName,
        String importJobName);

    /**
     * Schedules an import job for deletion.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of long-running operation.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller, Void> beginDelete(String resourceGroupName, String amlFilesystemName,
        String importJobName, Context context);

    /**
     * Schedules an import job for deletion.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    void delete(String resourceGroupName, String amlFilesystemName, String importJobName);

    /**
     * Schedules an import job for deletion.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    void delete(String resourceGroupName, String amlFilesystemName, String importJobName, Context context);

    /**
     * Returns an import job.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an import job instance along with {@link Response}.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    Response getWithResponse(String resourceGroupName, String amlFilesystemName, String importJobName,
        Context context);

    /**
     * Returns an import job.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an import job instance.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    ImportJobInner get(String resourceGroupName, String amlFilesystemName, String importJobName);

    /**
     * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param importJob Object containing the user-selectable properties of the import job. If read-only properties are
     * included, they must match the existing values of those properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of an import job instance.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller, ImportJobInner> beginCreateOrUpdate(String resourceGroupName,
        String amlFilesystemName, String importJobName, ImportJobInner importJob);

    /**
     * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param importJob Object containing the user-selectable properties of the import job. If read-only properties are
     * included, they must match the existing values of those properties.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of an import job instance.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller, ImportJobInner> beginCreateOrUpdate(String resourceGroupName,
        String amlFilesystemName, String importJobName, ImportJobInner importJob, Context context);

    /**
     * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param importJob Object containing the user-selectable properties of the import job. If read-only properties are
     * included, they must match the existing values of those properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an import job instance.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    ImportJobInner createOrUpdate(String resourceGroupName, String amlFilesystemName, String importJobName,
        ImportJobInner importJob);

    /**
     * Create or update an import job. Import jobs are automatically deleted 72 hours after completion.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param importJob Object containing the user-selectable properties of the import job. If read-only properties are
     * included, they must match the existing values of those properties.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an import job instance.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    ImportJobInner createOrUpdate(String resourceGroupName, String amlFilesystemName, String importJobName,
        ImportJobInner importJob, Context context);

    /**
     * Update an import job instance.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param importJob Object containing the user-selectable properties of the import job. If read-only properties are
     * included, they must match the existing values of those properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of an import job instance.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller, ImportJobInner> beginUpdate(String resourceGroupName,
        String amlFilesystemName, String importJobName, ImportJobUpdate importJob);

    /**
     * Update an import job instance.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param importJob Object containing the user-selectable properties of the import job. If read-only properties are
     * included, they must match the existing values of those properties.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return the {@link SyncPoller} for polling of an import job instance.
     */
    @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
    SyncPoller, ImportJobInner> beginUpdate(String resourceGroupName,
        String amlFilesystemName, String importJobName, ImportJobUpdate importJob, Context context);

    /**
     * Update an import job instance.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param importJob Object containing the user-selectable properties of the import job. If read-only properties are
     * included, they must match the existing values of those properties.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an import job instance.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    ImportJobInner update(String resourceGroupName, String amlFilesystemName, String importJobName,
        ImportJobUpdate importJob);

    /**
     * Update an import job instance.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with
     * alphanumeric.
     * @param importJob Object containing the user-selectable properties of the import job. If read-only properties are
     * included, they must match the existing values of those properties.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return an import job instance.
     */
    @ServiceMethod(returns = ReturnType.SINGLE)
    ImportJobInner update(String resourceGroupName, String amlFilesystemName, String importJobName,
        ImportJobUpdate importJob, Context context);

    /**
     * Returns all import jobs the user has access to under an AML File System.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return result of the request to list import jobs as paginated response with {@link PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName);

    /**
     * Returns all import jobs the user has access to under an AML File System.
     * 
     * @param resourceGroupName The name of the resource group. The name is case insensitive.
     * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and
     * end with alphanumeric.
     * @param context The context to associate with this operation.
     * @throws IllegalArgumentException thrown if parameters fail the validation.
     * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
     * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
     * @return result of the request to list import jobs as paginated response with {@link PagedIterable}.
     */
    @ServiceMethod(returns = ReturnType.COLLECTION)
    PagedIterable listByAmlFilesystem(String resourceGroupName, String amlFilesystemName,
        Context context);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy