Interface VendorsClient


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

    Modifier and Type
    Method
    Description
    com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VendorInner>,VendorInner>
    Creates or updates a vendor.
    com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VendorInner>,VendorInner>
    beginCreateOrUpdate(String vendorName, VendorInner parameters, com.azure.core.util.Context context)
    Creates or updates a vendor.
    com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
    beginDelete(String vendorName)
    Deletes the specified vendor.
    com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
    beginDelete(String vendorName, com.azure.core.util.Context context)
    Deletes the specified vendor.
    createOrUpdate(String vendorName)
    Creates or updates a vendor.
    createOrUpdate(String vendorName, VendorInner parameters, com.azure.core.util.Context context)
    Creates or updates a vendor.
    void
    delete(String vendorName)
    Deletes the specified vendor.
    void
    delete(String vendorName, com.azure.core.util.Context context)
    Deletes the specified vendor.
    get(String vendorName)
    Gets information about the specified vendor.
    com.azure.core.http.rest.Response<VendorInner>
    getWithResponse(String vendorName, com.azure.core.util.Context context)
    Gets information about the specified vendor.
    com.azure.core.http.rest.PagedIterable<VendorInner>
    Lists all the vendors in a subscription.
    com.azure.core.http.rest.PagedIterable<VendorInner>
    list(com.azure.core.util.Context context)
    Lists all the vendors in a subscription.
  • Method Details

    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String vendorName)
      Deletes the specified vendor.
      Parameters:
      vendorName - The name of the vendor.
      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 vendorName, com.azure.core.util.Context context)
      Deletes the specified vendor.
      Parameters:
      vendorName - The name of the vendor.
      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 vendorName)
      Deletes the specified vendor.
      Parameters:
      vendorName - The name of the vendor.
      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 vendorName, com.azure.core.util.Context context)
      Deletes the specified vendor.
      Parameters:
      vendorName - The name of the vendor.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<VendorInner> getWithResponse(String vendorName, com.azure.core.util.Context context)
      Gets information about the specified vendor.
      Parameters:
      vendorName - The name of the vendor.
      context - The context to associate with this operation.
      Returns:
      information about the specified vendor 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.
    • get

      VendorInner get(String vendorName)
      Gets information about the specified vendor.
      Parameters:
      vendorName - The name of the vendor.
      Returns:
      information about the specified vendor.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VendorInner>,VendorInner> beginCreateOrUpdate(String vendorName)
      Creates or updates a vendor.
      Parameters:
      vendorName - The name of the vendor.
      Returns:
      the SyncPoller for polling of vendor resource.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VendorInner>,VendorInner> beginCreateOrUpdate(String vendorName, VendorInner parameters, com.azure.core.util.Context context)
      Creates or updates a vendor.
      Parameters:
      vendorName - The name of the vendor.
      parameters - Parameters supplied to the create vendor operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of vendor resource.
      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

      VendorInner createOrUpdate(String vendorName)
      Creates or updates a vendor.
      Parameters:
      vendorName - The name of the vendor.
      Returns:
      vendor resource.
      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

      VendorInner createOrUpdate(String vendorName, VendorInner parameters, com.azure.core.util.Context context)
      Creates or updates a vendor.
      Parameters:
      vendorName - The name of the vendor.
      parameters - Parameters supplied to the create vendor operation.
      context - The context to associate with this operation.
      Returns:
      vendor resource.
      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<VendorInner> list()
      Lists all the vendors in a subscription.
      Returns:
      response for vendors API service call 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<VendorInner> list(com.azure.core.util.Context context)
      Lists all the vendors in a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      response for vendors API service call 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.