Skip to content

Commit 0c9cdd6

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 2581 b: refs/heads/update-datastore c: 57de95a h: refs/heads/master i: 2579: d663d5a
1 parent 7d4bf72 commit 0c9cdd6

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
@@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8-
refs/heads/update-datastore: 940aa92c009b9bdd4fad316fa32f2bc9857d758e
8+
refs/heads/update-datastore: 57de95ab08944e567a3f083bc7168d7ec6239d74
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111
refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2

branches/update-datastore/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
*

branches/update-datastore/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)