Interface AfdOriginGroupsClient


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

      • listByProfileAsync

        com.azure.core.http.rest.PagedFlux<AfdOriginGroupInner> listByProfileAsync​(String resourceGroupName,
                                                                                   String profileName)
        Lists all of the existing origin groups within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        Returns:
        result of the request to list origin groups.
        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.
      • listByProfile

        com.azure.core.http.rest.PagedIterable<AfdOriginGroupInner> listByProfile​(String resourceGroupName,
                                                                                  String profileName)
        Lists all of the existing origin groups within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        Returns:
        result of the request to list origin groups.
        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.
      • listByProfile

        com.azure.core.http.rest.PagedIterable<AfdOriginGroupInner> listByProfile​(String resourceGroupName,
                                                                                  String profileName,
                                                                                  com.azure.core.util.Context context)
        Lists all of the existing origin groups within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        context - The context to associate with this operation.
        Returns:
        result of the request to list origin groups.
        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.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<AfdOriginGroupInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                          String profileName,
                                                                                          String originGroupName)
        Gets an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        Returns:
        an existing origin group within a profile.
        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.
      • getAsync

        Mono<AfdOriginGroupInner> getAsync​(String resourceGroupName,
                                           String profileName,
                                           String originGroupName)
        Gets an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        Returns:
        an existing origin group within a profile.
        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

        AfdOriginGroupInner get​(String resourceGroupName,
                                String profileName,
                                String originGroupName)
        Gets an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        Returns:
        an existing origin group within a profile.
        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<AfdOriginGroupInner> getWithResponse​(String resourceGroupName,
                                                                               String profileName,
                                                                               String originGroupName,
                                                                               com.azure.core.util.Context context)
        Gets an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        context - The context to associate with this operation.
        Returns:
        an existing origin group within a profile.
        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.
      • createWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createWithResponseAsync​(String resourceGroupName,
                                                                                          String profileName,
                                                                                          String originGroupName,
                                                                                          AfdOriginGroupInner originGroup)
        Creates a new origin group within the specified profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        originGroup - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • beginCreateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<AfdOriginGroupInner>,​AfdOriginGroupInner> beginCreateAsync​(String resourceGroupName,
                                                                                                                                                             String profileName,
                                                                                                                                                             String originGroupName,
                                                                                                                                                             AfdOriginGroupInner originGroup)
        Creates a new origin group within the specified profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        originGroup - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • beginCreate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AfdOriginGroupInner>,​AfdOriginGroupInner> beginCreate​(String resourceGroupName,
                                                                                                                                                        String profileName,
                                                                                                                                                        String originGroupName,
                                                                                                                                                        AfdOriginGroupInner originGroup)
        Creates a new origin group within the specified profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        originGroup - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • beginCreate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AfdOriginGroupInner>,​AfdOriginGroupInner> beginCreate​(String resourceGroupName,
                                                                                                                                                        String profileName,
                                                                                                                                                        String originGroupName,
                                                                                                                                                        AfdOriginGroupInner originGroup,
                                                                                                                                                        com.azure.core.util.Context context)
        Creates a new origin group within the specified profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        originGroup - Origin group properties.
        context - The context to associate with this operation.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • createAsync

        Mono<AfdOriginGroupInner> createAsync​(String resourceGroupName,
                                              String profileName,
                                              String originGroupName,
                                              AfdOriginGroupInner originGroup)
        Creates a new origin group within the specified profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        originGroup - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • create

        AfdOriginGroupInner create​(String resourceGroupName,
                                   String profileName,
                                   String originGroupName,
                                   AfdOriginGroupInner originGroup)
        Creates a new origin group within the specified profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        originGroup - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • create

        AfdOriginGroupInner create​(String resourceGroupName,
                                   String profileName,
                                   String originGroupName,
                                   AfdOriginGroupInner originGroup,
                                   com.azure.core.util.Context context)
        Creates a new origin group within the specified profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        originGroup - Origin group properties.
        context - The context to associate with this operation.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • updateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync​(String resourceGroupName,
                                                                                          String profileName,
                                                                                          String originGroupName,
                                                                                          AfdOriginGroupUpdateParameters originGroupUpdateProperties)
        Updates an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        originGroupUpdateProperties - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • beginUpdateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<AfdOriginGroupInner>,​AfdOriginGroupInner> beginUpdateAsync​(String resourceGroupName,
                                                                                                                                                             String profileName,
                                                                                                                                                             String originGroupName,
                                                                                                                                                             AfdOriginGroupUpdateParameters originGroupUpdateProperties)
        Updates an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        originGroupUpdateProperties - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AfdOriginGroupInner>,​AfdOriginGroupInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                        String profileName,
                                                                                                                                                        String originGroupName,
                                                                                                                                                        AfdOriginGroupUpdateParameters originGroupUpdateProperties)
        Updates an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        originGroupUpdateProperties - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • beginUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AfdOriginGroupInner>,​AfdOriginGroupInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                        String profileName,
                                                                                                                                                        String originGroupName,
                                                                                                                                                        AfdOriginGroupUpdateParameters originGroupUpdateProperties,
                                                                                                                                                        com.azure.core.util.Context context)
        Updates an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        originGroupUpdateProperties - Origin group properties.
        context - The context to associate with this operation.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • updateAsync

        Mono<AfdOriginGroupInner> updateAsync​(String resourceGroupName,
                                              String profileName,
                                              String originGroupName,
                                              AfdOriginGroupUpdateParameters originGroupUpdateProperties)
        Updates an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        originGroupUpdateProperties - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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

        AfdOriginGroupInner update​(String resourceGroupName,
                                   String profileName,
                                   String originGroupName,
                                   AfdOriginGroupUpdateParameters originGroupUpdateProperties)
        Updates an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        originGroupUpdateProperties - Origin group properties.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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

        AfdOriginGroupInner update​(String resourceGroupName,
                                   String profileName,
                                   String originGroupName,
                                   AfdOriginGroupUpdateParameters originGroupUpdateProperties,
                                   com.azure.core.util.Context context)
        Updates an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        originGroupUpdateProperties - Origin group properties.
        context - The context to associate with this operation.
        Returns:
        aFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
        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.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String profileName,
                                                                                          String originGroupName)
        Deletes an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        Returns:
        the completion.
        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.
      • beginDeleteAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteAsync​(String resourceGroupName,
                                                                                                                               String profileName,
                                                                                                                               String originGroupName)
        Deletes an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        Returns:
        the completion.
        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 profileName,
                                                                                                                          String originGroupName)
        Deletes an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        Returns:
        the completion.
        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 profileName,
                                                                                                                          String originGroupName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        context - The context to associate with this operation.
        Returns:
        the completion.
        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.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String profileName,
                               String originGroupName)
        Deletes an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        Returns:
        the completion.
        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 profileName,
                    String originGroupName)
        Deletes an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        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 profileName,
                    String originGroupName,
                    com.azure.core.util.Context context)
        Deletes an existing origin group within a profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the profile.
        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.
      • listResourceUsageAsync

        com.azure.core.http.rest.PagedFlux<UsageInner> listResourceUsageAsync​(String resourceGroupName,
                                                                              String profileName,
                                                                              String originGroupName)
        Checks the quota and actual usage of endpoints under the given CDN profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        Returns:
        the list usages operation 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.
      • listResourceUsage

        com.azure.core.http.rest.PagedIterable<UsageInner> listResourceUsage​(String resourceGroupName,
                                                                             String profileName,
                                                                             String originGroupName)
        Checks the quota and actual usage of endpoints under the given CDN profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        Returns:
        the list usages operation 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.
      • listResourceUsage

        com.azure.core.http.rest.PagedIterable<UsageInner> listResourceUsage​(String resourceGroupName,
                                                                             String profileName,
                                                                             String originGroupName,
                                                                             com.azure.core.util.Context context)
        Checks the quota and actual usage of endpoints under the given CDN profile.
        Parameters:
        resourceGroupName - Name of the Resource group within the Azure subscription.
        profileName - Name of the CDN profile which is unique within the resource group.
        originGroupName - Name of the origin group which is unique within the endpoint.
        context - The context to associate with this operation.
        Returns:
        the list usages operation 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.