2020
2121import com .google .api .services .cloudresourcemanager .model .Policy ;
2222import com .google .api .services .cloudresourcemanager .model .Project ;
23+ import com .google .common .collect .ImmutableList ;
2324import com .google .gcloud .resourcemanager .ResourceManagerException ;
2425
2526import 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