RPC to list projects to which the user has been granted any project
role. Users of this method are encouraged to consider the [Resource
Manager](https://cloud.google.com/resource-manager/docs/) API, which
provides the underlying data for this method and has more capabilities.

# IAM Permissions Requires no specific IAM permission(s) to use this

method. The results are filtered to only include projects on which the
caller has been granted a project-level role such as a BigQuery
predefined IAM role or a basic role such as Viewer or Owner.

## Arguments

| Parameters ||
|---|---|
| `maxResults` | `integer (https://developers.google.com/discovery/v1/type-format?tenant=cloud format)` `maxResults` unset returns all results, up to 50 per page. Additionally, the number of projects in a page may be fewer than `maxResults` because projects are retrieved and then filtered to only projects with the BigQuery API enabled. |
| `pageToken` | `string` Page token, returned by a previous call, to request the next page of results. If not present, no further pages are present. |

## Raised exceptions

| Exceptions ||
|---|---|
| `ConnectionError` | In case of a network problem (such as DNS failure or refused connection). |
| `HttpError` | If the response status is \>= 400 (excluding 429 and 503). |
| `TimeoutError` | If a long-running operation takes longer to finish than the specified timeout limit. |
| `TypeError` | If an operation or function receives an argument of the wrong type. |
| `ValueError` | If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |

## Response

If successful, the response contains an instance of [`ProjectList`](https://cloud.google.com/workflows/docs/reference/googleapis/bigquery/v2/Overview#ProjectList).

## Subworkflow snippet

Some fields might be optional or required.
To identify required fields, refer to the [API documentation](https://cloud.google.com/bigquery/docs/reference/rest/v2/projects/list).

### YAML

```yaml
- list:
    call: googleapis.bigquery.v2.projects.list
    args:
        maxResults: ...
        pageToken: ...
    result: listResult
```

### JSON

```json
[
  {
    "list": {
      "call": "googleapis.bigquery.v2.projects.list",
      "args": {
        "maxResults": "...",
        "pageToken": "..."
      },
      "result": "listResult"
    }
  }
]
```