OpnMembership

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

Bases: object

OPN membership information

Attributes

OPN_STATUS_ACTIVE A constant which can be used with the opn_status property of a OpnMembership.
OPN_STATUS_INACTIVE A constant which can be used with the opn_status property of a OpnMembership.
OPN_STATUS_RENEWAL_IN_PROGRESS A constant which can be used with the opn_status property of a OpnMembership.
opn_membership_type Gets the opn_membership_type of this OpnMembership.
opn_number Gets the opn_number of this OpnMembership.
opn_status Gets the opn_status of this OpnMembership.
time_end Gets the time_end of this OpnMembership.
time_start Gets the time_start of this OpnMembership.

Methods

__init__(**kwargs) Initializes a new OpnMembership object with values from keyword arguments.
OPN_STATUS_ACTIVE = 'ACTIVE'

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

OPN_STATUS_INACTIVE = 'INACTIVE'

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

OPN_STATUS_RENEWAL_IN_PROGRESS = 'RENEWAL_IN_PROGRESS'

A constant which can be used with the opn_status property of a OpnMembership. This constant has a value of “RENEWAL_IN_PROGRESS”

__init__(**kwargs)

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

Parameters:
  • time_start (datetime) – The value to assign to the time_start property of this OpnMembership.
  • time_end (datetime) – The value to assign to the time_end property of this OpnMembership.
  • opn_status (str) – The value to assign to the opn_status property of this OpnMembership. Allowed values for this property are: “ACTIVE”, “INACTIVE”, “RENEWAL_IN_PROGRESS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • opn_number (str) – The value to assign to the opn_number property of this OpnMembership.
  • opn_membership_type (str) – The value to assign to the opn_membership_type property of this OpnMembership.
opn_membership_type

Gets the opn_membership_type of this OpnMembership. OPN membership type

Returns:The opn_membership_type of this OpnMembership.
Return type:str
opn_number

Gets the opn_number of this OpnMembership. OPN Number number

Returns:The opn_number of this OpnMembership.
Return type:str
opn_status

Gets the opn_status of this OpnMembership. OPN status

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

Returns:The opn_status of this OpnMembership.
Return type:str
time_end

Gets the time_end of this OpnMembership. OPN membership end date. An RFC3339 formatted datetime string

Returns:The time_end of this OpnMembership.
Return type:datetime
time_start

Gets the time_start of this OpnMembership. OPN membership start date. An RFC3339 formatted datetime string

Returns:The time_start of this OpnMembership.
Return type:datetime