oci.DevOps.Repository
This resource provides the Repository resource in Oracle Cloud Infrastructure Devops service.
Creates a new repository.
Create Repository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);@overload
def Repository(resource_name: str,
               args: RepositoryArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def Repository(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               project_id: Optional[str] = None,
               repository_type: Optional[str] = None,
               default_branch: Optional[str] = None,
               defined_tags: Optional[Mapping[str, str]] = None,
               description: Optional[str] = None,
               freeform_tags: Optional[Mapping[str, str]] = None,
               mirror_repository_config: Optional[RepositoryMirrorRepositoryConfigArgs] = None,
               name: Optional[str] = None,
               parent_repository_id: Optional[str] = None)func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: oci:DevOps:Repository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ociRepositoryResource = new Oci.DevOps.Repository("ociRepositoryResource", new()
{
    ProjectId = "string",
    RepositoryType = "string",
    DefaultBranch = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    MirrorRepositoryConfig = new Oci.DevOps.Inputs.RepositoryMirrorRepositoryConfigArgs
    {
        ConnectorId = "string",
        RepositoryUrl = "string",
        TriggerSchedule = new Oci.DevOps.Inputs.RepositoryMirrorRepositoryConfigTriggerScheduleArgs
        {
            ScheduleType = "string",
            CustomSchedule = "string",
        },
    },
    Name = "string",
    ParentRepositoryId = "string",
});
example, err := devops.NewRepository(ctx, "ociRepositoryResource", &devops.RepositoryArgs{
	ProjectId:      pulumi.String("string"),
	RepositoryType: pulumi.String("string"),
	DefaultBranch:  pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	MirrorRepositoryConfig: &devops.RepositoryMirrorRepositoryConfigArgs{
		ConnectorId:   pulumi.String("string"),
		RepositoryUrl: pulumi.String("string"),
		TriggerSchedule: &devops.RepositoryMirrorRepositoryConfigTriggerScheduleArgs{
			ScheduleType:   pulumi.String("string"),
			CustomSchedule: pulumi.String("string"),
		},
	},
	Name:               pulumi.String("string"),
	ParentRepositoryId: pulumi.String("string"),
})
var ociRepositoryResource = new com.pulumi.oci.DevOps.Repository("ociRepositoryResource", com.pulumi.oci.DevOps.RepositoryArgs.builder()
    .projectId("string")
    .repositoryType("string")
    .defaultBranch("string")
    .definedTags(Map.of("string", "string"))
    .description("string")
    .freeformTags(Map.of("string", "string"))
    .mirrorRepositoryConfig(RepositoryMirrorRepositoryConfigArgs.builder()
        .connectorId("string")
        .repositoryUrl("string")
        .triggerSchedule(RepositoryMirrorRepositoryConfigTriggerScheduleArgs.builder()
            .scheduleType("string")
            .customSchedule("string")
            .build())
        .build())
    .name("string")
    .parentRepositoryId("string")
    .build());
oci_repository_resource = oci.devops.Repository("ociRepositoryResource",
    project_id="string",
    repository_type="string",
    default_branch="string",
    defined_tags={
        "string": "string",
    },
    description="string",
    freeform_tags={
        "string": "string",
    },
    mirror_repository_config={
        "connector_id": "string",
        "repository_url": "string",
        "trigger_schedule": {
            "schedule_type": "string",
            "custom_schedule": "string",
        },
    },
    name="string",
    parent_repository_id="string")
const ociRepositoryResource = new oci.devops.Repository("ociRepositoryResource", {
    projectId: "string",
    repositoryType: "string",
    defaultBranch: "string",
    definedTags: {
        string: "string",
    },
    description: "string",
    freeformTags: {
        string: "string",
    },
    mirrorRepositoryConfig: {
        connectorId: "string",
        repositoryUrl: "string",
        triggerSchedule: {
            scheduleType: "string",
            customSchedule: "string",
        },
    },
    name: "string",
    parentRepositoryId: "string",
});
type: oci:DevOps:Repository
properties:
    defaultBranch: string
    definedTags:
        string: string
    description: string
    freeformTags:
        string: string
    mirrorRepositoryConfig:
        connectorId: string
        repositoryUrl: string
        triggerSchedule:
            customSchedule: string
            scheduleType: string
    name: string
    parentRepositoryId: string
    projectId: string
    repositoryType: string
Repository Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Repository resource accepts the following input properties:
- ProjectId string
- The OCID of the DevOps project containing the repository.
- RepositoryType string
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- DefaultBranch string
- (Updatable) The default branch of the repository.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Details of the repository. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) 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"}
- MirrorRepository RepositoryConfig Mirror Repository Config 
- (Updatable) Configuration information for mirroring the repository.
- Name string
- (Updatable) Name of the repository. Should be unique within the project.
- ParentRepository stringId 
- The OCID of the parent repository.
- ProjectId string
- The OCID of the DevOps project containing the repository.
- RepositoryType string
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- DefaultBranch string
- (Updatable) The default branch of the repository.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Details of the repository. Avoid entering confidential information.
- map[string]string
- (Updatable) 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"}
- MirrorRepository RepositoryConfig Mirror Repository Config Args 
- (Updatable) Configuration information for mirroring the repository.
- Name string
- (Updatable) Name of the repository. Should be unique within the project.
- ParentRepository stringId 
- The OCID of the parent repository.
- projectId String
- The OCID of the DevOps project containing the repository.
- repositoryType String
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- defaultBranch String
- (Updatable) The default branch of the repository.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Details of the repository. Avoid entering confidential information.
- Map<String,String>
- (Updatable) 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"}
- mirrorRepository RepositoryConfig Mirror Repository Config 
- (Updatable) Configuration information for mirroring the repository.
- name String
- (Updatable) Name of the repository. Should be unique within the project.
- parentRepository StringId 
- The OCID of the parent repository.
- projectId string
- The OCID of the DevOps project containing the repository.
- repositoryType string
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- defaultBranch string
- (Updatable) The default branch of the repository.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- description string
- (Updatable) Details of the repository. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) 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"}
- mirrorRepository RepositoryConfig Mirror Repository Config 
- (Updatable) Configuration information for mirroring the repository.
- name string
- (Updatable) Name of the repository. Should be unique within the project.
- parentRepository stringId 
- The OCID of the parent repository.
- project_id str
- The OCID of the DevOps project containing the repository.
- repository_type str
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- default_branch str
- (Updatable) The default branch of the repository.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- description str
- (Updatable) Details of the repository. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) 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"}
- mirror_repository_ Repositoryconfig Mirror Repository Config Args 
- (Updatable) Configuration information for mirroring the repository.
- name str
- (Updatable) Name of the repository. Should be unique within the project.
- parent_repository_ strid 
- The OCID of the parent repository.
- projectId String
- The OCID of the DevOps project containing the repository.
- repositoryType String
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- defaultBranch String
- (Updatable) The default branch of the repository.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Details of the repository. Avoid entering confidential information.
- Map<String>
- (Updatable) 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"}
- mirrorRepository Property MapConfig 
- (Updatable) Configuration information for mirroring the repository.
- name String
- (Updatable) Name of the repository. Should be unique within the project.
- parentRepository StringId 
- The OCID of the parent repository.
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:
- BranchCount int
- The count of the branches present in the repository.
- CommitCount int
- The count of the commits present in the repository.
- CompartmentId string
- The OCID of the repository's compartment.
- HttpUrl string
- HTTP URL that you use to git clone, pull and push.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecyleDetails 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.
- Namespace string
- Tenancy unique namespace.
- ProjectName string
- Unique project name in a namespace.
- SizeIn stringBytes 
- The size of the repository in bytes.
- SshUrl string
- SSH URL that you use to git clone, pull and push.
- State string
- The current state of the repository.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the repository was created. Format defined by RFC3339.
- TimeUpdated string
- The time the repository was updated. Format defined by RFC3339.
- TriggerBuild List<string>Events 
- 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.
- BranchCount int
- The count of the branches present in the repository.
- CommitCount int
- The count of the commits present in the repository.
- CompartmentId string
- The OCID of the repository's compartment.
- HttpUrl string
- HTTP URL that you use to git clone, pull and push.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecyleDetails 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.
- Namespace string
- Tenancy unique namespace.
- ProjectName string
- Unique project name in a namespace.
- SizeIn stringBytes 
- The size of the repository in bytes.
- SshUrl string
- SSH URL that you use to git clone, pull and push.
- State string
- The current state of the repository.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the repository was created. Format defined by RFC3339.
- TimeUpdated string
- The time the repository was updated. Format defined by RFC3339.
- TriggerBuild []stringEvents 
- 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.
- branchCount Integer
- The count of the branches present in the repository.
- commitCount Integer
- The count of the commits present in the repository.
- compartmentId String
- The OCID of the repository's compartment.
- httpUrl String
- HTTP URL that you use to git clone, pull and push.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecyleDetails 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.
- namespace String
- Tenancy unique namespace.
- projectName String
- Unique project name in a namespace.
- sizeIn StringBytes 
- The size of the repository in bytes.
- sshUrl String
- SSH URL that you use to git clone, pull and push.
- state String
- The current state of the repository.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the repository was created. Format defined by RFC3339.
- timeUpdated String
- The time the repository was updated. Format defined by RFC3339.
- triggerBuild List<String>Events 
- 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.
- branchCount number
- The count of the branches present in the repository.
- commitCount number
- The count of the commits present in the repository.
- compartmentId string
- The OCID of the repository's compartment.
- httpUrl string
- HTTP URL that you use to git clone, pull and push.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecyleDetails 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.
- namespace string
- Tenancy unique namespace.
- projectName string
- Unique project name in a namespace.
- sizeIn stringBytes 
- The size of the repository in bytes.
- sshUrl string
- SSH URL that you use to git clone, pull and push.
- state string
- The current state of the repository.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time the repository was created. Format defined by RFC3339.
- timeUpdated string
- The time the repository was updated. Format defined by RFC3339.
- triggerBuild string[]Events 
- 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.
- branch_count int
- The count of the branches present in the repository.
- commit_count int
- The count of the commits present in the repository.
- compartment_id str
- The OCID of the repository's compartment.
- http_url str
- HTTP URL that you use to git clone, pull and push.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecyle_details str
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- namespace str
- Tenancy unique namespace.
- project_name str
- Unique project name in a namespace.
- size_in_ strbytes 
- The size of the repository in bytes.
- ssh_url str
- SSH URL that you use to git clone, pull and push.
- state str
- The current state of the repository.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time the repository was created. Format defined by RFC3339.
- time_updated str
- The time the repository was updated. Format defined by RFC3339.
- trigger_build_ Sequence[str]events 
- 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.
- branchCount Number
- The count of the branches present in the repository.
- commitCount Number
- The count of the commits present in the repository.
- compartmentId String
- The OCID of the repository's compartment.
- httpUrl String
- HTTP URL that you use to git clone, pull and push.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecyleDetails 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.
- namespace String
- Tenancy unique namespace.
- projectName String
- Unique project name in a namespace.
- sizeIn StringBytes 
- The size of the repository in bytes.
- sshUrl String
- SSH URL that you use to git clone, pull and push.
- state String
- The current state of the repository.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the repository was created. Format defined by RFC3339.
- timeUpdated String
- The time the repository was updated. Format defined by RFC3339.
- triggerBuild List<String>Events 
- 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.
Look up Existing Repository Resource
Get an existing Repository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RepositoryState, opts?: CustomResourceOptions): Repository@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        branch_count: Optional[int] = None,
        commit_count: Optional[int] = None,
        compartment_id: Optional[str] = None,
        default_branch: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        http_url: Optional[str] = None,
        lifecyle_details: Optional[str] = None,
        mirror_repository_config: Optional[RepositoryMirrorRepositoryConfigArgs] = None,
        name: Optional[str] = None,
        namespace: Optional[str] = None,
        parent_repository_id: Optional[str] = None,
        project_id: Optional[str] = None,
        project_name: Optional[str] = None,
        repository_type: Optional[str] = None,
        size_in_bytes: Optional[str] = None,
        ssh_url: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None,
        trigger_build_events: Optional[Sequence[str]] = None) -> Repositoryfunc GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)resources:  _:    type: oci:DevOps:Repository    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- BranchCount int
- The count of the branches present in the repository.
- CommitCount int
- The count of the commits present in the repository.
- CompartmentId string
- The OCID of the repository's compartment.
- DefaultBranch string
- (Updatable) The default branch of the repository.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Details of the repository. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) 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 string
- HTTP URL that you use to git clone, pull and push.
- LifecyleDetails 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.
- MirrorRepository RepositoryConfig Mirror Repository Config 
- (Updatable) Configuration information for mirroring the repository.
- Name string
- (Updatable) Name of the repository. Should be unique within the project.
- Namespace string
- Tenancy unique namespace.
- ParentRepository stringId 
- The OCID of the parent repository.
- ProjectId string
- The OCID of the DevOps project containing the repository.
- ProjectName string
- Unique project name in a namespace.
- RepositoryType string
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- SizeIn stringBytes 
- The size of the repository in bytes.
- SshUrl string
- SSH URL that you use to git clone, pull and push.
- State string
- The current state of the repository.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the repository was created. Format defined by RFC3339.
- TimeUpdated string
- The time the repository was updated. Format defined by RFC3339.
- TriggerBuild List<string>Events 
- 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.
- BranchCount int
- The count of the branches present in the repository.
- CommitCount int
- The count of the commits present in the repository.
- CompartmentId string
- The OCID of the repository's compartment.
- DefaultBranch string
- (Updatable) The default branch of the repository.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Details of the repository. Avoid entering confidential information.
- map[string]string
- (Updatable) 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 string
- HTTP URL that you use to git clone, pull and push.
- LifecyleDetails 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.
- MirrorRepository RepositoryConfig Mirror Repository Config Args 
- (Updatable) Configuration information for mirroring the repository.
- Name string
- (Updatable) Name of the repository. Should be unique within the project.
- Namespace string
- Tenancy unique namespace.
- ParentRepository stringId 
- The OCID of the parent repository.
- ProjectId string
- The OCID of the DevOps project containing the repository.
- ProjectName string
- Unique project name in a namespace.
- RepositoryType string
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- SizeIn stringBytes 
- The size of the repository in bytes.
- SshUrl string
- SSH URL that you use to git clone, pull and push.
- State string
- The current state of the repository.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the repository was created. Format defined by RFC3339.
- TimeUpdated string
- The time the repository was updated. Format defined by RFC3339.
- TriggerBuild []stringEvents 
- 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.
- branchCount Integer
- The count of the branches present in the repository.
- commitCount Integer
- The count of the commits present in the repository.
- compartmentId String
- The OCID of the repository's compartment.
- defaultBranch String
- (Updatable) The default branch of the repository.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Details of the repository. Avoid entering confidential information.
- Map<String,String>
- (Updatable) 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 String
- HTTP URL that you use to git clone, pull and push.
- lifecyleDetails 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.
- mirrorRepository RepositoryConfig Mirror Repository Config 
- (Updatable) Configuration information for mirroring the repository.
- name String
- (Updatable) Name of the repository. Should be unique within the project.
- namespace String
- Tenancy unique namespace.
- parentRepository StringId 
- The OCID of the parent repository.
- projectId String
- The OCID of the DevOps project containing the repository.
- projectName String
- Unique project name in a namespace.
- repositoryType String
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sizeIn StringBytes 
- The size of the repository in bytes.
- sshUrl String
- SSH URL that you use to git clone, pull and push.
- state String
- The current state of the repository.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the repository was created. Format defined by RFC3339.
- timeUpdated String
- The time the repository was updated. Format defined by RFC3339.
- triggerBuild List<String>Events 
- 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.
- branchCount number
- The count of the branches present in the repository.
- commitCount number
- The count of the commits present in the repository.
- compartmentId string
- The OCID of the repository's compartment.
- defaultBranch string
- (Updatable) The default branch of the repository.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- description string
- (Updatable) Details of the repository. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) 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 string
- HTTP URL that you use to git clone, pull and push.
- lifecyleDetails 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.
- mirrorRepository RepositoryConfig Mirror Repository Config 
- (Updatable) Configuration information for mirroring the repository.
- name string
- (Updatable) Name of the repository. Should be unique within the project.
- namespace string
- Tenancy unique namespace.
- parentRepository stringId 
- The OCID of the parent repository.
- projectId string
- The OCID of the DevOps project containing the repository.
- projectName string
- Unique project name in a namespace.
- repositoryType string
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sizeIn stringBytes 
- The size of the repository in bytes.
- sshUrl string
- SSH URL that you use to git clone, pull and push.
- state string
- The current state of the repository.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time the repository was created. Format defined by RFC3339.
- timeUpdated string
- The time the repository was updated. Format defined by RFC3339.
- triggerBuild string[]Events 
- 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.
- branch_count int
- The count of the branches present in the repository.
- commit_count int
- The count of the commits present in the repository.
- compartment_id str
- The OCID of the repository's compartment.
- default_branch str
- (Updatable) The default branch of the repository.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- description str
- (Updatable) Details of the repository. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) 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"}
- http_url str
- HTTP URL that you use to git clone, pull and push.
- lifecyle_details str
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- mirror_repository_ Repositoryconfig Mirror Repository Config Args 
- (Updatable) Configuration information for mirroring the repository.
- name str
- (Updatable) Name of the repository. Should be unique within the project.
- namespace str
- Tenancy unique namespace.
- parent_repository_ strid 
- The OCID of the parent repository.
- project_id str
- The OCID of the DevOps project containing the repository.
- project_name str
- Unique project name in a namespace.
- repository_type str
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- size_in_ strbytes 
- The size of the repository in bytes.
- ssh_url str
- SSH URL that you use to git clone, pull and push.
- state str
- The current state of the repository.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time the repository was created. Format defined by RFC3339.
- time_updated str
- The time the repository was updated. Format defined by RFC3339.
- trigger_build_ Sequence[str]events 
- 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.
- branchCount Number
- The count of the branches present in the repository.
- commitCount Number
- The count of the commits present in the repository.
- compartmentId String
- The OCID of the repository's compartment.
- defaultBranch String
- (Updatable) The default branch of the repository.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Details of the repository. Avoid entering confidential information.
- Map<String>
- (Updatable) 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 String
- HTTP URL that you use to git clone, pull and push.
- lifecyleDetails 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.
- mirrorRepository Property MapConfig 
- (Updatable) Configuration information for mirroring the repository.
- name String
- (Updatable) Name of the repository. Should be unique within the project.
- namespace String
- Tenancy unique namespace.
- parentRepository StringId 
- The OCID of the parent repository.
- projectId String
- The OCID of the DevOps project containing the repository.
- projectName String
- Unique project name in a namespace.
- repositoryType String
- (Updatable) Type of repository. Allowed values: - MIRRORED- HOSTED- FORKED- ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- sizeIn StringBytes 
- The size of the repository in bytes.
- sshUrl String
- SSH URL that you use to git clone, pull and push.
- state String
- The current state of the repository.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the repository was created. Format defined by RFC3339.
- timeUpdated String
- The time the repository was updated. Format defined by RFC3339.
- triggerBuild List<String>Events 
- 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.
Supporting Types
RepositoryMirrorRepositoryConfig, RepositoryMirrorRepositoryConfigArgs        
- ConnectorId string
- (Updatable) Upstream git repository connection identifier.
- RepositoryUrl string
- (Updatable) URL of external repository you want to mirror.
- TriggerSchedule RepositoryMirror Repository Config Trigger Schedule 
- (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- ConnectorId string
- (Updatable) Upstream git repository connection identifier.
- RepositoryUrl string
- (Updatable) URL of external repository you want to mirror.
- TriggerSchedule RepositoryMirror Repository Config Trigger Schedule 
- (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connectorId String
- (Updatable) Upstream git repository connection identifier.
- repositoryUrl String
- (Updatable) URL of external repository you want to mirror.
- triggerSchedule RepositoryMirror Repository Config Trigger Schedule 
- (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connectorId string
- (Updatable) Upstream git repository connection identifier.
- repositoryUrl string
- (Updatable) URL of external repository you want to mirror.
- triggerSchedule RepositoryMirror Repository Config Trigger Schedule 
- (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connector_id str
- (Updatable) Upstream git repository connection identifier.
- repository_url str
- (Updatable) URL of external repository you want to mirror.
- trigger_schedule RepositoryMirror Repository Config Trigger Schedule 
- (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
- connectorId String
- (Updatable) Upstream git repository connection identifier.
- repositoryUrl String
- (Updatable) URL of external repository you want to mirror.
- triggerSchedule Property Map
- (Updatable) Specifies a trigger schedule. Timing information for when to initiate automated syncs.
RepositoryMirrorRepositoryConfigTriggerSchedule, RepositoryMirrorRepositoryConfigTriggerScheduleArgs            
- ScheduleType string
- (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- CustomSchedule string
- (Updatable) Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- ScheduleType string
- (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- CustomSchedule string
- (Updatable) Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- scheduleType String
- (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- customSchedule String
- (Updatable) Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- scheduleType string
- (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- customSchedule string
- (Updatable) Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- schedule_type str
- (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- custom_schedule str
- (Updatable) Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
- scheduleType String
- (Updatable) Different types of trigger schedule: NONE - No automated synchronization schedule. DEFAULT - Trigger schedule is every 30 minutes. CUSTOM - Custom triggering schedule.
- customSchedule String
- (Updatable) Valid if type is CUSTOM. Following RFC 5545 recurrence rules, we can specify starting time, occurrence frequency, and interval size. Example for frequency could be DAILY/WEEKLY/HOURLY or any RFC 5545 supported frequency, which is followed by start time of this window. You can control the start time with BYHOUR, BYMINUTE and BYSECONDS. It is followed by the interval size.
Import
Repositories can be imported using the id, e.g.
$ pulumi import oci:DevOps/repository:Repository test_repository "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
