Show / Hide Table of Contents

Class Category

The model for the category details.

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

Properties

Code

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

The code of the category.

Remarks

Required

LifecycleState

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

The current state for the category.

Remarks

Required

Name

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

The name for the category.

Remarks

Required

ProductCode

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

The product that the category belongs to.

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 was created, in the format defined by RFC3339.
Example: 2022-09-15T21:10:29.600Z

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 was updated, in the format defined by RFC3339.
Example: 2022-09-15T21:10:29.600Z

Remarks

Required

In this article
Back to top