Class Repository
Repositories containing the source code to build and deploy.
Inherited Members
Namespace: Oci.DevopsService.Models
Assembly: OCI.DotNetSDK.Devops.dll
Syntax
public class Repository
Properties
BranchCount
Declaration
[JsonProperty(PropertyName = "branchCount")]
public int? BranchCount { get; set; }
Property Value
Type | Description |
---|---|
int? | The count of the branches present in the repository. |
CommitCount
Declaration
[JsonProperty(PropertyName = "commitCount")]
public int? CommitCount { get; set; }
Property Value
Type | Description |
---|---|
int? | The count of the commits present in the repository. |
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the repository's compartment. |
Remarks
Required
DefaultBranch
Declaration
[JsonProperty(PropertyName = "defaultBranch")]
public string DefaultBranch { get; set; }
Property Value
Type | Description |
---|---|
string | The default branch of the repository. |
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace": {"bar-key": "value"}} |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | Details of the repository. Avoid entering confidential information. |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | 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"} |
HttpUrl
Declaration
[JsonProperty(PropertyName = "httpUrl")]
public string HttpUrl { get; set; }
Property Value
Type | Description |
---|---|
string | HTTP URL that you use to git clone, pull and push. |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the repository. This value is unique and immutable. |
Remarks
Required
LifecycleState
Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Repository.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
Repository.LifecycleStateEnum? | The current state of the repository. |
LifecyleDetails
Declaration
[JsonProperty(PropertyName = "lifecyleDetails")]
public string LifecyleDetails { get; set; }
Property Value
Type | Description |
---|---|
string | A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. |
MirrorRepositoryConfig
Declaration
[JsonProperty(PropertyName = "mirrorRepositoryConfig")]
public MirrorRepositoryConfig MirrorRepositoryConfig { get; set; }
Property Value
Type | Description |
---|---|
MirrorRepositoryConfig |
Name
Declaration
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Name of the repository. Should be unique within the project. This value is mutable. |
Namespace
Declaration
[JsonProperty(PropertyName = "namespace")]
public string Namespace { get; set; }
Property Value
Type | Description |
---|---|
string | Tenancy unique namespace. |
ParentRepositoryId
Declaration
[JsonProperty(PropertyName = "parentRepositoryId")]
public string ParentRepositoryId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the parent repository. |
ProjectId
Declaration
[Required(ErrorMessage = "ProjectId is required.")]
[JsonProperty(PropertyName = "projectId")]
public string ProjectId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the DevOps project containing the repository. |
Remarks
Required
ProjectName
Declaration
[JsonProperty(PropertyName = "projectName")]
public string ProjectName { get; set; }
Property Value
Type | Description |
---|---|
string | Unique project name in a namespace. |
RepositoryType
Declaration
[JsonProperty(PropertyName = "repositoryType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Repository.RepositoryTypeEnum? RepositoryType { get; set; }
Property Value
Type | Description |
---|---|
Repository.RepositoryTypeEnum? | Type of repository: MIRRORED - Repository created by mirroring an existing repository. HOSTED - Repository created and hosted using OCI DevOps code repository. FORKED - Repository created by forking an existing repository. |
SizeInBytes
Declaration
[JsonProperty(PropertyName = "sizeInBytes")]
public long? SizeInBytes { get; set; }
Property Value
Type | Description |
---|---|
long? | The size of the repository in bytes. |
SshUrl
Declaration
[JsonProperty(PropertyName = "sshUrl")]
public string SshUrl { get; set; }
Property Value
Type | Description |
---|---|
string | SSH URL that you use to git clone, pull and push. |
SystemTags
Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud": {"free-tier-retained": "true"}} |
TimeCreated
Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The time the repository was created. Format defined by RFC3339. |
TimeUpdated
Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The time the repository was updated. Format defined by RFC3339. |
TriggerBuildEvents
Declaration
[JsonProperty(PropertyName = "triggerBuildEvents", ItemConverterType = typeof(ResponseEnumConverter))]
public List<Repository.TriggerBuildEventsEnum> TriggerBuildEvents { get; set; }
Property Value
Type | Description |
---|---|
List<Repository.TriggerBuildEventsEnum> | 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. |