Interface PrivateLinkHubsClient


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

      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<PrivateLinkHubInner> listByResourceGroup​(String resourceGroupName)
        Returns a list of privateLinkHubs in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        Returns:
        list of privateLinkHubs 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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<PrivateLinkHubInner> listByResourceGroup​(String resourceGroupName,
                                                                                        com.azure.core.util.Context context)
        Returns a list of privateLinkHubs in a resource group.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        context - The context to associate with this operation.
        Returns:
        list of privateLinkHubs 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.
      • getByResourceGroup

        PrivateLinkHubInner getByResourceGroup​(String resourceGroupName,
                                               String privateLinkHubName)
        Gets a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        Returns:
        a privateLinkHub.
        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.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<PrivateLinkHubInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                              String privateLinkHubName,
                                                                                              com.azure.core.util.Context context)
        Gets a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        context - The context to associate with this operation.
        Returns:
        a privateLinkHub 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.
      • update

        PrivateLinkHubInner update​(String resourceGroupName,
                                   String privateLinkHubName,
                                   PrivateLinkHubPatchInfo privateLinkHubPatchInfo)
        Updates a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        privateLinkHubPatchInfo - PrivateLinkHub patch request properties.
        Returns:
        a privateLinkHub.
        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.
      • updateWithResponse

        com.azure.core.http.rest.Response<PrivateLinkHubInner> updateWithResponse​(String resourceGroupName,
                                                                                  String privateLinkHubName,
                                                                                  PrivateLinkHubPatchInfo privateLinkHubPatchInfo,
                                                                                  com.azure.core.util.Context context)
        Updates a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        privateLinkHubPatchInfo - PrivateLinkHub patch request properties.
        context - The context to associate with this operation.
        Returns:
        a privateLinkHub 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.
      • createOrUpdate

        PrivateLinkHubInner createOrUpdate​(String resourceGroupName,
                                           String privateLinkHubName,
                                           PrivateLinkHubInner privateLinkHubInfo)
        Creates or updates a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        privateLinkHubInfo - PrivateLinkHub create or update request properties.
        Returns:
        a privateLinkHub.
        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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<PrivateLinkHubInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                          String privateLinkHubName,
                                                                                          PrivateLinkHubInner privateLinkHubInfo,
                                                                                          com.azure.core.util.Context context)
        Creates or updates a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        privateLinkHubInfo - PrivateLinkHub create or update request properties.
        context - The context to associate with this operation.
        Returns:
        a privateLinkHub 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.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String privateLinkHubName)
        Deletes a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        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 privateLinkHubName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        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

        void delete​(String resourceGroupName,
                    String privateLinkHubName)
        Deletes a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        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 privateLinkHubName,
                    com.azure.core.util.Context context)
        Deletes a privateLinkHub.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        privateLinkHubName - Name of the privateLinkHub.
        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.
      • list

        com.azure.core.http.rest.PagedIterable<PrivateLinkHubInner> list()
        Returns a list of privateLinkHubs in a subscription.
        Returns:
        list of privateLinkHubs as paginated response with PagedIterable.
        Throws:
        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.
      • list

        com.azure.core.http.rest.PagedIterable<PrivateLinkHubInner> list​(com.azure.core.util.Context context)
        Returns a list of privateLinkHubs in a subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        list of privateLinkHubs 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.