code: public ServiceCall<WorkspaceCollection> listWorkspaces(ListWorkspacesOptions listWorkspacesOptions) {
      String[] pathSegments = { "v1/workspaces" };
      RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments));
      builder.query("version", versionDate);
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("conversation", "v1", "listWorkspaces");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      if (listWorkspacesOptions != null) {
        if (listWorkspacesOptions.pageLimit() != null) {
          builder.query("page_limit", String.valueOf(listWorkspacesOptions.pageLimit()));
        }
        if (listWorkspacesOptions.includeCount() != null) {
          builder.query("include_count", String.valueOf(listWorkspacesOptions.includeCount()));
        }
        if (listWorkspacesOptions.sort() != null) {
          builder.query("sort", listWorkspacesOptions.sort());
        }
        if (listWorkspacesOptions.cursor() != null) {
          builder.query("cursor", listWorkspacesOptions.cursor());
        }
        if (listWorkspacesOptions.includeAudit() != null) {
          builder.query("include_audit", String.valueOf(listWorkspacesOptions.includeAudit()));
        }
      }
      return createServiceCall(builder.build(), ResponseConverterUtils.getObject(WorkspaceCollection.class));
    }
docs: List workspaces.
  
  List the workspaces associated with a Watson Assistant service instance.
  
  This operation is limited to 500 requests per 30 minutes. For more information, see **Rate limiting**.
  
  @param listWorkspacesOptions the {@link ListWorkspacesOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of {@link WorkspaceCollection}