Class ConsoleSampleGitImportSourceRepository
- java.lang.Object
-
- io.fabric8.openshift.api.model.console.v1.ConsoleSampleGitImportSourceRepository
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ConsoleSampleGitImportSourceRepositoryBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ConsoleSampleGitImportSourceRepository extends Object implements io.fabric8.kubernetes.api.builder.Editable<ConsoleSampleGitImportSourceRepositoryBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ConsoleSampleGitImportSourceRepository let the user import code from a public git repository.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsoleSampleGitImportSourceRepository()No args constructor for use in serializationConsoleSampleGitImportSourceRepository(String contextDir, String revision, String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsoleSampleGitImportSourceRepositoryBuilderedit()Map<String,Object>getAdditionalProperties()StringgetContextDir()contextDir is used to specify a directory within the repository to build the component.StringgetRevision()revision is the git revision at which to clone the git repository Can be used to clone a specific branch, tag or commit SHA.StringgetUrl()url of the Git repository that contains a HTTP service.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetContextDir(String contextDir)contextDir is used to specify a directory within the repository to build the component.voidsetRevision(String revision)revision is the git revision at which to clone the git repository Can be used to clone a specific branch, tag or commit SHA.voidsetUrl(String url)url of the Git repository that contains a HTTP service.ConsoleSampleGitImportSourceRepositoryBuildertoBuilder()
-
-
-
Method Detail
-
getContextDir
public String getContextDir()
contextDir is used to specify a directory within the repository to build the component. Must start with `/` and have a maximum length of 256 characters. When omitted, the default value is to build from the root of the repository.
-
setContextDir
public void setContextDir(String contextDir)
contextDir is used to specify a directory within the repository to build the component. Must start with `/` and have a maximum length of 256 characters. When omitted, the default value is to build from the root of the repository.
-
getRevision
public String getRevision()
revision is the git revision at which to clone the git repository Can be used to clone a specific branch, tag or commit SHA. Must be at most 256 characters in length. When omitted the repository's default branch is used.
-
setRevision
public void setRevision(String revision)
revision is the git revision at which to clone the git repository Can be used to clone a specific branch, tag or commit SHA. Must be at most 256 characters in length. When omitted the repository's default branch is used.
-
getUrl
public String getUrl()
url of the Git repository that contains a HTTP service. The HTTP service must be exposed on the default port (8080) unless otherwise configured with the port field.Only public repositories on GitHub, GitLab and Bitbucket are currently supported:
- https://github.com/<org>/<repository>
- https://gitlab.com/<org>/<repository>
- https://bitbucket.org/<org>/<repository>
The url must have a maximum length of 256 characters.
-
setUrl
public void setUrl(String url)
url of the Git repository that contains a HTTP service. The HTTP service must be exposed on the default port (8080) unless otherwise configured with the port field.Only public repositories on GitHub, GitLab and Bitbucket are currently supported:
- https://github.com/<org>/<repository>
- https://gitlab.com/<org>/<repository>
- https://bitbucket.org/<org>/<repository>
The url must have a maximum length of 256 characters.
-
edit
public ConsoleSampleGitImportSourceRepositoryBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ConsoleSampleGitImportSourceRepositoryBuilder>
-
toBuilder
public ConsoleSampleGitImportSourceRepositoryBuilder toBuilder()
-
-