@Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public final class Repository extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Repositories containing the source code to build and deploy.
Note: Objects should always be created or deserialized using the Repository.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Repository.Builder
, which maintain a
set of all explicitly set fields called Repository.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Repository.Builder |
static class |
Repository.LifecycleState
The current state of the repository.
|
static class |
Repository.RepositoryType
Type of repository: MIRRORED - Repository created by mirroring an existing repository.
|
static class |
Repository.TriggerBuildEvents |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Repository(String id,
String name,
String compartmentId,
String namespace,
String projectId,
String parentRepositoryId,
String projectName,
String sshUrl,
String httpUrl,
String description,
String defaultBranch,
Repository.RepositoryType repositoryType,
MirrorRepositoryConfig mirrorRepositoryConfig,
Date timeCreated,
Date timeUpdated,
Repository.LifecycleState lifecycleState,
String lifecyleDetails,
Integer branchCount,
Integer commitCount,
Long sizeInBytes,
List<Repository.TriggerBuildEvents> triggerBuildEvents,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags,
Map<String,Map<String,Object>> systemTags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Repository.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getBranchCount()
The count of the branches present in the repository.
|
Integer |
getCommitCount()
The count of the commits present in the repository.
|
String |
getCompartmentId()
The OCID of the repository’s compartment.
|
String |
getDefaultBranch()
The default branch of the repository.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getDescription()
Details of the repository.
|
Map<String,String> |
getFreeformTags()
Simple key-value pair that is applied without any predefined name, type or scope.
|
String |
getHttpUrl()
HTTP URL that you use to git clone, pull and push.
|
String |
getId()
The OCID of the repository.
|
Repository.LifecycleState |
getLifecycleState()
The current state of the repository.
|
String |
getLifecyleDetails()
A message describing the current state in more detail.
|
MirrorRepositoryConfig |
getMirrorRepositoryConfig() |
String |
getName()
Name of the repository.
|
String |
getNamespace()
Tenancy unique namespace.
|
String |
getParentRepositoryId()
The OCID of the parent repository.
|
String |
getProjectId()
The OCID of the DevOps project containing the repository.
|
String |
getProjectName()
Unique project name in a namespace.
|
Repository.RepositoryType |
getRepositoryType()
Type of repository: MIRRORED - Repository created by mirroring an existing repository.
|
Long |
getSizeInBytes()
The size of the repository in bytes.
|
String |
getSshUrl()
SSH URL that you use to git clone, pull and push.
|
Map<String,Map<String,Object>> |
getSystemTags()
Usage of system tag keys.
|
Date |
getTimeCreated()
The time the repository was created.
|
Date |
getTimeUpdated()
The time the repository was updated.
|
List<Repository.TriggerBuildEvents> |
getTriggerBuildEvents()
Trigger build events supported for this repository: PUSH - Build is triggered when a push
event occurs.
|
int |
hashCode() |
Repository.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","name","compartmentId","namespace","projectId","parentRepositoryId","projectName","sshUrl","httpUrl","description","defaultBranch","repositoryType","mirrorRepositoryConfig","timeCreated","timeUpdated","lifecycleState","lifecyleDetails","branchCount","commitCount","sizeInBytes","triggerBuildEvents","freeformTags","definedTags","systemTags"}) public Repository(String id, String name, String compartmentId, String namespace, String projectId, String parentRepositoryId, String projectName, String sshUrl, String httpUrl, String description, String defaultBranch, Repository.RepositoryType repositoryType, MirrorRepositoryConfig mirrorRepositoryConfig, Date timeCreated, Date timeUpdated, Repository.LifecycleState lifecycleState, String lifecyleDetails, Integer branchCount, Integer commitCount, Long sizeInBytes, List<Repository.TriggerBuildEvents> triggerBuildEvents, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags)
public static Repository.Builder builder()
Create a new builder.
public Repository.Builder toBuilder()
public String getId()
The OCID of the repository. This value is unique and immutable.
public String getName()
Name of the repository. Should be unique within the project. This value is mutable.
public String getCompartmentId()
The OCID of the repository’s compartment.
public String getNamespace()
Tenancy unique namespace.
public String getProjectId()
The OCID of the DevOps project containing the repository.
public String getParentRepositoryId()
The OCID of the parent repository.
public String getProjectName()
Unique project name in a namespace.
public String getSshUrl()
SSH URL that you use to git clone, pull and push.
public String getHttpUrl()
HTTP URL that you use to git clone, pull and push.
public String getDescription()
Details of the repository. Avoid entering confidential information.
public String getDefaultBranch()
The default branch of the repository.
public Repository.RepositoryType getRepositoryType()
Type of repository: MIRRORED - Repository created by mirroring an existing repository. HOSTED
public MirrorRepositoryConfig getMirrorRepositoryConfig()
public Date getTimeCreated()
The time the repository was created. Format defined by RFC3339.
public Date getTimeUpdated()
The time the repository was updated. Format defined by RFC3339.
public Repository.LifecycleState getLifecycleState()
The current state of the repository.
public String getLifecyleDetails()
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
public Integer getBranchCount()
The count of the branches present in the repository.
public Integer getCommitCount()
The count of the commits present in the repository.
public Long getSizeInBytes()
The size of the repository in bytes.
public List<Repository.TriggerBuildEvents> getTriggerBuildEvents()
Trigger build events supported for this repository: PUSH - Build is triggered when a push event occurs. PULL_REQUEST_CREATED - Build is triggered when a pull request is created in the repository. PULL_REQUEST_UPDATED - Build is triggered when a push is made to a branch with an open pull request. COMMIT_UPDATES - Build is triggered when new commits are mirrored into a repository.
public Map<String,String> getFreeformTags()
Simple key-value pair that is applied without any predefined name, type or scope. Exists for
cross-compatibility only. See Resource
Tags. Example:
{"bar-key": "value"}
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace. See
Resource Tags.
Example: {"foo-namespace": {"bar-key": "value"}}
public Map<String,Map<String,Object>> getSystemTags()
Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource
Tags. Example:
{"orcl-cloud": {"free-tier-retained": "true"}}
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.