lib/ibm_watson/assistant_v1.rb
def list_workspaces(page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
      headers = {
      }
      sdk_headers = Common.new.get_sdk_headers("conversation", "V1", "list_workspaces")
      headers.merge!(sdk_headers)

      params = {
        "version" => @version,
        "page_limit" => page_limit,
        "include_count" => include_count,
        "sort" => sort,
        "cursor" => cursor,
        "include_audit" => include_audit
      }

      method_url = "/v1/workspaces"

      response = request(
        method: "GET",
        url: method_url,
        headers: headers,
        params: params,
        accept_json: true
      )
      response
    end
def list_workspaces(page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
      headers = {
      }
      sdk_headers = Common.new.get_sdk_headers("conversation", "V1", "list_workspaces")
      headers.merge!(sdk_headers)

      params = {
        "version" => @version,
        "page_limit" => page_limit,
        "include_count" => include_count,
        "sort" => sort,
        "cursor" => cursor,
        "include_audit" => include_audit
      }

      method_url = "/v1/workspaces"

      response = request(
        method: "GET",
        url: method_url,
        headers: headers,
        params: params,
        accept_json: true
      )
      response
    end
@!method list_workspaces(page_limit: nil, include_count: nil, sort: nil, cursor: nil, include_audit: nil)
 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 page_limit [Fixnum] The number of records to return in each page of results.
 @param include_count [Boolean] Whether to include information about the number of records returned.
 @param sort [String] The attribute by which returned workspaces will be sorted. To reverse the sort
   order, prefix the value with a minus sign (`-`).
 @param cursor [String] A token identifying the page of results to retrieve.
 @param include_audit [Boolean] Whether to include the audit properties (`created` and `updated` timestamps) in
   the response.
 @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.