ProjectApi: Implement put/get description

Change-Id: Ib41ce21d028d62e944bcf1d1934ebe94bc7fc90f
This commit is contained in:
Dave Borowitz
2015-03-16 12:16:52 -07:00
parent 5c8c20b28f
commit b6de5db28a
6 changed files with 96 additions and 18 deletions

View File

@@ -25,6 +25,9 @@ public interface ProjectApi {
ProjectApi create(ProjectInput in) throws RestApiException;
ProjectInfo get() throws RestApiException;
String description() throws RestApiException;
void description(PutDescriptionInput in) throws RestApiException;
List<ProjectInfo> children() throws RestApiException;
List<ProjectInfo> children(boolean recursive) throws RestApiException;
ChildProjectApi child(String name) throws RestApiException;
@@ -64,6 +67,17 @@ public interface ProjectApi {
throw new NotImplementedException();
}
@Override
public String description() throws RestApiException {
throw new NotImplementedException();
}
@Override
public void description(PutDescriptionInput in)
throws RestApiException {
throw new NotImplementedException();
}
@Override
public List<ProjectInfo> children() {
throw new NotImplementedException();

View File

@@ -0,0 +1,23 @@
// Copyright (C) 2015 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.extensions.api.projects;
import com.google.gerrit.extensions.restapi.DefaultInput;
public class PutDescriptionInput {
@DefaultInput
public String description;
public String commitMessage;
}