Product¶
-
class
oci.marketplace_publisher.models.
Product
(**kwargs)¶ Bases:
object
The model for the product details.
Attributes
LIFECYCLE_STATE_ACTIVE
A constant which can be used with the lifecycle_state property of a Product. LIFECYCLE_STATE_INACTIVE
A constant which can be used with the lifecycle_state property of a Product. code
[Required] Gets the code of this Product. lifecycle_state
[Required] Gets the lifecycle_state of this Product. name
[Required] Gets the name of this Product. product_group
[Required] Gets the product_group of this Product. time_created
[Required] Gets the time_created of this Product. time_updated
[Required] Gets the time_updated of this Product. Methods
__init__
(**kwargs)Initializes a new Product object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a Product. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_INACTIVE
= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a Product. This constant has a value of “INACTIVE”
-
__init__
(**kwargs)¶ Initializes a new Product 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 Product.
- code (str) – The value to assign to the code property of this Product.
- product_group (str) – The value to assign to the product_group property of this Product.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this Product. 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 Product.
- time_updated (datetime) – The value to assign to the time_updated property of this Product.
-
code
¶ [Required] Gets the code of this Product. The code for the product.
Returns: The code of this Product. Return type: str
-
lifecycle_state
¶ [Required] Gets the lifecycle_state of this Product. The current state for the product.
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 Product. Return type: str
-
name
¶ [Required] Gets the name of this Product. The name for the product.
Returns: The name of this Product. Return type: str
-
product_group
¶ [Required] Gets the product_group of this Product. The product group for the product.
Returns: The product_group of this Product. Return type: str
-