Interface RelationshipsClient
public interface RelationshipsClient
An instance of this class provides access to all the operations defined in RelationshipsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RelationshipResourceFormatInner>,
RelationshipResourceFormatInner> beginCreateOrUpdate
(String resourceGroupName, String hubName, String relationshipName, RelationshipResourceFormatInner parameters) Creates a relationship or updates an existing relationship within a hub.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RelationshipResourceFormatInner>,
RelationshipResourceFormatInner> beginCreateOrUpdate
(String resourceGroupName, String hubName, String relationshipName, RelationshipResourceFormatInner parameters, com.azure.core.util.Context context) Creates a relationship or updates an existing relationship within a hub.beginDelete
(String resourceGroupName, String hubName, String relationshipName) Deletes a relationship within a hub.beginDelete
(String resourceGroupName, String hubName, String relationshipName, com.azure.core.util.Context context) Deletes a relationship within a hub.createOrUpdate
(String resourceGroupName, String hubName, String relationshipName, RelationshipResourceFormatInner parameters) Creates a relationship or updates an existing relationship within a hub.createOrUpdate
(String resourceGroupName, String hubName, String relationshipName, RelationshipResourceFormatInner parameters, com.azure.core.util.Context context) Creates a relationship or updates an existing relationship within a hub.void
Deletes a relationship within a hub.void
delete
(String resourceGroupName, String hubName, String relationshipName, com.azure.core.util.Context context) Deletes a relationship within a hub.Gets information about the specified relationship.com.azure.core.http.rest.Response<RelationshipResourceFormatInner>
getWithResponse
(String resourceGroupName, String hubName, String relationshipName, com.azure.core.util.Context context) Gets information about the specified relationship.com.azure.core.http.rest.PagedIterable<RelationshipResourceFormatInner>
Gets all relationships in the hub.com.azure.core.http.rest.PagedIterable<RelationshipResourceFormatInner>
Gets all relationships in the hub.
-
Method Details
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RelationshipResourceFormatInner>,RelationshipResourceFormatInner> beginCreateOrUpdate(String resourceGroupName, String hubName, String relationshipName, RelationshipResourceFormatInner parameters) Creates a relationship or updates an existing relationship within a hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the Relationship.parameters
- Parameters supplied to the CreateOrUpdate Relationship operation.- Returns:
- the
SyncPoller
for polling of the relationship resource format. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RelationshipResourceFormatInner>,RelationshipResourceFormatInner> beginCreateOrUpdate(String resourceGroupName, String hubName, String relationshipName, RelationshipResourceFormatInner parameters, com.azure.core.util.Context context) Creates a relationship or updates an existing relationship within a hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the Relationship.parameters
- Parameters supplied to the CreateOrUpdate Relationship operation.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the relationship resource format. - 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.
-
createOrUpdate
RelationshipResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String relationshipName, RelationshipResourceFormatInner parameters) Creates a relationship or updates an existing relationship within a hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the Relationship.parameters
- Parameters supplied to the CreateOrUpdate Relationship operation.- Returns:
- the relationship resource format.
- 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.
-
createOrUpdate
RelationshipResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String relationshipName, RelationshipResourceFormatInner parameters, com.azure.core.util.Context context) Creates a relationship or updates an existing relationship within a hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the Relationship.parameters
- Parameters supplied to the CreateOrUpdate Relationship operation.context
- The context to associate with this operation.- Returns:
- the relationship resource format.
- 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<RelationshipResourceFormatInner> getWithResponse(String resourceGroupName, String hubName, String relationshipName, com.azure.core.util.Context context) Gets information about the specified relationship.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the relationship.context
- The context to associate with this operation.- Returns:
- information about the specified relationship 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.
-
get
RelationshipResourceFormatInner get(String resourceGroupName, String hubName, String relationshipName) Gets information about the specified relationship.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the relationship.- Returns:
- information about the specified relationship.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String hubName, String relationshipName) Deletes a relationship within a hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the relationship.- Returns:
- the
SyncPoller
for polling of long-running operation. - 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String hubName, String relationshipName, com.azure.core.util.Context context) Deletes a relationship within a hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the relationship.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - 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 relationship within a hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the relationship.- 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
void delete(String resourceGroupName, String hubName, String relationshipName, com.azure.core.util.Context context) Deletes a relationship within a hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.relationshipName
- The name of the relationship.context
- The context to associate with this operation.- 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.
-
listByHub
com.azure.core.http.rest.PagedIterable<RelationshipResourceFormatInner> listByHub(String resourceGroupName, String hubName) Gets all relationships in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.- Returns:
- all relationships in the hub 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.
-
listByHub
com.azure.core.http.rest.PagedIterable<RelationshipResourceFormatInner> listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context) Gets all relationships in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.context
- The context to associate with this operation.- Returns:
- all relationships in the hub 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.
-