Package io.lakefs.clients.sdk.model
Class Repository
- java.lang.Object
-
- io.lakefs.clients.sdk.model.Repository
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Repository extends Object
Repository
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepository.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATION_DATEstatic StringSERIALIZED_NAME_DEFAULT_BRANCHstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_READ_ONLYstatic StringSERIALIZED_NAME_STORAGE_NAMESPACE
-
Constructor Summary
Constructors Constructor Description Repository()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositorycreationDate(Long creationDate)RepositorydefaultBranch(String defaultBranch)booleanequals(Object o)static RepositoryfromJson(String jsonString)Create an instance of Repository given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.LonggetCreationDate()Unix Epoch in secondsStringgetDefaultBranch()Get defaultBranchStringgetId()Get idBooleangetReadOnly()Whether the repository is a read-only repository- not relevant for bare repositoriesStringgetStorageNamespace()Filesystem URI to store the underlying data in (e.g.inthashCode()Repositoryid(String id)RepositoryputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.RepositoryreadOnly(Boolean readOnly)voidsetCreationDate(Long creationDate)voidsetDefaultBranch(String defaultBranch)voidsetId(String id)voidsetReadOnly(Boolean readOnly)voidsetStorageNamespace(String storageNamespace)RepositorystorageNamespace(String storageNamespace)StringtoJson()Convert an instance of Repository to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATION_DATE
public static final String SERIALIZED_NAME_CREATION_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_BRANCH
public static final String SERIALIZED_NAME_DEFAULT_BRANCH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORAGE_NAMESPACE
public static final String SERIALIZED_NAME_STORAGE_NAMESPACE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_READ_ONLY
public static final String SERIALIZED_NAME_READ_ONLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public Repository id(String id)
-
setId
public void setId(String id)
-
creationDate
public Repository creationDate(Long creationDate)
-
setCreationDate
public void setCreationDate(Long creationDate)
-
defaultBranch
public Repository defaultBranch(String defaultBranch)
-
setDefaultBranch
public void setDefaultBranch(String defaultBranch)
-
storageNamespace
public Repository 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)
-
readOnly
public Repository readOnly(Boolean readOnly)
-
getReadOnly
@Nullable public Boolean getReadOnly()
Whether the repository is a read-only repository- not relevant for bare repositories- Returns:
- readOnly
-
setReadOnly
public void setReadOnly(Boolean readOnly)
-
putAdditionalProperty
public Repository putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the Repository instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Repository
-
fromJson
public static Repository fromJson(String jsonString) throws IOException
Create an instance of Repository given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Repository
- Throws:
IOException- if the JSON string is invalid with respect to Repository
-
toJson
public String toJson()
Convert an instance of Repository to an JSON string- Returns:
- JSON string
-
-