Skip to content

Commit 23fc937

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 6615 b: refs/heads/tswast-patch-1 c: a60f7d1 h: refs/heads/master i: 6613: 1d8adec 6611: 8810cb8 6607: 85d797a
1 parent a26d477 commit 23fc937

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 3892eedce3ca670eb5a8f2e83e914264c0406b2e
60+
refs/heads/tswast-patch-1: a60f7d16050a4a639af80697e1d5c6c6d2dc4601
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-resourcemanager/src/main/java/com/google/gcloud/spi/ResourceManagerRpc.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import com.google.api.services.cloudresourcemanager.model.Policy;
2222
import com.google.api.services.cloudresourcemanager.model.Project;
23+
import com.google.common.collect.ImmutableList;
2324
import com.google.gcloud.resourcemanager.ResourceManagerException;
2425

2526
import java.util.Collections;
@@ -34,7 +35,7 @@ public enum Permission {
3435
LIST,
3536
UPDATE,
3637
GET_IAM_POLICY,
37-
SET_IAM_POLICY;
38+
SET_IAM_POLICY
3839
}
3940

4041
class Tuple<X, Y> {
@@ -68,7 +69,7 @@ public class ListOptions {
6869
new ListOptions(Collections.<String>emptyList(), null, -1);
6970

7071
ListOptions(List<String> filters, String pageToken, int pageSize) {
71-
this.filters = checkNotNull(filters);
72+
this.filters = checkNotNull(ImmutableList.copyOf(filters));
7273
this.pageToken = pageToken;
7374
this.pageSize = pageSize;
7475
}
@@ -105,12 +106,14 @@ public int pageSize() {
105106

106107
void undelete(String projectId) throws ResourceManagerException;
107108

108-
Project update(String projectId, Project project) throws ResourceManagerException;
109+
Project update(Project project) throws ResourceManagerException;
109110

110111
Policy getIamPolicy(String projectId) throws ResourceManagerException;
111112

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

114115
List<Boolean> hasPermissions(String projectId, List<Permission> permissions)
115116
throws ResourceManagerException;
117+
118+
// TODO(ajaykannan): implement "Organization" functionality when available
116119
}

0 commit comments

Comments
 (0)