Skip to content

Commit 7202d68

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 2571 b: refs/heads/update-datastore c: c69af1a h: refs/heads/master i: 2569: d060057 2567: 9263dcf
1 parent c3b8625 commit 7202d68

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
@@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8-
refs/heads/update-datastore: a60f7d16050a4a639af80697e1d5c6c6d2dc4601
8+
refs/heads/update-datastore: c69af1acb3ee4cb24876f1444540c5b543e40c0c
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111
refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2

branches/update-datastore/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)