Osn¶
-
class
oci.blockchain.models.Osn(**kwargs)¶ Bases:
objectAn Ordering Service Node details
Attributes
LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a Osn. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a Osn. LIFECYCLE_STATE_INACTIVEA constant which can be used with the lifecycle_state property of a Osn. ad[Required] Gets the ad of this Osn. lifecycle_stateGets the lifecycle_state of this Osn. ocpu_allocation_paramGets the ocpu_allocation_param of this Osn. osn_key[Required] Gets the osn_key of this Osn. Methods
__init__(**kwargs)Initializes a new Osn object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a Osn. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a Osn. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_INACTIVE= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a Osn. This constant has a value of “INACTIVE”
-
__init__(**kwargs)¶ Initializes a new Osn object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - osn_key (str) – The value to assign to the osn_key property of this Osn.
- ad (str) – The value to assign to the ad property of this Osn.
- ocpu_allocation_param (oci.blockchain.models.OcpuAllocationNumberParam) – The value to assign to the ocpu_allocation_param property of this Osn.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this Osn. Allowed values for this property are: “ACTIVE”, “INACTIVE”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
ad¶ [Required] Gets the ad of this Osn. Availability Domain of OSN
Returns: The ad of this Osn. Return type: str
-
lifecycle_state¶ Gets the lifecycle_state of this Osn. The current state of the OSN.
Allowed values for this property are: “ACTIVE”, “INACTIVE”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this Osn. Return type: str
-
ocpu_allocation_param¶ Gets the ocpu_allocation_param of this Osn.
Returns: The ocpu_allocation_param of this Osn. Return type: oci.blockchain.models.OcpuAllocationNumberParam
-
osn_key¶ [Required] Gets the osn_key of this Osn. OSN identifier
Returns: The osn_key of this Osn. Return type: str
-