Skip to content

Commit 4a0ea33

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 6617 b: refs/heads/tswast-patch-1 c: 249fae8 h: refs/heads/master i: 6615: 23fc937
1 parent d05e0dd commit 4a0ea33

2 files changed

Lines changed: 8 additions & 24 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: c69af1acb3ee4cb24876f1444540c5b543e40c0c
60+
refs/heads/tswast-patch-1: 249fae8f180a61e7a4ef619169c62d45a90b8076
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-resourcemanager/src/main/java/com/google/gcloud/spi/ResourceManagerRpc.java

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,9 @@ public enum Permission {
3333
DELETE,
3434
GET,
3535
LIST,
36-
UPDATE,
36+
REPLACE,
3737
GET_IAM_POLICY,
38-
SET_IAM_POLICY
39-
}
40-
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
38+
REPLACE_IAM_POLICY
5539
}
5640

5741
class Tuple<X, Y> {
@@ -114,22 +98,22 @@ public int pageSize() {
11498

11599
Project create(Project project) throws ResourceManagerException;
116100

117-
DeleteResult delete(String projectId) throws ResourceManagerException;
101+
void delete(String projectId) throws ResourceManagerException;
118102

119103
Project get(String projectId) throws ResourceManagerException;
120104

121105
Tuple<String, Iterable<Project>> list(ListOptions listOptions) throws ResourceManagerException;
122106

123-
UndeleteResult undelete(String projectId) throws ResourceManagerException;
107+
void undelete(String projectId) throws ResourceManagerException;
124108

125-
Project update(Project project) throws ResourceManagerException;
109+
Project replace(Project project) throws ResourceManagerException;
126110

127111
Policy getIamPolicy(String projectId) throws ResourceManagerException;
128112

129-
SetIamPolicyResult setIamPolicy(String projectId, Policy policy) throws ResourceManagerException;
113+
boolean replaceIamPolicy(String projectId, Policy policy) throws ResourceManagerException;
130114

131115
List<Boolean> hasPermissions(String projectId, List<Permission> permissions)
132116
throws ResourceManagerException;
133117

134-
// TODO(ajaykannan): implement "Organization" functionality when available
118+
// TODO(ajaykannan): implement "Organization" functionality when available (issue #319)
135119
}

0 commit comments

Comments
 (0)