CreateRepositoryDetails

class oci.devops.models.CreateRepositoryDetails(**kwargs)

Bases: object

Information about the new repository.

Methods

__init__(**kwargs) Initializes a new CreateRepositoryDetails object with values from keyword arguments.

Attributes

default_branch Gets the default_branch of this CreateRepositoryDetails.
defined_tags Gets the defined_tags of this CreateRepositoryDetails.
description Gets the description of this CreateRepositoryDetails.
freeform_tags Gets the freeform_tags of this CreateRepositoryDetails.
mirror_repository_config Gets the mirror_repository_config of this CreateRepositoryDetails.
name [Required] Gets the name of this CreateRepositoryDetails.
project_id [Required] Gets the project_id of this CreateRepositoryDetails.
repository_type [Required] Gets the repository_type of this CreateRepositoryDetails.
__init__(**kwargs)

Initializes a new CreateRepositoryDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • name (str) – The value to assign to the name property of this CreateRepositoryDetails.
  • project_id (str) – The value to assign to the project_id property of this CreateRepositoryDetails.
  • default_branch (str) – The value to assign to the default_branch property of this CreateRepositoryDetails.
  • repository_type (str) – The value to assign to the repository_type property of this CreateRepositoryDetails.
  • mirror_repository_config (oci.devops.models.MirrorRepositoryConfig) – The value to assign to the mirror_repository_config property of this CreateRepositoryDetails.
  • description (str) – The value to assign to the description property of this CreateRepositoryDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateRepositoryDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateRepositoryDetails.
default_branch

Gets the default_branch of this CreateRepositoryDetails. The default branch of the repository.

Returns:The default_branch of this CreateRepositoryDetails.
Return type:str
defined_tags

Gets the defined_tags of this CreateRepositoryDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this CreateRepositoryDetails.
Return type:dict(str, dict(str, object))
description

Gets the description of this CreateRepositoryDetails. Details of the repository. Avoid entering confidential information.

Returns:The description of this CreateRepositoryDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateRepositoryDetails. 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”}

Returns:The freeform_tags of this CreateRepositoryDetails.
Return type:dict(str, str)
mirror_repository_config

Gets the mirror_repository_config of this CreateRepositoryDetails.

Returns:The mirror_repository_config of this CreateRepositoryDetails.
Return type:oci.devops.models.MirrorRepositoryConfig
name

[Required] Gets the name of this CreateRepositoryDetails. Name of the repository. Should be unique within the project.

Returns:The name of this CreateRepositoryDetails.
Return type:str
project_id

[Required] Gets the project_id of this CreateRepositoryDetails. The OCID of the DevOps project containing the repository.

Returns:The project_id of this CreateRepositoryDetails.
Return type:str
repository_type

[Required] Gets the repository_type of this CreateRepositoryDetails. Type of repository. Allowed values: MIRRORED HOSTED

Returns:The repository_type of this CreateRepositoryDetails.
Return type:str