Skip to content

Commit 0d0e25b

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 1451 b: refs/heads/master c: 57de95a h: refs/heads/master i: 1449: a0bb313 1447: 07ae574
1 parent 954b5eb commit 0d0e25b

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 940aa92c009b9bdd4fad316fa32f2bc9857d758e
2+
refs/heads/master: 57de95ab08944e567a3f083bc7168d7ec6239d74
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: d1b373c30c176edc08692348167bec3a244bb823
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3

trunk/gcloud-java-resourcemanager/src/main/java/com/google/gcloud/resourcemanager/ResourceManager.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,26 @@ public static ProjectListOption filter(String filter) {
132132
return new ProjectListOption(ResourceManagerRpc.Option.FILTER, filter);
133133
}
134134

135+
/**
136+
* Returns an option to specify a page token.
137+
*
138+
* The page token (returned from a previous call to list) indicates from where listing should
139+
* continue. Pagination is not yet supported; the server ignores this field.
140+
*/
141+
public static ProjectListOption pageToken(String pageToken) {
142+
return new ProjectListOption(ResourceManagerRpc.Option.PAGE_TOKEN, pageToken);
143+
}
144+
145+
/**
146+
* The maximum number of projects to return in the response.
147+
*
148+
* The server can return fewer projects than requested. If unspecified, server picks an
149+
* appropriate default. Note: pagination is not yet supported; the server ignores this field.
150+
*/
151+
public static ProjectListOption pageSize(int pageSize) {
152+
return new ProjectListOption(ResourceManagerRpc.Option.PAGE_SIZE, pageSize);
153+
}
154+
135155
/**
136156
* Returns an option to specify the project's fields to be returned by the RPC call.
137157
*

trunk/gcloud-java-resourcemanager/src/main/java/com/google/gcloud/spi/ResourceManagerRpc.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public interface ResourceManagerRpc {
2525

2626
enum Option {
2727
FILTER("filter"),
28-
FIELDS("fields");
28+
FIELDS("fields"),
29+
PAGE_SIZE("pageSize"),
30+
PAGE_TOKEN("pageToken");
2931

3032
private final String value;
3133

0 commit comments

Comments
 (0)