java.lang.Object
com.s8.api.flow.repository.requests.CreateRepositoryS8Request
A Request object to create a new repository.
- Author:
- Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Status for the response -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
the initail commit commentboolean
true if override is enabledboolean
true if resource has to be savedfinal String
the main branch namefinal RepoS8Object[]
the objectsfinal String
the repository addressfinal String
the repository infofinal String
the repository name -
Constructor Summary
ConstructorsConstructorDescriptionCreateRepositoryS8Request
(String repositoryName, String repositoryAddress, String repositoryInfo, String mainBranchName, RepoS8Object[] objects, String initialCommitComment) Main constructor -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Callback method run upon failed request executionabstract void
onResponse
(CreateRepositoryS8Request.Status status, long version) Callback method run upon successful request execution
-
Field Details
-
repositoryName
the repository name -
repositoryAddress
the repository address -
repositoryInfo
the repository info -
mainBranchName
the main branch name -
objects
the objects -
initialCommitComment
the initail commit comment -
isResourceSaved
public boolean isResourceSavedtrue if resource has to be saved -
isOverrideEnabled
public boolean isOverrideEnabledtrue if override is enabled
-
-
Constructor Details
-
CreateRepositoryS8Request
public CreateRepositoryS8Request(String repositoryName, String repositoryAddress, String repositoryInfo, String mainBranchName, RepoS8Object[] objects, String initialCommitComment) Main constructor- Parameters:
repositoryName
- the name of the repositoryrepositoryAddress
- the address of the repositoryrepositoryInfo
- the repository infomainBranchName
- the main branch nameobjects
- objects for the initial commitinitialCommitComment
- the initial commit comment
-
-
Method Details
-
onResponse
Callback method run upon successful request execution- Parameters:
status
- the response statusversion
- the version returned
-
onFailed
Callback method run upon failed request execution- Parameters:
exception
- the execption raised during the request processing
-