File tree Expand file tree Collapse file tree
branches/update-datastore/gcloud-java-resourcemanager/src/main/java/com/google/gcloud/spi Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8- refs/heads/update-datastore: a60f7d16050a4a639af80697e1d5c6c6d2dc4601
8+ refs/heads/update-datastore: c69af1acb3ee4cb24876f1444540c5b543e40c0c
99refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2
Original file line number Diff line number Diff line change @@ -38,6 +38,22 @@ public enum Permission {
3838 SET_IAM_POLICY
3939 }
4040
41+ public enum DeleteResult {
42+ SUCCESS ,
43+ ALREADY_DELETED
44+ }
45+
46+ public enum UndeleteResult {
47+ SUCCESS ,
48+ DELETE_IN_PROGRESS ,
49+ GONE
50+ }
51+
52+ public enum SetIamPolicyResult {
53+ SUCCESS ,
54+ ETAG_NOT_MATCH
55+ }
56+
4157 class Tuple <X , Y > {
4258 private final X x ;
4359 private final Y y ;
@@ -98,19 +114,19 @@ public int pageSize() {
98114
99115 Project create (Project project ) throws ResourceManagerException ;
100116
101- void delete (String projectId ) throws ResourceManagerException ;
117+ DeleteResult delete (String projectId ) throws ResourceManagerException ;
102118
103119 Project get (String projectId ) throws ResourceManagerException ;
104120
105121 Tuple <String , Iterable <Project >> list (ListOptions listOptions ) throws ResourceManagerException ;
106122
107- void undelete (String projectId ) throws ResourceManagerException ;
123+ UndeleteResult undelete (String projectId ) throws ResourceManagerException ;
108124
109125 Project update (Project project ) throws ResourceManagerException ;
110126
111127 Policy getIamPolicy (String projectId ) throws ResourceManagerException ;
112128
113- void setIamPolicy (String projectId , Policy policy ) throws ResourceManagerException ;
129+ SetIamPolicyResult setIamPolicy (String projectId , Policy policy ) throws ResourceManagerException ;
114130
115131 List <Boolean > hasPermissions (String projectId , List <Permission > permissions )
116132 throws ResourceManagerException ;
You can’t perform that action at this time.
0 commit comments