Interface HybridConnections
public interface HybridConnections
Resource collection API of HybridConnections.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateAuthorizationRule
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, AuthorizationRuleInner parameters) Creates or updates an authorization rule for a hybrid connection.com.azure.core.http.rest.Response<AuthorizationRule>
createOrUpdateAuthorizationRuleWithResponse
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, AuthorizationRuleInner parameters, com.azure.core.util.Context context) Creates or updates an authorization rule for a hybrid connection.Begins definition for a new HybridConnection resource.void
Deletes a hybrid connection.void
deleteAuthorizationRule
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName) Deletes a hybrid connection authorization rule.com.azure.core.http.rest.Response<Void>
deleteAuthorizationRuleWithResponse
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, com.azure.core.util.Context context) Deletes a hybrid connection authorization rule.void
deleteById
(String id) Deletes a hybrid connection.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a hybrid connection.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String namespaceName, String hybridConnectionName, com.azure.core.util.Context context) Deletes a hybrid connection.Returns the description for the specified hybrid connection.getAuthorizationRule
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName) Hybrid connection authorization rule for a hybrid connection by name.com.azure.core.http.rest.Response<AuthorizationRule>
getAuthorizationRuleWithResponse
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, com.azure.core.util.Context context) Hybrid connection authorization rule for a hybrid connection by name.Returns the description for the specified hybrid connection.com.azure.core.http.rest.Response<HybridConnection>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Returns the description for the specified hybrid connection.com.azure.core.http.rest.Response<HybridConnection>
getWithResponse
(String resourceGroupName, String namespaceName, String hybridConnectionName, com.azure.core.util.Context context) Returns the description for the specified hybrid connection.com.azure.core.http.rest.PagedIterable<AuthorizationRule>
listAuthorizationRules
(String resourceGroupName, String namespaceName, String hybridConnectionName) Authorization rules for a hybrid connection.com.azure.core.http.rest.PagedIterable<AuthorizationRule>
listAuthorizationRules
(String resourceGroupName, String namespaceName, String hybridConnectionName, com.azure.core.util.Context context) Authorization rules for a hybrid connection.com.azure.core.http.rest.PagedIterable<HybridConnection>
listByNamespace
(String resourceGroupName, String namespaceName) Lists the hybrid connection within the namespace.com.azure.core.http.rest.PagedIterable<HybridConnection>
listByNamespace
(String resourceGroupName, String namespaceName, com.azure.core.util.Context context) Lists the hybrid connection within the namespace.listKeys
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName) Primary and secondary connection strings to the hybrid connection.com.azure.core.http.rest.Response<AccessKeys>
listKeysWithResponse
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, com.azure.core.util.Context context) Primary and secondary connection strings to the hybrid connection.regenerateKeys
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, RegenerateAccessKeyParameters parameters) Regenerates the primary or secondary connection strings to the hybrid connection.com.azure.core.http.rest.Response<AccessKeys>
regenerateKeysWithResponse
(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, RegenerateAccessKeyParameters parameters, com.azure.core.util.Context context) Regenerates the primary or secondary connection strings to the hybrid connection.
-
Method Details
-
listByNamespace
com.azure.core.http.rest.PagedIterable<HybridConnection> listByNamespace(String resourceGroupName, String namespaceName) Lists the hybrid connection within the namespace.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.- Returns:
- the response of the list hybrid connection operation as paginated response with
PagedIterable
. - 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.
-
listByNamespace
com.azure.core.http.rest.PagedIterable<HybridConnection> listByNamespace(String resourceGroupName, String namespaceName, com.azure.core.util.Context context) Lists the hybrid connection within the namespace.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.context
- The context to associate with this operation.- Returns:
- the response of the list hybrid connection operation as paginated response with
PagedIterable
. - 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.
-
delete
Deletes a hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String namespaceName, String hybridConnectionName, com.azure.core.util.Context context) Deletes a hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.context
- The context to associate with this operation.- Returns:
- the
Response
. - 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
Returns the description for the specified hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.- Returns:
- description of hybrid connection resource.
- 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<HybridConnection> getWithResponse(String resourceGroupName, String namespaceName, String hybridConnectionName, com.azure.core.util.Context context) Returns the description for the specified hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.context
- The context to associate with this operation.- Returns:
- description of hybrid connection resource along with
Response
. - 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.
-
listAuthorizationRules
com.azure.core.http.rest.PagedIterable<AuthorizationRule> listAuthorizationRules(String resourceGroupName, String namespaceName, String hybridConnectionName) Authorization rules for a hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.- Returns:
- the response from the list namespace operation as paginated response with
PagedIterable
. - 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.
-
listAuthorizationRules
com.azure.core.http.rest.PagedIterable<AuthorizationRule> listAuthorizationRules(String resourceGroupName, String namespaceName, String hybridConnectionName, com.azure.core.util.Context context) Authorization rules for a hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.context
- The context to associate with this operation.- Returns:
- the response from the list namespace operation as paginated response with
PagedIterable
. - 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.
-
createOrUpdateAuthorizationRule
AuthorizationRule createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, AuthorizationRuleInner parameters) Creates or updates an authorization rule for a hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.parameters
- The authorization rule parameters.- Returns:
- description of a namespace authorization rule.
- 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.
-
createOrUpdateAuthorizationRuleWithResponse
com.azure.core.http.rest.Response<AuthorizationRule> createOrUpdateAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, AuthorizationRuleInner parameters, com.azure.core.util.Context context) Creates or updates an authorization rule for a hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.parameters
- The authorization rule parameters.context
- The context to associate with this operation.- Returns:
- description of a namespace authorization rule along with
Response
. - 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.
-
deleteAuthorizationRule
void deleteAuthorizationRule(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName) Deletes a hybrid connection authorization rule.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.- 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.
-
deleteAuthorizationRuleWithResponse
com.azure.core.http.rest.Response<Void> deleteAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, com.azure.core.util.Context context) Deletes a hybrid connection authorization rule.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.context
- The context to associate with this operation.- Returns:
- the
Response
. - 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.
-
getAuthorizationRule
AuthorizationRule getAuthorizationRule(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName) Hybrid connection authorization rule for a hybrid connection by name.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.- Returns:
- description of a namespace authorization rule.
- 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.
-
getAuthorizationRuleWithResponse
com.azure.core.http.rest.Response<AuthorizationRule> getAuthorizationRuleWithResponse(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, com.azure.core.util.Context context) Hybrid connection authorization rule for a hybrid connection by name.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.context
- The context to associate with this operation.- Returns:
- description of a namespace authorization rule along with
Response
. - 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.
-
listKeys
AccessKeys listKeys(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName) Primary and secondary connection strings to the hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.- Returns:
- namespace/Relay Connection String.
- 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.
-
listKeysWithResponse
com.azure.core.http.rest.Response<AccessKeys> listKeysWithResponse(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, com.azure.core.util.Context context) Primary and secondary connection strings to the hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.context
- The context to associate with this operation.- Returns:
- namespace/Relay Connection String along with
Response
. - 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.
-
regenerateKeys
AccessKeys regenerateKeys(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, RegenerateAccessKeyParameters parameters) Regenerates the primary or secondary connection strings to the hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.parameters
- Parameters supplied to regenerate authorization rule.- Returns:
- namespace/Relay Connection String.
- 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.
-
regenerateKeysWithResponse
com.azure.core.http.rest.Response<AccessKeys> regenerateKeysWithResponse(String resourceGroupName, String namespaceName, String hybridConnectionName, String authorizationRuleName, RegenerateAccessKeyParameters parameters, com.azure.core.util.Context context) Regenerates the primary or secondary connection strings to the hybrid connection.- Parameters:
resourceGroupName
- Name of the Resource group within the Azure subscription.namespaceName
- The namespace name.hybridConnectionName
- The hybrid connection name.authorizationRuleName
- The authorization rule name.parameters
- Parameters supplied to regenerate authorization rule.context
- The context to associate with this operation.- Returns:
- namespace/Relay Connection String along with
Response
. - 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.
-
getById
Returns the description for the specified hybrid connection.- Parameters:
id
- the resource ID.- Returns:
- description of hybrid connection resource along with
Response
. - 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<HybridConnection> getByIdWithResponse(String id, com.azure.core.util.Context context) Returns the description for the specified hybrid connection.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- description of hybrid connection resource along with
Response
. - 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.
-
deleteById
Deletes a hybrid connection.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a hybrid connection.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the
Response
. - 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.
-
define
Begins definition for a new HybridConnection resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new HybridConnection definition.
-