Interface MarketplaceAgreementsClient


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

      • get

        AgreementTermsInner 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<AgreementTermsInner> 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

        AgreementTermsInner 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<AgreementTermsInner> 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

        AgreementTermsInner 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<AgreementTermsInner> 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

        AgreementTermsInner 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<AgreementTermsInner> 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

        AgreementTermsInner 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<AgreementTermsInner> 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<AgreementTermsInner> 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<AgreementTermsInner>> 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.