Interface RelationshipLinks


public interface RelationshipLinks
Resource collection API of RelationshipLinks.
  • Method Details

    • getWithResponse

      com.azure.core.http.rest.Response<RelationshipLinkResourceFormat> getWithResponse(String resourceGroupName, String hubName, String relationshipLinkName, com.azure.core.util.Context context)
      Gets information about the specified relationship Link.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      relationshipLinkName - The name of the relationship link.
      context - The context to associate with this operation.
      Returns:
      information about the specified relationship Link 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

      RelationshipLinkResourceFormat get(String resourceGroupName, String hubName, String relationshipLinkName)
      Gets information about the specified relationship Link.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      relationshipLinkName - The name of the relationship link.
      Returns:
      information about the specified relationship Link.
      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 relationshipLinkName)
      Deletes a relationship link within a hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      relationshipLinkName - 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 relationshipLinkName, com.azure.core.util.Context context)
      Deletes a relationship link within a hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      relationshipLinkName - 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<RelationshipLinkResourceFormat> listByHub(String resourceGroupName, String hubName)
      Gets all relationship links in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      Returns:
      all relationship links 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<RelationshipLinkResourceFormat> listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context)
      Gets all relationship links 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 relationship links 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.
    • getById

      Gets information about the specified relationship Link.
      Parameters:
      id - the resource ID.
      Returns:
      information about the specified relationship Link 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<RelationshipLinkResourceFormat> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets information about the specified relationship Link.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      information about the specified relationship Link 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

      void deleteById(String id)
      Deletes a relationship link within a hub.
      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

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes a relationship link within a hub.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new RelationshipLinkResourceFormat resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new RelationshipLinkResourceFormat definition.