Show / Hide Table of Contents

Class OdaInstanceAttachment

Description of an ODA instance attachment.

Inheritance
object
OdaInstanceAttachment
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.OdaService.Models
Assembly: OCI.DotNetSDK.Oda.dll
Syntax
public class OdaInstanceAttachment

Properties

AttachToId

Declaration
[Required(ErrorMessage = "AttachToId is required.")]
[JsonProperty(PropertyName = "attachToId")]
public string AttachToId { get; set; }
Property Value
Type Description
string

The OCID of the target instance (which could be any other OCI PaaS/SaaS resource), to which the ODA instance is or is being attached.

Remarks

Required

AttachmentMetadata

Declaration
[JsonProperty(PropertyName = "attachmentMetadata")]
public string AttachmentMetadata { get; set; }
Property Value
Type Description
string

Attachment-specific metadata, defined by the target service.

AttachmentType

Declaration
[Required(ErrorMessage = "AttachmentType is required.")]
[JsonProperty(PropertyName = "attachmentType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public OdaInstanceAttachment.AttachmentTypeEnum? AttachmentType { get; set; }
Property Value
Type Description
OdaInstanceAttachment.AttachmentTypeEnum?

The type of attachment defined as an enum.

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>>

Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace": {"bar-key": "value"}}

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. Example: {"bar-key": "value"}

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

Unique immutable identifier that was assigned when the ODA instance attachment was created.

Remarks

Required

InstanceId

Declaration
[Required(ErrorMessage = "InstanceId is required.")]
[JsonProperty(PropertyName = "instanceId")]
public string InstanceId { get; set; }
Property Value
Type Description
string

The OCID of the ODA instance to which the attachment applies.

Remarks

Required

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public OdaInstanceAttachment.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
OdaInstanceAttachment.LifecycleStateEnum?

The current state of the attachment.

Remarks

Required

Owner

Declaration
[JsonProperty(PropertyName = "owner")]
public OdaInstanceOwner Owner { get; set; }
Property Value
Type Description
OdaInstanceOwner

RestrictedOperations

Declaration
[JsonProperty(PropertyName = "restrictedOperations")]
public List<string> RestrictedOperations { get; set; }
Property Value
Type Description
List<string>

List of operation names that are restricted while this ODA instance is attached.

TimeCreated

Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The time the attachment was created. An RFC3339 formatted datetime string

TimeLastUpdate

Declaration
[JsonProperty(PropertyName = "timeLastUpdate")]
public DateTime? TimeLastUpdate { get; set; }
Property Value
Type Description
DateTime?

The time the attachment was last modified. An RFC3339 formatted datetime string

In this article
Back to top