Class Category
The model for the category details.
Inherited Members
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.
|
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.
|
Remarks
Required