Skip to content

Commit

Permalink
update address space to 1.05.05
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier committed Sep 17, 2023
1 parent 0a525df commit edbd481
Show file tree
Hide file tree
Showing 7 changed files with 37,829 additions and 14,785 deletions.
43 changes: 34 additions & 9 deletions asyncua/common/event_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
Autogenerated code from xml"
Model Uri:http://opcfoundation.org/UA/"
Version:1.05.01"
Publication date:2022-02-24T00:00:00Z"
Version:1.05.02"
Publication date:2022-11-01T00:00:00Z"
File creation Date:2023-07-25 09:08:45.084676"
File creation Date:2023-09-17 13:19:08.566458"
"""
from asyncua import ua
from .events import Event


__all__ = ["BaseEvent", "AuditEvent", "AuditSecurityEvent", "AuditChannelEvent", "AuditOpenSecureChannelEvent", "AuditSessionEvent", "AuditCreateSessionEvent", "AuditActivateSessionEvent", "AuditCancelEvent", "AuditCertificateEvent", "AuditCertificateDataMismatchEvent", "AuditCertificateExpiredEvent", "AuditCertificateInvalidEvent", "AuditCertificateUntrustedEvent", "AuditCertificateRevokedEvent", "AuditCertificateMismatchEvent", "AuditNodeManagementEvent", "AuditAddNodesEvent", "AuditDeleteNodesEvent", "AuditAddReferencesEvent", "AuditDeleteReferencesEvent", "AuditUpdateEvent", "AuditWriteUpdateEvent", "AuditHistoryUpdateEvent", "AuditUpdateMethodEvent", "SystemEvent", "DeviceFailureEvent", "BaseModelChangeEvent", "GeneralModelChangeEvent", "TransitionEvent", "AuditUpdateStateEvent", "ProgramTransitionEvent", "SemanticChangeEvent", "AuditUrlMismatchEvent", "Condition", "RefreshStartEvent", "RefreshEndEvent", "RefreshRequiredEvent", "AuditConditionEvent", "AuditConditionEnableEvent", "AuditConditionCommentEvent", "DialogCondition", "AcknowledgeableCondition", "AlarmCondition", "LimitAlarm", "AuditHistoryEventUpdateEvent", "AuditHistoryValueUpdateEvent", "AuditHistoryDeleteEvent", "AuditHistoryRawModifyDeleteEvent", "AuditHistoryAtTimeDeleteEvent", "AuditHistoryEventDeleteEvent", "EventQueueOverflowEvent", "ProgramTransitionAuditEvent", "AuditConditionRespondEvent", "AuditConditionAcknowledgeEvent", "AuditConditionConfirmEvent", "ExclusiveLimitAlarm", "ExclusiveLevelAlarm", "ExclusiveRateOfChangeAlarm", "ExclusiveDeviationAlarm", "NonExclusiveLimitAlarm", "NonExclusiveLevelAlarm", "NonExclusiveRateOfChangeAlarm", "NonExclusiveDeviationAlarm", "DiscreteAlarm", "OffNormalAlarm", "TripAlarm", "AuditConditionShelvingEvent", "ProgressEvent", "SystemStatusChangeEvent", "SystemOffNormalAlarm", "AuditProgramTransitionEvent", "TrustListUpdatedAuditEvent", "CertificateUpdatedAuditEvent", "CertificateExpirationAlarm", "AuditConditionResetEvent", "PubSubStatusEvent", "PubSubTransportLimitsExceedEvent", "PubSubCommunicationFailureEvent", "DiscrepancyAlarm", "AuditConditionSuppressionEvent", "AuditConditionSilenceEvent", "AuditConditionOutOfServiceEvent", "RoleMappingRuleChangedAuditEvent", "KeyCredentialAuditEvent", "KeyCredentialUpdatedAuditEvent", "KeyCredentialDeletedAuditEvent", "InstrumentDiagnosticAlarm", "SystemDiagnosticAlarm", "AuditHistoryAnnotationUpdateEvent", "TrustListOutOfDateAlarm", "AuditClientEvent", "AuditClientUpdateMethodResultEvent"]
__all__ = ["BaseEvent", "AuditEvent", "AuditSecurityEvent", "AuditChannelEvent", "AuditOpenSecureChannelEvent", "AuditSessionEvent", "AuditCreateSessionEvent", "AuditActivateSessionEvent", "AuditCancelEvent", "AuditCertificateEvent", "AuditCertificateDataMismatchEvent", "AuditCertificateExpiredEvent", "AuditCertificateInvalidEvent", "AuditCertificateUntrustedEvent", "AuditCertificateRevokedEvent", "AuditCertificateMismatchEvent", "AuditNodeManagementEvent", "AuditAddNodesEvent", "AuditDeleteNodesEvent", "AuditAddReferencesEvent", "AuditDeleteReferencesEvent", "AuditUpdateEvent", "AuditWriteUpdateEvent", "AuditHistoryUpdateEvent", "AuditUpdateMethodEvent", "SystemEvent", "DeviceFailureEvent", "BaseModelChangeEvent", "GeneralModelChangeEvent", "TransitionEvent", "AuditUpdateStateEvent", "ProgramTransitionEvent", "SemanticChangeEvent", "AuditUrlMismatchEvent", "Condition", "RefreshStartEvent", "RefreshEndEvent", "RefreshRequiredEvent", "AuditConditionEvent", "AuditConditionEnableEvent", "AuditConditionCommentEvent", "DialogCondition", "AcknowledgeableCondition", "AlarmCondition", "LimitAlarm", "AuditHistoryEventUpdateEvent", "AuditHistoryValueUpdateEvent", "AuditHistoryDeleteEvent", "AuditHistoryRawModifyDeleteEvent", "AuditHistoryAtTimeDeleteEvent", "AuditHistoryEventDeleteEvent", "EventQueueOverflowEvent", "ProgramTransitionAuditEvent", "AuditConditionRespondEvent", "AuditConditionAcknowledgeEvent", "AuditConditionConfirmEvent", "ExclusiveLimitAlarm", "ExclusiveLevelAlarm", "ExclusiveRateOfChangeAlarm", "ExclusiveDeviationAlarm", "NonExclusiveLimitAlarm", "NonExclusiveLevelAlarm", "NonExclusiveRateOfChangeAlarm", "NonExclusiveDeviationAlarm", "DiscreteAlarm", "OffNormalAlarm", "TripAlarm", "AuditConditionShelvingEvent", "ProgressEvent", "SystemStatusChangeEvent", "SystemOffNormalAlarm", "AuditProgramTransitionEvent", "TrustListUpdatedAuditEvent", "CertificateUpdatedAuditEvent", "CertificateExpirationAlarm", "AuditConditionResetEvent", "PubSubStatusEvent", "PubSubTransportLimitsExceedEvent", "PubSubCommunicationFailureEvent", "DiscrepancyAlarm", "AuditConditionSuppressionEvent", "AuditConditionSilenceEvent", "AuditConditionOutOfServiceEvent", "RoleMappingRuleChangedAuditEvent", "KeyCredentialAuditEvent", "KeyCredentialUpdatedAuditEvent", "KeyCredentialDeletedAuditEvent", "InstrumentDiagnosticAlarm", "SystemDiagnosticAlarm", "AuditHistoryAnnotationUpdateEvent", "TrustListOutOfDateAlarm", "AuditClientEvent", "AuditClientUpdateMethodResultEvent", "TrustListUpdateRequestedAuditEvent", "CertificateUpdateRequestedAuditEvent"]



class BaseEvent(Event):
Expand All @@ -30,6 +31,10 @@ def __init__(self, sourcenode=None, message=None, severity=1):
self.add_property('LocalTime', ua.uaprotocol_auto.TimeZoneDataType(), ua.VariantType.ExtensionObject)
self.add_property('Message', ua.LocalizedText(message), ua.VariantType.LocalizedText)
self.add_property('Severity', severity, ua.VariantType.UInt16)
self.add_property('ConditionClassId', None, ua.VariantType.NodeId)
self.add_property('ConditionClassName', None, ua.VariantType.LocalizedText)
self.add_property('ConditionSubClassId', None, ua.VariantType.NodeId)
self.add_property('ConditionSubClassName', None, ua.VariantType.LocalizedText)


class AuditEvent(BaseEvent):
Expand Down Expand Up @@ -387,11 +392,10 @@ def __init__(self, sourcenode=None, message=None, severity=1):
self.EventType = ua.NodeId(ua.ObjectIds.ConditionType)
self.add_property('ConditionClassId', None, ua.VariantType.NodeId)
self.add_property('ConditionClassName', None, ua.VariantType.LocalizedText)
self.add_property('ConditionSubClassId', None, ua.VariantType.NodeId)
self.add_property('ConditionSubClassName', None, ua.VariantType.LocalizedText)
self.add_property('ConditionName', None, ua.VariantType.String)
self.add_property('BranchId', None, ua.VariantType.NodeId)
self.add_property('Retain', None, ua.VariantType.Boolean)
self.add_property('SupportsFilteredRetain', None, ua.VariantType.Boolean)
self.add_property('EnabledState/Id', None, ua.VariantType.Boolean)
self.add_property('EnabledState/EffectiveDisplayName', None, ua.VariantType.LocalizedText)
self.add_property('EnabledState/TransitionTime', None, ua.NodeId(ua.ObjectIds.UtcTime))
Expand Down Expand Up @@ -884,16 +888,17 @@ def __init__(self, sourcenode=None, message=None, severity=1):
self.add_property('TransitionNumber', None, ua.VariantType.UInt32)


class TrustListUpdatedAuditEvent(AuditUpdateMethodEvent):
class TrustListUpdatedAuditEvent(AuditEvent):
"""
TrustListUpdatedAuditEvent:
"""
def __init__(self, sourcenode=None, message=None, severity=1):
super().__init__(sourcenode, message, severity)
self.EventType = ua.NodeId(ua.ObjectIds.TrustListUpdatedAuditEventType)
self.add_property('TrustListId', None, ua.VariantType.NodeId)


class CertificateUpdatedAuditEvent(AuditUpdateMethodEvent):
class CertificateUpdatedAuditEvent(AuditEvent):
"""
CertificateUpdatedAuditEvent:
"""
Expand Down Expand Up @@ -1102,6 +1107,24 @@ def __init__(self, sourcenode=None, message=None, severity=1):
self.add_property('OutputArguments', None, ua.NodeId(ua.ObjectIds.Argument))


class TrustListUpdateRequestedAuditEvent(AuditUpdateMethodEvent):
"""
TrustListUpdateRequestedAuditEvent:
"""
def __init__(self, sourcenode=None, message=None, severity=1):
super().__init__(sourcenode, message, severity)
self.EventType = ua.NodeId(ua.ObjectIds.TrustListUpdateRequestedAuditEventType)


class CertificateUpdateRequestedAuditEvent(AuditUpdateMethodEvent):
"""
CertificateUpdateRequestedAuditEvent:
"""
def __init__(self, sourcenode=None, message=None, severity=1):
super().__init__(sourcenode, message, severity)
self.EventType = ua.NodeId(ua.ObjectIds.CertificateUpdateRequestedAuditEventType)


IMPLEMENTED_EVENTS = {
ua.ObjectIds.BaseEventType: BaseEvent,
ua.ObjectIds.AuditEventType: AuditEvent,
Expand Down Expand Up @@ -1196,4 +1219,6 @@ def __init__(self, sourcenode=None, message=None, severity=1):
ua.ObjectIds.TrustListOutOfDateAlarmType: TrustListOutOfDateAlarm,
ua.ObjectIds.AuditClientEventType: AuditClientEvent,
ua.ObjectIds.AuditClientUpdateMethodResultEventType: AuditClientUpdateMethodResultEvent,
}
ua.ObjectIds.TrustListUpdateRequestedAuditEventType: TrustListUpdateRequestedAuditEvent,
ua.ObjectIds.CertificateUpdateRequestedAuditEventType: CertificateUpdateRequestedAuditEvent,
}
Loading

0 comments on commit edbd481

Please sign in to comment.