Merge "Add JavaDoc for config info objects"
This commit is contained in:
@@ -19,6 +19,7 @@ import com.google.gerrit.extensions.client.AuthType;
|
||||
import com.google.gerrit.extensions.client.GitBasicAuthPolicy;
|
||||
import java.util.List;
|
||||
|
||||
/** API response containing values from the {@code auth} section of {@code gerrit.config}. */
|
||||
public class AuthInfo {
|
||||
public AuthType authType;
|
||||
public Boolean useContributorAgreements;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
/** API response containing values from the {@code change} section of {@code gerrit.config}. */
|
||||
public class ChangeConfigInfo {
|
||||
public Boolean allowBlame;
|
||||
public Boolean showAssigneeInChangesTable;
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
/**
|
||||
* API response containing values from the {@code index.change} section of {@code gerrit.config}.
|
||||
*/
|
||||
public class ChangeIndexConfigInfo {
|
||||
public Boolean indexMergeable;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ package com.google.gerrit.extensions.common;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/** API response containing values from the {@code download} section of {@code gerrit.config}. */
|
||||
public class DownloadInfo {
|
||||
public Map<String, DownloadSchemeInfo> schemes;
|
||||
public List<String> archives;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
/** API response containing values from the {@code gerrit} section of {@code gerrit.config}. */
|
||||
public class GerritInfo {
|
||||
public String allProjects;
|
||||
public String allUsers;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
/** API response containing values from the {@code index} section of {@code gerrit.config}. */
|
||||
public class IndexConfigInfo {
|
||||
public ChangeIndexConfigInfo change;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
/** API response containing values from the {@code receive} section of {@code gerrit.config}. */
|
||||
public class ReceiveInfo {
|
||||
public Boolean enableSignedPush;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
/** API response containing values from {@code gerrit.config} as nested objects. */
|
||||
public class ServerInfo {
|
||||
public AccountsInfo accounts;
|
||||
public AuthInfo auth;
|
||||
|
||||
@@ -14,4 +14,10 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
/**
|
||||
* API response containing values from the {@code sshd} section of {@code gerrit.config}.
|
||||
*
|
||||
* <p>This is currently empty, but is a class (rather than boolean) for consistency. If we ever
|
||||
* export SSH configuration, more fields will be added here.
|
||||
*/
|
||||
public class SshdInfo {}
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
/** API response containing values from the {@code suggest} section of {@code gerrit.config}. */
|
||||
public class SuggestInfo {
|
||||
|
||||
/** Number of characters after which we provide suggestions for group member completion. */
|
||||
public int from;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.extensions.common;
|
||||
|
||||
/** API response containing values from the {@code user} section of {@code gerrit.config}. */
|
||||
public class UserConfigInfo {
|
||||
public String anonymousCowardName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user