Skip to content

Commit 78a311e

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 1441 b: refs/heads/master c: c69af1a h: refs/heads/master i: 1439: d62c6be
1 parent 0fb54cc commit 78a311e

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a60f7d16050a4a639af80697e1d5c6c6d2dc4601
2+
refs/heads/master: c69af1acb3ee4cb24876f1444540c5b543e40c0c
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: d1b373c30c176edc08692348167bec3a244bb823
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3

trunk/gcloud-java-resourcemanager/src/main/java/com/google/gcloud/spi/ResourceManagerRpc.java

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)