RepositoryObject¶
- 
class oci.devops.models.RepositoryObject(**kwargs)¶
- Bases: - object- Object containing information about files and directories in a repository. - Attributes - TYPE_BLOB- A constant which can be used with the type property of a RepositoryObject. - TYPE_COMMIT- A constant which can be used with the type property of a RepositoryObject. - TYPE_TREE- A constant which can be used with the type property of a RepositoryObject. - is_binary- Gets the is_binary of this RepositoryObject. - sha- [Required] Gets the sha of this RepositoryObject. - size_in_bytes- [Required] Gets the size_in_bytes of this RepositoryObject. - type- [Required] Gets the type of this RepositoryObject. - Methods - __init__(**kwargs)- Initializes a new RepositoryObject object with values from keyword arguments. - 
TYPE_BLOB= 'BLOB'¶
- A constant which can be used with the type property of a RepositoryObject. This constant has a value of “BLOB” 
 - 
TYPE_COMMIT= 'COMMIT'¶
- A constant which can be used with the type property of a RepositoryObject. This constant has a value of “COMMIT” 
 - 
TYPE_TREE= 'TREE'¶
- A constant which can be used with the type property of a RepositoryObject. This constant has a value of “TREE” 
 - 
__init__(**kwargs)¶
- Initializes a new RepositoryObject object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): - Parameters: - type (str) – The value to assign to the type property of this RepositoryObject. Allowed values for this property are: “BLOB”, “TREE”, “COMMIT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- size_in_bytes (int) – The value to assign to the size_in_bytes property of this RepositoryObject.
- sha (str) – The value to assign to the sha property of this RepositoryObject.
- is_binary (bool) – The value to assign to the is_binary property of this RepositoryObject.
 
 - 
is_binary¶
- Gets the is_binary of this RepositoryObject. Flag to determine if the object contains binary file content or not. - Returns: - The is_binary of this RepositoryObject. - Return type: - bool 
 - 
sha¶
- [Required] Gets the sha of this RepositoryObject. SHA-1 hash of git object. - Returns: - The sha of this RepositoryObject. - Return type: - str 
 - 
size_in_bytes¶
- [Required] Gets the size_in_bytes of this RepositoryObject. Size in bytes. - Returns: - The size_in_bytes of this RepositoryObject. - Return type: - int 
 - 
type¶
- [Required] Gets the type of this RepositoryObject. The type of git object. - Allowed values for this property are: “BLOB”, “TREE”, “COMMIT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’. - Returns: - The type of this RepositoryObject. - Return type: - str 
 
-