| |
- Choice(ChoiceMixIn, ProtoVersionId1MixIn, Choice)
-
- MetaMessage
class MetaMessage(Choice) |
|
A selection of SNMP protocol Messages |
|
- Method resolution order:
- MetaMessage
- Choice
- ChoiceMixIn
- ProtoVersionId1MixIn
- ProtoVersionIdMixInBase
- Choice
- ChoiceTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- ChoiceMixIn
- SingleFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- choiceComponents = [<class pysnmp.proto.rfc1157.Message>, <class pysnmp.proto.rfc1905.Message>]
- choiceNames = [<pysnmp.proto.api.alpha.versions.ProtoVersionId1 instance>, <pysnmp.proto.api.alpha.versions.ProtoVersionId2c instance>]
Methods inherited from ChoiceMixIn:
- apiAlphaGetCurrentComponent(self)
- apiAlphaGetTerminalValue(self)
- apiAlphaSetTerminalValue(self, value)
- getTerminal = apiAlphaGetTerminalValue(self)
Data and other attributes inherited from ProtoVersionId1MixIn:
- apiAlphaProtoVersionId = 0
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from Choice:
- tagCategory = 4
Methods inherited from ChoiceTypeAsn1Object:
- __delitem__(self, key)
- Delete component by key
- __init__(self, **kwargs)
- Store dictionary args
- __setitem__(self, key, value)
- Set component by key & value
- componentFactoryBorrow(self, key)
Data and other attributes inherited from ChoiceTypeAsn1Object:
- initialComponent = None
Methods inherited from FixedTypeAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __getitem__(self, key)
- Return component by key
- __hash__(self)
- Returns hash of the payload value
- __len__(self)
- Get length of the object
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- get(self, key, default=None)
- Lookup by key with default
- has_key(self, key)
- Return true if key exists
- items(self)
- Return a list of tuples (key, value)
- keys(self)
- Return a list of keys
- update(self, dict)
- Merge dict to ourselves
- values(self)
- Return a list of values
Data and other attributes inherited from StructuredAsn1Object:
- tagFormat = 32
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- allowedTypes = ()
- constraints = ()
- tagClass = 0
- tagId = None
Methods inherited from SingleFixedTypeAsn1Object:
- berDecode(self, input)
- decode = berDecode(self, input)
Methods inherited from FixedTypeAsn1Object:
- berEncode(self)
- Choose optimised version of berEncode for this class
- berEncodeWOutSub(self)
- berEncodeWSub() -> octet string
For classes which do *not* have a _berEncode only!
Note:
This should be bound by a metaclass on looking
at the final class, *not* as is done now by
binding at time-of-use.
- berEncodeWSub(self)
- berEncodeWSub() -> octet string
For classes which *have* a _berEncode only!
Note:
This should be bound by a metaclass on looking
at the final class, *not* as is done now by
binding at time-of-use.
- encode = berEncode(self)
- Choose optimised version of berEncode for this class
Methods inherited from StructuredAsn1Object:
- berUnwrapHeader(self, input)
- Decode BER header, return (data, rest)
- berWrapHeader(self, input)
- Add BER header to data chunk if needed
Methods inherited from BerObject:
- berDecodeLength(self, input)
- berDecodeLength(input) -> (length, size)
Return the data item's length (integer) and the size of length
data (integer).
- berEncodeLength(self, length)
- berEncodeLength(length) -> octet string
BER encode ASN.1 data item length (integer).
- berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
- BER encode ASN.1 type tag
| |