Skip to content

Commit ddf9e66

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 2037 b: refs/heads/pubsub-alpha c: a60f7d1 h: refs/heads/master i: 2035: 0eb235e
1 parent c2c2044 commit ddf9e66

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
@@ -3,7 +3,7 @@ refs/heads/master: 689bbb466df4b2d5d2483d6edb8ac5c7c7f7c6fa
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
6-
refs/heads/pubsub-alpha: 3892eedce3ca670eb5a8f2e83e914264c0406b2e
6+
refs/heads/pubsub-alpha: a60f7d16050a4a639af80697e1d5c6c6d2dc4601
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
88
refs/heads/update-datastore: 482954f2c5055231e5b3122ea91d2ba00ce8187c
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

branches/pubsub-alpha/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)