Peer

class oci.blockchain.models.Peer(**kwargs)

Bases: object

A Peer details

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a Peer.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a Peer.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a Peer.
ad [Required] Gets the ad of this Peer.
alias Gets the alias of this Peer.
host [Required] Gets the host of this Peer.
lifecycle_state Gets the lifecycle_state of this Peer.
ocpu_allocation_param Gets the ocpu_allocation_param of this Peer.
peer_key [Required] Gets the peer_key of this Peer.
role [Required] Gets the role of this Peer.

Methods

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

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

__init__(**kwargs)

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

Parameters:
  • peer_key (str) – The value to assign to the peer_key property of this Peer.
  • role (str) – The value to assign to the role property of this Peer.
  • alias (str) – The value to assign to the alias property of this Peer.
  • ocpu_allocation_param (oci.blockchain.models.OcpuAllocationNumberParam) – The value to assign to the ocpu_allocation_param property of this Peer.
  • host (str) – The value to assign to the host property of this Peer.
  • ad (str) – The value to assign to the ad property of this Peer.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Peer. 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 Peer. Availability Domain of peer

Returns:The ad of this Peer.
Return type:str
alias

Gets the alias of this Peer. peer alias

Returns:The alias of this Peer.
Return type:str
host

[Required] Gets the host of this Peer. Host on which the Peer exists

Returns:The host of this Peer.
Return type:str
lifecycle_state

Gets the lifecycle_state of this Peer. The current state of the peer.

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 Peer.
Return type:str
ocpu_allocation_param

Gets the ocpu_allocation_param of this Peer.

Returns:The ocpu_allocation_param of this Peer.
Return type:oci.blockchain.models.OcpuAllocationNumberParam
peer_key

[Required] Gets the peer_key of this Peer. peer identifier

Returns:The peer_key of this Peer.
Return type:str
role

[Required] Gets the role of this Peer. Peer role

Returns:The role of this Peer.
Return type:str