Package org.kohsuke.github
Class GHRepositoryVariable
- java.lang.Object
-
- org.kohsuke.github.GHRepositoryVariable
-
public class GHRepositoryVariable extends Object
The type Gh repository variable.- Author:
- garridobarrera
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGHRepositoryVariable.CreatorAGHRepositoryVariableBuilderthat creates a newGHRepositoryVariablestatic classGHRepositoryVariable.SetterAGHRepositoryVariableBuilderthat updates a single property per request
-
Constructor Summary
Constructors Constructor Description GHRepositoryVariable()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddelete()Delete this variable from the repository.StringgetName()Gets name.GitHubgetRoot()Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.StringgetUrl()Gets url.StringgetValue()Gets value.GHRepositoryVariable.Setterset()Begins a single property update.voidsetName(String name)Sets name.voidsetValue(String value)Sets value.
-
-
-
Method Detail
-
getName
public String getName()
Gets name.- Returns:
- the name
-
setName
public void setName(String name)
Sets name.- Parameters:
name- the name
-
getValue
public String getValue()
Gets value.- Returns:
- the value
-
setValue
public void setValue(String value)
Sets value.- Parameters:
value- the value
-
delete
public void delete() throws IOExceptionDelete this variable from the repository.- Throws:
IOException- the io exception
-
set
@BetaApi public GHRepositoryVariable.Setter set()
Begins a single property update.- Returns:
- a
GHRepositoryVariable.Setter
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
-