Skip to content

Commit

Permalink
Fixes to the ResourceManagerRpc layer, and also add resource manager …
Browse files Browse the repository at this point in the history
…to pom files

spi api fixes
  • Loading branch information
Ajay Kannan committed Nov 3, 2015
1 parent e3ca489 commit 57df7ac
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,41 @@ public Y y() {
}
}

public class ListOptions {
private List<String> filters;
private String pageToken;

private static final ListOptions DEFAULT_INSTANCE = new ListOptions(null, null);

ListOptions(List<String> filters, String pageToken) {
this.filters = filters;
this.pageToken = pageToken;
}

public static ListOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}

public static ListOptions createListOption(List<String> filters, String pageToken) {
return new ListOptions(filters, pageToken);
}

public String pageToken() {
return pageToken;
}

public List<String> filters() {
return filters;
}
}

Project create(Project project) throws ResourceManagerException;

void delete(String projectId) throws ResourceManagerException;

Project get(String projectId) throws ResourceManagerException;

Tuple<String, Iterable<Project>> list() throws ResourceManagerException;

Tuple<String, Iterable<Project>> list(String filter) throws ResourceManagerException;
Tuple<String, Iterable<Project>> list(ListOptions listOptions) throws ResourceManagerException;

void undelete(String projectId) throws ResourceManagerException;

Expand All @@ -64,6 +90,6 @@ public Y y() {

void setIamPolicy(String projectId, Policy policy) throws ResourceManagerException;

List<String> testIamPermissions(String projectId, List<String> permissions)
boolean hasPermissions(String projectId, List<String> permissions)
throws ResourceManagerException;
}
5 changes: 5 additions & 0 deletions gcloud-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
<artifactId>gcloud-java-datastore</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gcloud-java-resourcemanager</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gcloud-java-storage</artifactId>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<modules>
<module>gcloud-java-core</module>
<module>gcloud-java-datastore</module>
<module>gcloud-java-resourcemanager</module>
<module>gcloud-java-storage</module>
<module>gcloud-java</module>
<module>gcloud-java-examples</module>
Expand Down

0 comments on commit 57df7ac

Please sign in to comment.