Interface BookmarkRelationsClient


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

    • list

      com.azure.core.http.rest.PagedIterable<RelationInner> list(String resourceGroupName, String workspaceName, String bookmarkId)
      Gets all bookmark relations.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      bookmarkId - Bookmark ID.
      Returns:
      all bookmark relations 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.
    • list

      com.azure.core.http.rest.PagedIterable<RelationInner> list(String resourceGroupName, String workspaceName, String bookmarkId, String filter, String orderby, Integer top, String skipToken, com.azure.core.util.Context context)
      Gets all bookmark relations.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      bookmarkId - Bookmark ID.
      filter - Filters the results, based on a Boolean condition. Optional.
      orderby - Sorts the results. Optional.
      top - Returns only the first n results. Optional.
      skipToken - Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional.
      context - The context to associate with this operation.
      Returns:
      all bookmark relations 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.
    • get

      RelationInner get(String resourceGroupName, String workspaceName, String bookmarkId, String relationName)
      Gets a bookmark relation.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      bookmarkId - Bookmark ID.
      relationName - Relation Name.
      Returns:
      a bookmark relation.
      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<RelationInner> getWithResponse(String resourceGroupName, String workspaceName, String bookmarkId, String relationName, com.azure.core.util.Context context)
      Gets a bookmark relation.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      bookmarkId - Bookmark ID.
      relationName - Relation Name.
      context - The context to associate with this operation.
      Returns:
      a bookmark relation 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.
    • createOrUpdate

      RelationInner createOrUpdate(String resourceGroupName, String workspaceName, String bookmarkId, String relationName, RelationInner relation)
      Creates the bookmark relation.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      bookmarkId - Bookmark ID.
      relationName - Relation Name.
      relation - The relation model.
      Returns:
      represents a relation between two resources.
      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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<RelationInner> createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String bookmarkId, String relationName, RelationInner relation, com.azure.core.util.Context context)
      Creates the bookmark relation.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      bookmarkId - Bookmark ID.
      relationName - Relation Name.
      relation - The relation model.
      context - The context to associate with this operation.
      Returns:
      represents a relation between two resources 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.
    • delete

      void delete(String resourceGroupName, String workspaceName, String bookmarkId, String relationName)
      Delete the bookmark relation.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      bookmarkId - Bookmark ID.
      relationName - Relation Name.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String bookmarkId, String relationName, com.azure.core.util.Context context)
      Delete the bookmark relation.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      bookmarkId - Bookmark ID.
      relationName - Relation Name.
      context - The context to associate with this operation.
      Returns:
      the 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.