public interface Vendors
Resource collection API of Vendors.
  • Method Summary

    Modifier and Type
    Method
    Description
    define(String name)
    Begins definition for a new Vendor resource.
    void
    delete(String vendorName)
    Deletes the specified vendor.
    void
    delete(String vendorName, com.azure.core.util.Context context)
    Deletes the specified vendor.
    void
    Deletes the specified vendor.
    void
    deleteByIdWithResponse(String id, com.azure.core.util.Context context)
    Deletes the specified vendor.
    get(String vendorName)
    Gets information about the specified vendor.
    Gets information about the specified vendor.
    com.azure.core.http.rest.Response<Vendor>
    getByIdWithResponse(String id, com.azure.core.util.Context context)
    Gets information about the specified vendor.
    com.azure.core.http.rest.Response<Vendor>
    getWithResponse(String vendorName, com.azure.core.util.Context context)
    Gets information about the specified vendor.
    com.azure.core.http.rest.PagedIterable<Vendor>
    Lists all the vendors in a subscription.
    com.azure.core.http.rest.PagedIterable<Vendor>
    list(com.azure.core.util.Context context)
    Lists all the vendors in a subscription.
  • Method Details

    • 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<Vendor> 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

      Vendor 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.
    • list

      com.azure.core.http.rest.PagedIterable<Vendor> 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<Vendor> 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.
    • getById

      Vendor getById(String id)
      Gets information about the specified vendor.
      Parameters:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<Vendor> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets information about the specified vendor.
      Parameters:
      id - the resource ID.
      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.
    • deleteById

      void deleteById(String id)
      Deletes the specified vendor.
      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 the specified vendor.
      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

      Begins definition for a new Vendor resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new Vendor definition.