Interface PrivateLinkHubs


  • public interface PrivateLinkHubs
    Resource collection API of PrivateLinkHubs.
    • Method Detail

      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<PrivateLinkHub> 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<PrivateLinkHub> 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

        PrivateLinkHub 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<PrivateLinkHub> 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.
      • deleteByResourceGroup

        void deleteByResourceGroup​(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<PrivateLinkHub> 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<PrivateLinkHub> 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.
      • getById

        PrivateLinkHub getById​(String id)
        Gets a privateLinkHub.
        Parameters:
        id - the resource ID.
        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.
      • getByIdWithResponse

        com.azure.core.http.rest.Response<PrivateLinkHub> getByIdWithResponse​(String id,
                                                                              com.azure.core.util.Context context)
        Gets a privateLinkHub.
        Parameters:
        id - the resource ID.
        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.
      • deleteById

        void deleteById​(String id)
        Deletes a privateLinkHub.
        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 privateLinkHub.
        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

        PrivateLinkHub.DefinitionStages.Blank define​(String name)
        Begins definition for a new PrivateLinkHub resource.
        Parameters:
        name - resource name.
        Returns:
        the first stage of the new PrivateLinkHub definition.