java.lang.Object
org.kohsuke.github.GHRepositoryRule
Represents a repository rule.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Alerts threshold parameter.static class
Boolean parameter for a ruleset.static class
Code scanning tool parameter.static class
Integer parameter for a ruleset.static class
List parameter for a ruleset.static enum
Operator parameter.static class
Basic parameter for a ruleset.static interface
Available parameters for a ruleset.static enum
The source of the ruleset type.static enum
Security alerts threshold parameter.static class
Status check configuration parameter.static class
String parameter for a ruleset.static enum
The type of the ruleset.static class
Workflow file reference parameter. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>
getParameter
(GHRepositoryRule.Parameter<T> parameter) Gets a parameterlong
Gets the ruleset id.Gets the ruleset source.Gets the ruleset source type.getType()
Gets the type.
-
Constructor Details
-
GHRepositoryRule
public GHRepositoryRule()Create default GHRepositoryRule instance
-
-
Method Details
-
getType
Gets the type.- Returns:
- the type
-
getRulesetSourceType
Gets the ruleset source type.- Returns:
- the ruleset source type
-
getRulesetSource
Gets the ruleset source.- Returns:
- the ruleset source
-
getRulesetId
public long getRulesetId()Gets the ruleset id.- Returns:
- the ruleset id
-
getParameter
Gets a parameter. (Parameters
provides a list of available parameters.)- Type Parameters:
T
- the type of the parameter- Parameters:
parameter
- the parameter- Returns:
- the parameters
- Throws:
IOException
- if an I/O error occurs
-