Class Category
The metadata associated with the category.
Inherited Members
Namespace: Oci.OptimizerService.Models
Assembly: OCI.DotNetSDK.Optimizer.dll
Syntax
public class Category
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 tenancy. The tenancy is the root compartment. |
Remarks
Required
CompartmentName
Declaration
[Required(ErrorMessage = "CompartmentName is required.")]
[JsonProperty(PropertyName = "compartmentName")]
public string CompartmentName { get; set; }
Property Value
Type | Description |
---|---|
string | The name associated with the compartment. |
Remarks
Required
Description
Declaration
[Required(ErrorMessage = "Description is required.")]
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | Text describing the category. |
Remarks
Required
EstimatedCostSaving
Declaration
[Required(ErrorMessage = "EstimatedCostSaving is required.")]
[JsonProperty(PropertyName = "estimatedCostSaving")]
public double EstimatedCostSaving { get; set; }
Property Value
Type | Description |
---|---|
double | The estimated cost savings, in dollars, for the category. |
Remarks
Required
ExtendedMetadata
Declaration
[JsonProperty(PropertyName = "extendedMetadata")]
public Dictionary<string, string> ExtendedMetadata { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Additional metadata key/value pairs for the category.
|
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The unique OCID of the category. |
Remarks
Required
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LifecycleState? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
LifecycleState? | The category's current state. |
Remarks
Required
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The name assigned to the category. |
Remarks
Required
RecommendationCounts
Declaration
[Required(ErrorMessage = "RecommendationCounts is required.")]
[JsonProperty(PropertyName = "recommendationCounts")]
public List<RecommendationCount> RecommendationCounts { get; set; }
Property Value
Type | Description |
---|---|
List<RecommendationCount> | An array of |
Remarks
Required
ResourceCounts
Declaration
[Required(ErrorMessage = "ResourceCounts is required.")]
[JsonProperty(PropertyName = "resourceCounts")]
public List<ResourceCount> ResourceCounts { get; set; }
Property Value
Type | Description |
---|---|
List<ResourceCount> | An array of |
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 the category details were created, in the format defined by RFC3339. |
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 the category details were last updated, in the format defined by RFC3339. |
Remarks
Required