Show / Hide Table of Contents

Class Subscription

Base subscription type, which carries shared properties for any subscription version.

Inheritance
object
Subscription
ClassicSubscription
CloudSubscription
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.TenantmanagercontrolplaneService.Models
Assembly: OCI.DotNetSDK.Tenantmanagercontrolplane.dll
Syntax
[JsonConverter(typeof(SubscriptionModelConverter))]
public class Subscription

Properties

CompartmentId

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

The Oracle ID (OCID) of the owning compartment. Always a tenancy OCID.

Remarks

Required

DefinedTags

Declaration
[Required(ErrorMessage = "DefinedTags is required.")]
[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. Example: {"foo-namespace": {"bar-key": "value"}}

Remarks

Required

FreeformTags

Declaration
[Required(ErrorMessage = "FreeformTags is required.")]
[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. Example: {"bar-key": "value"}

Remarks

Required

Id

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

The Oracle ID (OCID) of the subscription.

Remarks

Required

ServiceName

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

The type of subscription, such as 'UCM', 'SAAS', 'ERP', 'CRM'.

Remarks

Required

TimeCreated

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

The date and time of creation, as described in RFC 3339, section 14.29.

Remarks

Required

TimeUpdated

Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The date and time of update, as described in RFC 3339, section 14.29.

Remarks

Required

In this article
Back to top