Class CreateContainerRepositoryDetails
Create container repository details.
Inherited Members
Namespace: Oci.ArtifactsService.Models
Assembly: OCI.DotNetSDK.Artifacts.dll
Syntax
public class CreateContainerRepositoryDetails
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the compartment in which to create the resource. |
Remarks
Required
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. For more information, see Resource Tags.
|
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The container repository name. |
Remarks
Required
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> | Free-form tags for this resource. Each tag is a simple key-value pair with no
predefined name, type, or namespace. For more information, see Resource Tags.
|
IsImmutable
Declaration
[JsonProperty(PropertyName = "isImmutable")]
public bool? IsImmutable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Whether the repository is immutable. Images cannot be overwritten in an immutable repository. Currently, setting this flag is not supported yet and is set to false by default. |
IsPublic
Declaration
[JsonProperty(PropertyName = "isPublic")]
public bool? IsPublic { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Whether the repository is public. A public repository allows unauthenticated access. |
IsTopLevel
Declaration
[JsonProperty(PropertyName = "isTopLevel")]
public bool? IsTopLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Whether the repository is top-level. A top-level repository reserves its name in namespace as a prefix and allows images to be hosted under child paths of that prefix. |
MultiRegionPeers
Declaration
[JsonProperty(PropertyName = "multiRegionPeers")]
public List<string> MultiRegionPeers { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> | List of peer regions that define the multi-region group. Peer regions must be specified using canonical region names (for example, |
Readme
Declaration
[JsonProperty(PropertyName = "readme")]
public ContainerRepositoryReadme Readme { get; set; }
Property Value
| Type | Description |
|---|---|
| ContainerRepositoryReadme |
RepositoryType
Declaration
[JsonProperty(PropertyName = "repositoryType")]
[JsonConverter(typeof(StringEnumConverter))]
public ContainerRepository.RepositoryTypeEnum? RepositoryType { get; set; }
Property Value
| Type | Description |
|---|---|
| ContainerRepository.RepositoryTypeEnum? | The type of container repository. This determines the repository behavior and required settings. |
UpstreamSecretId
Declaration
[JsonProperty(PropertyName = "upstreamSecretId")]
public string UpstreamSecretId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the OCI Vault secret that contains the upstream registry password as base64 encoded string for a pull-through cache repository. Required when repositoryType is PULL_THROUGH.
|
UpstreamUrl
Declaration
[JsonProperty(PropertyName = "upstreamUrl")]
public string UpstreamUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpstreamUsername
Declaration
[JsonProperty(PropertyName = "upstreamUsername")]
public string UpstreamUsername { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The upstream registry username for a pull-through cache repository. Required when repositoryType is PULL_THROUGH. |