
com.azure.resourcemanager.relay.models.WcfRelays 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.relay.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.relay.fluent.models.AuthorizationRuleInner;
/**
* Resource collection API of WcfRelays.
*/
public interface WcfRelays {
/**
* Lists the WCF relays within the namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @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 response of the list WCF relay operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listByNamespace(String resourceGroupName, String namespaceName);
/**
* Lists the WCF relays within the namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @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 response of the list WCF relay operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listByNamespace(String resourceGroupName, String namespaceName, Context context);
/**
* Deletes a WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @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 deleteWithResponse(String resourceGroupName, String namespaceName, String relayName,
Context context);
/**
* Deletes a WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @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 delete(String resourceGroupName, String namespaceName, String relayName);
/**
* Returns the description for the specified WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @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 description of the WCF relay resource along with {@link Response}.
*/
Response getWithResponse(String resourceGroupName, String namespaceName, String relayName,
Context context);
/**
* Returns the description for the specified WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @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 description of the WCF relay resource.
*/
WcfRelay get(String resourceGroupName, String namespaceName, String relayName);
/**
* Authorization rules for a WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @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 response from the list namespace operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
String relayName);
/**
* Authorization rules for a WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @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 response from the list namespace operation as paginated response with {@link PagedIterable}.
*/
PagedIterable listAuthorizationRules(String resourceGroupName, String namespaceName,
String relayName, Context context);
/**
* Creates or updates an authorization rule for a WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @param parameters The authorization rule parameters.
* @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 description of a namespace authorization rule along with {@link Response}.
*/
Response createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName,
String namespaceName, String relayName, String authorizationRuleName, AuthorizationRuleInner parameters,
Context context);
/**
* Creates or updates an authorization rule for a WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @param parameters The authorization rule parameters.
* @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 description of a namespace authorization rule.
*/
AuthorizationRule createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String relayName,
String authorizationRuleName, AuthorizationRuleInner parameters);
/**
* Deletes a WCF relay authorization rule.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @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 deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName, String relayName,
String authorizationRuleName, Context context);
/**
* Deletes a WCF relay authorization rule.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @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 deleteAuthorizationRule(String resourceGroupName, String namespaceName, String relayName,
String authorizationRuleName);
/**
* Get authorizationRule for a WCF relay by name.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @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 authorizationRule for a WCF relay by name along with {@link Response}.
*/
Response getAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName,
String relayName, String authorizationRuleName, Context context);
/**
* Get authorizationRule for a WCF relay by name.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @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 authorizationRule for a WCF relay by name.
*/
AuthorizationRule getAuthorizationRule(String resourceGroupName, String namespaceName, String relayName,
String authorizationRuleName);
/**
* Primary and secondary connection strings to the WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @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 namespace/Relay Connection String along with {@link Response}.
*/
Response listKeysWithResponse(String resourceGroupName, String namespaceName, String relayName,
String authorizationRuleName, Context context);
/**
* Primary and secondary connection strings to the WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @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 namespace/Relay Connection String.
*/
AccessKeys listKeys(String resourceGroupName, String namespaceName, String relayName, String authorizationRuleName);
/**
* Regenerates the primary or secondary connection strings to the WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @param parameters Parameters supplied to regenerate authorization rule.
* @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 namespace/Relay Connection String along with {@link Response}.
*/
Response regenerateKeysWithResponse(String resourceGroupName, String namespaceName, String relayName,
String authorizationRuleName, RegenerateAccessKeyParameters parameters, Context context);
/**
* Regenerates the primary or secondary connection strings to the WCF relay.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name.
* @param relayName The relay name.
* @param authorizationRuleName The authorization rule name.
* @param parameters Parameters supplied to regenerate authorization rule.
* @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 namespace/Relay Connection String.
*/
AccessKeys regenerateKeys(String resourceGroupName, String namespaceName, String relayName,
String authorizationRuleName, RegenerateAccessKeyParameters parameters);
/**
* Returns the description for the specified WCF relay.
*
* @param id the resource ID.
* @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 description of the WCF relay resource along with {@link Response}.
*/
WcfRelay getById(String id);
/**
* Returns the description for the specified WCF relay.
*
* @param id the resource ID.
* @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 description of the WCF relay resource along with {@link Response}.
*/
Response getByIdWithResponse(String id, Context context);
/**
* Deletes a WCF relay.
*
* @param id the resource ID.
* @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 deleteById(String id);
/**
* Deletes a WCF relay.
*
* @param id the resource ID.
* @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 deleteByIdWithResponse(String id, Context context);
/**
* Begins definition for a new WcfRelay resource.
*
* @param name resource name.
* @return the first stage of the new WcfRelay definition.
*/
WcfRelay.DefinitionStages.Blank define(String name);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy