com.azure.resourcemanager.servicelinker.models.LinkersOperations Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.servicelinker.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.servicelinker.fluent.models.DryrunResourceInner;
/**
* Resource collection API of LinkersOperations.
*/
public interface LinkersOperations {
/**
* list dryrun jobs.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @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 list of dryrun as paginated response with {@link PagedIterable}.
*/
PagedIterable listDryrun(String resourceUri);
/**
* list dryrun jobs.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @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 list of dryrun as paginated response with {@link PagedIterable}.
*/
PagedIterable listDryrun(String resourceUri, Context context);
/**
* get a dryrun job.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param dryrunName The name of dryrun.
* @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 a dryrun job along with {@link Response}.
*/
Response getDryrunWithResponse(String resourceUri, String dryrunName, Context context);
/**
* get a dryrun job.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param dryrunName The name of dryrun.
* @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 a dryrun job.
*/
DryrunResource getDryrun(String resourceUri, String dryrunName);
/**
* create a dryrun job to do necessary check before actual creation.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param dryrunName The name of dryrun.
* @param parameters dryrun resource.
* @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 a dryrun job resource.
*/
DryrunResource createDryrun(String resourceUri, String dryrunName, DryrunResourceInner parameters);
/**
* create a dryrun job to do necessary check before actual creation.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param dryrunName The name of dryrun.
* @param parameters dryrun resource.
* @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 a dryrun job resource.
*/
DryrunResource createDryrun(String resourceUri, String dryrunName, DryrunResourceInner parameters, Context context);
/**
* add a dryrun job to do necessary check before actual creation.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param dryrunName The name of dryrun.
* @param parameters dryrun resource.
* @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 a dryrun job resource.
*/
DryrunResource updateDryrun(String resourceUri, String dryrunName, DryrunPatch parameters);
/**
* add a dryrun job to do necessary check before actual creation.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param dryrunName The name of dryrun.
* @param parameters dryrun resource.
* @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 a dryrun job resource.
*/
DryrunResource updateDryrun(String resourceUri, String dryrunName, DryrunPatch parameters, Context context);
/**
* delete a dryrun job.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param dryrunName The name of dryrun.
* @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 Response}.
*/
Response deleteDryrunWithResponse(String resourceUri, String dryrunName, Context context);
/**
* delete a dryrun job.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param dryrunName The name of dryrun.
* @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.
*/
void deleteDryrun(String resourceUri, String dryrunName);
/**
* Generate configurations for a Linker.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @param parameters Connection Info, including format, secret store, etc.
* @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 configurations for source resource, include appSettings, connectionString and serviceBindings along with
* {@link Response}.
*/
Response generateConfigurationsWithResponse(String resourceUri, String linkerName,
ConfigurationInfo parameters, Context context);
/**
* Generate configurations for a Linker.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @param linkerName The name Linker resource.
* @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 configurations for source resource, include appSettings, connectionString and serviceBindings.
*/
ConfigurationResult generateConfigurations(String resourceUri, String linkerName);
/**
* List the dapr configuration supported by Service Connector.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @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 dapr configuration list supported by Service Connector as paginated response with {@link PagedIterable}.
*/
PagedIterable listDaprConfigurations(String resourceUri);
/**
* List the dapr configuration supported by Service Connector.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be connected.
* @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 dapr configuration list supported by Service Connector as paginated response with {@link PagedIterable}.
*/
PagedIterable listDaprConfigurations(String resourceUri, Context context);
}