Package io.lakefs.clients.api.model
Class RepositoryCreation
- java.lang.Object
-
- io.lakefs.clients.api.model.RepositoryCreation
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RepositoryCreation extends Object
RepositoryCreation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepositoryCreation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DEFAULT_BRANCHstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_STORAGE_NAMESPACE
-
Constructor Summary
Constructors Constructor Description RepositoryCreation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryCreationdefaultBranch(String defaultBranch)booleanequals(Object o)static RepositoryCreationfromJson(String jsonString)Create an instance of RepositoryCreation given an JSON stringStringgetDefaultBranch()Get defaultBranchStringgetName()Get nameStringgetStorageNamespace()Filesystem URI to store the underlying data in (e.g.inthashCode()RepositoryCreationname(String name)voidsetDefaultBranch(String defaultBranch)voidsetName(String name)voidsetStorageNamespace(String storageNamespace)RepositoryCreationstorageNamespace(String storageNamespace)StringtoJson()Convert an instance of RepositoryCreation to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORAGE_NAMESPACE
public static final String SERIALIZED_NAME_STORAGE_NAMESPACE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_BRANCH
public static final String SERIALIZED_NAME_DEFAULT_BRANCH
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public RepositoryCreation name(String name)
-
setName
public void setName(String name)
-
storageNamespace
public RepositoryCreation storageNamespace(String storageNamespace)
-
getStorageNamespace
@Nonnull public String getStorageNamespace()
Filesystem URI to store the underlying data in (e.g. \"s3://my-bucket/some/path/\")- Returns:
- storageNamespace
-
setStorageNamespace
public void setStorageNamespace(String storageNamespace)
-
defaultBranch
public RepositoryCreation defaultBranch(String defaultBranch)
-
getDefaultBranch
@Nullable public String getDefaultBranch()
Get defaultBranch- Returns:
- defaultBranch
-
setDefaultBranch
public void setDefaultBranch(String defaultBranch)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to RepositoryCreation
-
fromJson
public static RepositoryCreation fromJson(String jsonString) throws IOException
Create an instance of RepositoryCreation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RepositoryCreation
- Throws:
IOException- if the JSON string is invalid with respect to RepositoryCreation
-
toJson
public String toJson()
Convert an instance of RepositoryCreation to an JSON string- Returns:
- JSON string
-
-