Interface MarketplaceAgreements


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

      • get

        AgreementTerms get​(OfferType offerType,
                           String publisherId,
                           String offerId,
                           String planId)
        Get marketplace terms.
        Parameters:
        offerType - Offer Type, currently only virtualmachine type is supported.
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        Returns:
        marketplace terms.
        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<AgreementTerms> getWithResponse​(OfferType offerType,
                                                                          String publisherId,
                                                                          String offerId,
                                                                          String planId,
                                                                          com.azure.core.util.Context context)
        Get marketplace terms.
        Parameters:
        offerType - Offer Type, currently only virtualmachine type is supported.
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        context - The context to associate with this operation.
        Returns:
        marketplace terms 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.
      • create

        AgreementTerms create​(OfferType offerType,
                              String publisherId,
                              String offerId,
                              String planId,
                              AgreementTermsInner parameters)
        Save marketplace terms.
        Parameters:
        offerType - Offer Type, currently only virtualmachine type is supported.
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        parameters - Parameters supplied to the Create Marketplace Terms operation.
        Returns:
        terms properties for provided Publisher/Offer/Plan tuple.
        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.
      • createWithResponse

        com.azure.core.http.rest.Response<AgreementTerms> createWithResponse​(OfferType offerType,
                                                                             String publisherId,
                                                                             String offerId,
                                                                             String planId,
                                                                             AgreementTermsInner parameters,
                                                                             com.azure.core.util.Context context)
        Save marketplace terms.
        Parameters:
        offerType - Offer Type, currently only virtualmachine type is supported.
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        parameters - Parameters supplied to the Create Marketplace Terms operation.
        context - The context to associate with this operation.
        Returns:
        terms properties for provided Publisher/Offer/Plan tuple 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.
      • sign

        AgreementTerms sign​(String publisherId,
                            String offerId,
                            String planId)
        Sign marketplace terms.
        Parameters:
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        Returns:
        terms properties for provided Publisher/Offer/Plan tuple.
        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.
      • signWithResponse

        com.azure.core.http.rest.Response<AgreementTerms> signWithResponse​(String publisherId,
                                                                           String offerId,
                                                                           String planId,
                                                                           com.azure.core.util.Context context)
        Sign marketplace terms.
        Parameters:
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        context - The context to associate with this operation.
        Returns:
        terms properties for provided Publisher/Offer/Plan tuple 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.
      • cancel

        AgreementTerms cancel​(String publisherId,
                              String offerId,
                              String planId)
        Cancel marketplace terms.
        Parameters:
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        Returns:
        terms properties for provided Publisher/Offer/Plan tuple.
        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.
      • cancelWithResponse

        com.azure.core.http.rest.Response<AgreementTerms> cancelWithResponse​(String publisherId,
                                                                             String offerId,
                                                                             String planId,
                                                                             com.azure.core.util.Context context)
        Cancel marketplace terms.
        Parameters:
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        context - The context to associate with this operation.
        Returns:
        terms properties for provided Publisher/Offer/Plan tuple 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.
      • getAgreement

        AgreementTerms getAgreement​(String publisherId,
                                    String offerId,
                                    String planId)
        Get marketplace agreement.
        Parameters:
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        Returns:
        marketplace agreement.
        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.
      • getAgreementWithResponse

        com.azure.core.http.rest.Response<AgreementTerms> getAgreementWithResponse​(String publisherId,
                                                                                   String offerId,
                                                                                   String planId,
                                                                                   com.azure.core.util.Context context)
        Get marketplace agreement.
        Parameters:
        publisherId - Publisher identifier string of image being deployed.
        offerId - Offer identifier string of image being deployed.
        planId - Plan identifier string of image being deployed.
        context - The context to associate with this operation.
        Returns:
        marketplace agreement 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.
      • list

        List<AgreementTerms> list()
        List marketplace agreements in the subscription.
        Returns:
        array of AgreementTerms.
        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.
      • listWithResponse

        com.azure.core.http.rest.Response<List<AgreementTerms>> listWithResponse​(com.azure.core.util.Context context)
        List marketplace agreements in the subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        array of AgreementTerms 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.