@@ -76,7 +76,7 @@ type Client interface {
76
76
// GetProjectIAMPolicy gets the project IAM policy by project full name.
77
77
GetProjectIAMPolicy (ctx context.Context , projectName string ) (* v1pb.IamPolicy , error )
78
78
// SetProjectIAMPolicy sets the project IAM policy.
79
- SetProjectIAMPolicy (ctx context.Context , projectName string , iamPolicy * v1pb.IamPolicy ) (* v1pb.IamPolicy , error )
79
+ SetProjectIAMPolicy (ctx context.Context , projectName string , update * v1pb.SetIamPolicyRequest ) (* v1pb.IamPolicy , error )
80
80
81
81
// Setting
82
82
// ListSettings lists all settings.
@@ -98,7 +98,7 @@ type Client interface {
98
98
// CreateVCSProvider creates the vcs provider.
99
99
CreateVCSProvider (ctx context.Context , vcsID string , vcs * v1pb.VCSProvider ) (* v1pb.VCSProvider , error )
100
100
// UpdateVCSProvider updates the vcs provider.
101
- UpdateVCSProvider (ctx context.Context , patch * v1pb.VCSProvider , updateMasks []string ) (* v1pb.VCSConnector , error )
101
+ UpdateVCSProvider (ctx context.Context , patch * v1pb.VCSProvider , updateMasks []string ) (* v1pb.VCSProvider , error )
102
102
// DeleteVCSProvider deletes the vcs provider.
103
103
DeleteVCSProvider (ctx context.Context , name string ) error
104
104
@@ -127,4 +127,22 @@ type Client interface {
127
127
DeleteUser (ctx context.Context , userName string ) error
128
128
// UndeleteUser undeletes the user by name.
129
129
UndeleteUser (ctx context.Context , userName string ) (* v1pb.User , error )
130
+
131
+ // Group
132
+ // ListGroup list all groups.
133
+ ListGroup (ctx context.Context ) (* v1pb.ListGroupsResponse , error )
134
+ // CreateGroup creates the group.
135
+ CreateGroup (ctx context.Context , email string , group * v1pb.Group ) (* v1pb.Group , error )
136
+ // GetGroup gets the group by name.
137
+ GetGroup (ctx context.Context , name string ) (* v1pb.Group , error )
138
+ // UpdateGroup updates the group.
139
+ UpdateGroup (ctx context.Context , patch * v1pb.Group , updateMasks []string ) (* v1pb.Group , error )
140
+ // DeleteGroup deletes the group by name.
141
+ DeleteGroup (ctx context.Context , name string ) error
142
+
143
+ // Workspace
144
+ // GetWorkspaceIAMPolicy gets the workspace IAM policy.
145
+ GetWorkspaceIAMPolicy (ctx context.Context ) (* v1pb.IamPolicy , error )
146
+ // SetWorkspaceIAMPolicy sets the workspace IAM policy.
147
+ SetWorkspaceIAMPolicy (ctx context.Context , setIamPolicyRequest * v1pb.SetIamPolicyRequest ) (* v1pb.IamPolicy , error )
130
148
}
0 commit comments