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.
-
code
¶ [Required] Gets the code of this Category. The code of the category.
Returns: The code of this Category. Return type: str
-
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
-
name
¶ [Required] Gets the name of this Category. The name for the category.
Returns: The name of this Category. Return type: str
-
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
-