Category

class oci.marketplace_publisher.models.Category(**kwargs)

Bases: object

The model for the category details.

Attributes:

LIFECYCLE_STATE_ACTIVE

A constant which can be used with the lifecycle_state property of a Category.

LIFECYCLE_STATE_INACTIVE

A constant which can be used with the lifecycle_state property of a Category.

code

[Required] Gets the code of this Category.

lifecycle_state

[Required] Gets the lifecycle_state of this Category.

name

[Required] Gets the name of this Category.

product_code

[Required] Gets the product_code of this Category.

time_created

[Required] Gets the time_created of this Category.

time_updated

[Required] Gets the time_updated of this Category.

Methods:

__init__(**kwargs)

Initializes a new Category object with values from keyword arguments.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a Category. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a Category. This constant has a value of “INACTIVE”

__init__(**kwargs)

Initializes a new Category object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • name (str) – The value to assign to the name property of this Category.

  • code (str) – The value to assign to the code property of this Category.

  • product_code (str) – The value to assign to the product_code property of this Category.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Category. Allowed values for this property are: “ACTIVE”, “INACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • time_created (datetime) – The value to assign to the time_created property of this Category.

  • time_updated (datetime) – The value to assign to the time_updated property of this Category.

property code

[Required] Gets the code of this Category. The code of the category.

Returns

The code of this Category.

Return type

str

property lifecycle_state

[Required] Gets the lifecycle_state of this Category. The current state for the category.

Allowed values for this property are: “ACTIVE”, “INACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The lifecycle_state of this Category.

Return type

str

property name

[Required] Gets the name of this Category. The name for the category.

Returns

The name of this Category.

Return type

str

property product_code

[Required] Gets the product_code of this Category. The product that the category belongs to.

Returns

The product_code of this Category.

Return type

str

property time_created

[Required] Gets the time_created of this Category. The date and time the category was created, in the format defined by RFC3339.

Example: 2022-09-15T21:10:29.600Z

Returns

The time_created of this Category.

Return type

datetime

property time_updated

[Required] Gets the time_updated of this Category. The date and time the category was updated, in the format defined by RFC3339.

Example: 2022-09-15T21:10:29.600Z

Returns

The time_updated of this Category.

Return type

datetime