Interface LinksClient


public interface LinksClient
An instance of this class provides access to all the operations defined in LinksClient.
  • Method Details

    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LinkResourceFormatInner>,LinkResourceFormatInner> beginCreateOrUpdate(String resourceGroupName, String hubName, String linkName, LinkResourceFormatInner parameters)
      Creates a link or updates an existing link in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      linkName - The name of the link.
      parameters - Parameters supplied to the CreateOrUpdate Link operation.
      Returns:
      the SyncPoller for polling of the link 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<LinkResourceFormatInner>,LinkResourceFormatInner> beginCreateOrUpdate(String resourceGroupName, String hubName, String linkName, LinkResourceFormatInner parameters, com.azure.core.util.Context context)
      Creates a link or updates an existing link in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      linkName - The name of the link.
      parameters - Parameters supplied to the CreateOrUpdate Link operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of the link 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

      LinkResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String linkName, LinkResourceFormatInner parameters)
      Creates a link or updates an existing link in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      linkName - The name of the link.
      parameters - Parameters supplied to the CreateOrUpdate Link operation.
      Returns:
      the link 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

      LinkResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String linkName, LinkResourceFormatInner parameters, com.azure.core.util.Context context)
      Creates a link or updates an existing link in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      linkName - The name of the link.
      parameters - Parameters supplied to the CreateOrUpdate Link operation.
      context - The context to associate with this operation.
      Returns:
      the link 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<LinkResourceFormatInner> getWithResponse(String resourceGroupName, String hubName, String linkName, com.azure.core.util.Context context)
      Gets a link in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      linkName - The name of the link.
      context - The context to associate with this operation.
      Returns:
      a link in the hub 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

      LinkResourceFormatInner get(String resourceGroupName, String hubName, String linkName)
      Gets a link in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      linkName - The name of the link.
      Returns:
      a link in the hub.
      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 hubName, String linkName, com.azure.core.util.Context context)
      Deletes a link in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      linkName - The name of the link.
      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.
    • delete

      void delete(String resourceGroupName, String hubName, String linkName)
      Deletes a link in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      linkName - The name of the 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.
    • listByHub

      com.azure.core.http.rest.PagedIterable<LinkResourceFormatInner> listByHub(String resourceGroupName, String hubName)
      Gets all the links in the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      Returns:
      all the links in the specified 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<LinkResourceFormatInner> listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context)
      Gets all the links in the specified 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 the links in the specified 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.