java.lang.Object
org.kohsuke.github.GHRepositoryRule
Represents a repository rule.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAlerts threshold parameter.static classBoolean parameter for a ruleset.static classCode scanning tool parameter.static classInteger parameter for a ruleset.static classList parameter for a ruleset.static enumOperator parameter.static classBasic parameter for a ruleset.static interfaceAvailable parameters for a ruleset.static enumThe source of the ruleset type.static enumSecurity alerts threshold parameter.static classStatus check configuration parameter.static classString parameter for a ruleset.static enumThe type of the ruleset.static classWorkflow file reference parameter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>getParameter(GHRepositoryRule.Parameter<T> parameter) Gets a parameterlongGets 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
-
getParameter
Gets a parameter. (Parametersprovides 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
-
getRulesetId
public long getRulesetId()Gets the ruleset id.- Returns:
- the ruleset id
-
getRulesetSource
Gets the ruleset source.- Returns:
- the ruleset source
-
getRulesetSourceType
Gets the ruleset source type.- Returns:
- the ruleset source type
-
getType
Gets the type.- Returns:
- the type
-