PeerRole¶
-
class
oci.blockchain.models.PeerRole(**kwargs)¶ Bases:
objectPeer role
Attributes
ROLE_ADMINA constant which can be used with the role property of a PeerRole. ROLE_MEMBERA constant which can be used with the role property of a PeerRole. roleGets the role of this PeerRole. Methods
__init__(**kwargs)Initializes a new PeerRole object with values from keyword arguments. -
ROLE_ADMIN= 'ADMIN'¶ A constant which can be used with the role property of a PeerRole. This constant has a value of “ADMIN”
-
ROLE_MEMBER= 'MEMBER'¶ A constant which can be used with the role property of a PeerRole. This constant has a value of “MEMBER”
-
__init__(**kwargs)¶ Initializes a new PeerRole object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: role (str) – The value to assign to the role property of this PeerRole. Allowed values for this property are: “MEMBER”, “ADMIN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
role¶ Gets the role of this PeerRole. Peer role names
Allowed values for this property are: “MEMBER”, “ADMIN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The role of this PeerRole. Return type: str
-