예제 #1
0
 def __init__(self):
     self.ce__cloudEventsVersion = opt.Option("cloudEventsVersion", "0.1",
                                              True)
     self.ce__eventType = opt.Option("eventType", None, True)
     self.ce__eventTypeVersion = opt.Option("eventTypeVersion", None, False)
     self.ce__source = opt.Option("source", None, True)
     self.ce__eventID = opt.Option("eventID", None, True)
     self.ce__eventTime = opt.Option("eventTime", None, True)
     self.ce__schemaURL = opt.Option("schemaURL", None, False)
     self.ce__contentType = opt.Option("contentType", None, False)
     self.ce__data = opt.Option("data", None, False)
     self.ce__extensions = opt.Option("extensions", dict(), False)
예제 #2
0
파일: v1.py 프로젝트: timofurrer/sdk-python
    def __init__(self):
        self.ce__specversion = opt.Option("specversion", "1.0", True)
        self.ce__id = opt.Option("id", None, True)
        self.ce__source = opt.Option("source", None, True)
        self.ce__type = opt.Option("type", None, True)

        self.ce__datacontenttype = opt.Option("datacontenttype", None, False)
        self.ce__dataschema = opt.Option("dataschema", None, False)
        self.ce__subject = opt.Option("subject", None, False)
        self.ce__time = opt.Option("time", None, False)
        self.ce__data = opt.Option("data", None, False)
        self.ce__extensions = opt.Option("extensions", dict(), False)
예제 #3
0
 def __init__(self):
     self.ce__specversion = opt.Option("specversion", "0.2", True)
     self.ce__type = opt.Option("type", None, True)
     self.ce__source = opt.Option("source", None, True)
     self.ce__id = opt.Option("id", None, True)
     self.ce__time = opt.Option("time", None, True)
     self.ce__schemaurl = opt.Option("schemaurl", None, False)
     self.ce__contenttype = opt.Option("contenttype", None, False)
     self.ce__data = opt.Option("data", None, False)
     self.ce__extensions = opt.Option("extensions", dict(), False)