- 1.55.0 (latest)
- 1.54.0
- 1.53.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.6
- 1.4.0
- 1.3.2
- 1.2.12
public static class ResourceManager.ProjectListOption extends Option
Class for specifying project list options.
Static Methods
fields(ResourceManager.ProjectField[] fields)
public static ResourceManager.ProjectListOption fields(ResourceManager.ProjectField[] fields)
Returns an option to specify the project's fields to be returned by the RPC call.
If this option is not provided all project fields are returned.
ProjectListOption.fields
can be used to specify only the fields of interest. Project ID is
always returned, even if not specified. ProjectField provides a list of fields that
can be used.
Parameter | |
---|---|
Name | Description |
fields | ProjectField[] |
Returns | |
---|---|
Type | Description |
ResourceManager.ProjectListOption |
filter(String filter)
public static ResourceManager.ProjectListOption filter(String filter)
Returns an option to specify a filter.
Filter rules are case insensitive. The fields eligible for filtering are:
- name
- project ID
- labels.key, where key is the name of a label
You can specify multiple filters by adding a space between each filter. Multiple filters are composed using "and".
Some examples of filters:
- name:* The project has a name.
- name:Howl The project's name is Howl or howl.
- name:HOWL Equivalent to above.
- NAME:howl Equivalent to above.
- labels.color:* The project has the label color.
- labels.color:red The project's label color has the value red.
- labels.color:red label.size:big The project's label color has the value red and its label size has the value big.
Parameter | |
---|---|
Name | Description |
filter | String |
Returns | |
---|---|
Type | Description |
ResourceManager.ProjectListOption |
pageSize(int pageSize)
public static ResourceManager.ProjectListOption pageSize(int pageSize)
The maximum number of projects to return per RPC.
The server can return fewer projects than requested. When there are more results than the page size, the server will return a page token that can be used to fetch other results.
Parameter | |
---|---|
Name | Description |
pageSize | int |
Returns | |
---|---|
Type | Description |
ResourceManager.ProjectListOption |
pageToken(String pageToken)
public static ResourceManager.ProjectListOption pageToken(String pageToken)
Returns an option to specify a page token.
The page token (returned from a previous call to list) indicates from where listing should continue.
Parameter | |
---|---|
Name | Description |
pageToken | String |
Returns | |
---|---|
Type | Description |
ResourceManager.ProjectListOption |