11
11
12
12
NAMESPACE = 'urn:oasis:names:tc:SAML:metadata:rpi'
13
13
14
+
14
15
class RegistrationPolicy (md .LocalizedURIType_ ):
15
16
"""The urn:oasis:names:tc:SAML:metadata:rpi:RegistrationPolicy element """
16
17
@@ -21,6 +22,7 @@ class RegistrationPolicy(md.LocalizedURIType_):
21
22
c_child_order = md .LocalizedURIType_ .c_child_order [:]
22
23
c_cardinality = md .LocalizedURIType_ .c_cardinality .copy ()
23
24
25
+
24
26
def registration_policy_from_string (xml_string ):
25
27
return saml2 .create_class_from_xml_string (RegistrationPolicy , xml_string )
26
28
@@ -35,6 +37,7 @@ class UsagePolicy(md.LocalizedURIType_):
35
37
c_child_order = md .LocalizedURIType_ .c_child_order [:]
36
38
c_cardinality = md .LocalizedURIType_ .c_cardinality .copy ()
37
39
40
+
38
41
def usage_policy_from_string (xml_string ):
39
42
return saml2 .create_class_from_xml_string (UsagePolicy , xml_string )
40
43
@@ -53,21 +56,20 @@ class PublicationType_(SamlBase):
53
56
c_attributes ['publicationId' ] = ('publication_id' , 'string' , False )
54
57
55
58
def __init__ (self ,
56
- publisher = None ,
57
- creation_instant = None ,
58
- publication_id = None ,
59
- text = None ,
60
- extension_elements = None ,
61
- extension_attributes = None
62
- ):
63
- SamlBase .__init__ (self ,
64
- text = text ,
65
- extension_elements = extension_elements ,
66
- extension_attributes = extension_attributes ,
67
- )
68
- self .publisher = publisher
69
- self .creation_instant = creation_instant
70
- self .publication_id = publication_id
59
+ publisher = None ,
60
+ creation_instant = None ,
61
+ publication_id = None ,
62
+ text = None ,
63
+ extension_elements = None ,
64
+ extension_attributes = None ):
65
+ SamlBase .__init__ (self ,
66
+ text = text ,
67
+ extension_elements = extension_elements ,
68
+ extension_attributes = extension_attributes )
69
+ self .publisher = publisher
70
+ self .creation_instant = creation_instant
71
+ self .publication_id = publication_id
72
+
71
73
72
74
def publication_type__from_string (xml_string ):
73
75
return saml2 .create_class_from_xml_string (PublicationType_ , xml_string )
@@ -82,28 +84,30 @@ class RegistrationInfoType_(SamlBase):
82
84
c_attributes = SamlBase .c_attributes .copy ()
83
85
c_child_order = SamlBase .c_child_order [:]
84
86
c_cardinality = SamlBase .c_cardinality .copy ()
85
- c_children ['{urn:oasis:names:tc:SAML:metadata:rpi}RegistrationPolicy' ] = ('registration_policy' , [RegistrationPolicy ])
86
- c_cardinality ['registration_policy' ] = {"min" :0 }
87
- c_attributes ['registrationAuthority' ] = ('registration_authority' , 'string' , True )
88
- c_attributes ['registrationInstant' ] = ('registration_instant' , 'dateTime' , False )
87
+ c_children ['{urn:oasis:names:tc:SAML:metadata:rpi}RegistrationPolicy' ] = (
88
+ 'registration_policy' , [RegistrationPolicy ])
89
+ c_cardinality ['registration_policy' ] = {"min" : 0 }
90
+ c_attributes ['registrationAuthority' ] = (
91
+ 'registration_authority' , 'string' , True )
92
+ c_attributes ['registrationInstant' ] = (
93
+ 'registration_instant' , 'dateTime' , False )
89
94
c_child_order .extend (['registration_policy' ])
90
95
91
96
def __init__ (self ,
92
- registration_policy = None ,
93
- registration_authority = None ,
94
- registration_instant = None ,
95
- text = None ,
96
- extension_elements = None ,
97
- extension_attributes = None
98
- ):
99
- SamlBase .__init__ (self ,
100
- text = text ,
101
- extension_elements = extension_elements ,
102
- extension_attributes = extension_attributes ,
103
- )
104
- self .registration_policy = registration_policy or []
105
- self .registration_authority = registration_authority
106
- self .registration_instant = registration_instant
97
+ registration_policy = None ,
98
+ registration_authority = None ,
99
+ registration_instant = None ,
100
+ text = None ,
101
+ extension_elements = None ,
102
+ extension_attributes = None ):
103
+ SamlBase .__init__ (self ,
104
+ text = text ,
105
+ extension_elements = extension_elements ,
106
+ extension_attributes = extension_attributes )
107
+ self .registration_policy = registration_policy or []
108
+ self .registration_authority = registration_authority
109
+ self .registration_instant = registration_instant
110
+
107
111
108
112
def registration_info_type__from_string (xml_string ):
109
113
return saml2 .create_class_from_xml_string (RegistrationInfoType_ , xml_string )
@@ -118,31 +122,31 @@ class PublicationInfoType_(SamlBase):
118
122
c_attributes = SamlBase .c_attributes .copy ()
119
123
c_child_order = SamlBase .c_child_order [:]
120
124
c_cardinality = SamlBase .c_cardinality .copy ()
121
- c_children ['{urn:oasis:names:tc:SAML:metadata:rpi}UsagePolicy' ] = ('usage_policy' , [UsagePolicy ])
122
- c_cardinality ['usage_policy' ] = {"min" :0 }
125
+ c_children ['{urn:oasis:names:tc:SAML:metadata:rpi}UsagePolicy' ] = (
126
+ 'usage_policy' , [UsagePolicy ])
127
+ c_cardinality ['usage_policy' ] = {"min" : 0 }
123
128
c_attributes ['publisher' ] = ('publisher' , 'string' , True )
124
129
c_attributes ['creationInstant' ] = ('creation_instant' , 'dateTime' , False )
125
130
c_attributes ['publicationId' ] = ('publication_id' , 'string' , False )
126
131
c_child_order .extend (['usage_policy' ])
127
132
128
133
def __init__ (self ,
129
- usage_policy = None ,
130
- publisher = None ,
131
- creation_instant = None ,
132
- publication_id = None ,
133
- text = None ,
134
- extension_elements = None ,
135
- extension_attributes = None
136
- ):
137
- SamlBase .__init__ (self ,
138
- text = text ,
139
- extension_elements = extension_elements ,
140
- extension_attributes = extension_attributes ,
141
- )
142
- self .usage_policy = usage_policy or []
143
- self .publisher = publisher
144
- self .creation_instant = creation_instant
145
- self .publication_id = publication_id
134
+ usage_policy = None ,
135
+ publisher = None ,
136
+ creation_instant = None ,
137
+ publication_id = None ,
138
+ text = None ,
139
+ extension_elements = None ,
140
+ extension_attributes = None ):
141
+ SamlBase .__init__ (self ,
142
+ text = text ,
143
+ extension_elements = extension_elements ,
144
+ extension_attributes = extension_attributes )
145
+ self .usage_policy = usage_policy or []
146
+ self .publisher = publisher
147
+ self .creation_instant = creation_instant
148
+ self .publication_id = publication_id
149
+
146
150
147
151
def publication_info_type__from_string (xml_string ):
148
152
return saml2 .create_class_from_xml_string (PublicationInfoType_ , xml_string )
@@ -158,6 +162,7 @@ class Publication(PublicationType_):
158
162
c_child_order = PublicationType_ .c_child_order [:]
159
163
c_cardinality = PublicationType_ .c_cardinality .copy ()
160
164
165
+
161
166
def publication_from_string (xml_string ):
162
167
return saml2 .create_class_from_xml_string (Publication , xml_string )
163
168
@@ -172,6 +177,7 @@ class RegistrationInfo(RegistrationInfoType_):
172
177
c_child_order = RegistrationInfoType_ .c_child_order [:]
173
178
c_cardinality = RegistrationInfoType_ .c_cardinality .copy ()
174
179
180
+
175
181
def registration_info_from_string (xml_string ):
176
182
return saml2 .create_class_from_xml_string (RegistrationInfo , xml_string )
177
183
@@ -186,6 +192,7 @@ class PublicationInfo(PublicationInfoType_):
186
192
c_child_order = PublicationInfoType_ .c_child_order [:]
187
193
c_cardinality = PublicationInfoType_ .c_cardinality .copy ()
188
194
195
+
189
196
def publication_info_from_string (xml_string ):
190
197
return saml2 .create_class_from_xml_string (PublicationInfo , xml_string )
191
198
@@ -199,22 +206,22 @@ class PublicationPathType_(SamlBase):
199
206
c_attributes = SamlBase .c_attributes .copy ()
200
207
c_child_order = SamlBase .c_child_order [:]
201
208
c_cardinality = SamlBase .c_cardinality .copy ()
202
- c_children ['{urn:oasis:names:tc:SAML:metadata:rpi}Publication' ] = ('publication' , [Publication ])
203
- c_cardinality ['publication' ] = {"min" :0 }
209
+ c_children ['{urn:oasis:names:tc:SAML:metadata:rpi}Publication' ] = (
210
+ 'publication' , [Publication ])
211
+ c_cardinality ['publication' ] = {"min" : 0 }
204
212
c_child_order .extend (['publication' ])
205
213
206
214
def __init__ (self ,
207
- publication = None ,
208
- text = None ,
209
- extension_elements = None ,
210
- extension_attributes = None
211
- ):
212
- SamlBase .__init__ (self ,
213
- text = text ,
214
- extension_elements = extension_elements ,
215
- extension_attributes = extension_attributes ,
216
- )
217
- self .publication = publication or []
215
+ publication = None ,
216
+ text = None ,
217
+ extension_elements = None ,
218
+ extension_attributes = None ):
219
+ SamlBase .__init__ (self ,
220
+ text = text ,
221
+ extension_elements = extension_elements ,
222
+ extension_attributes = extension_attributes )
223
+ self .publication = publication or []
224
+
218
225
219
226
def publication_path_type__from_string (xml_string ):
220
227
return saml2 .create_class_from_xml_string (PublicationPathType_ , xml_string )
@@ -230,6 +237,7 @@ class PublicationPath(PublicationPathType_):
230
237
c_child_order = PublicationPathType_ .c_child_order [:]
231
238
c_cardinality = PublicationPathType_ .c_cardinality .copy ()
232
239
240
+
233
241
def publication_path_from_string (xml_string ):
234
242
return saml2 .create_class_from_xml_string (PublicationPath , xml_string )
235
243
0 commit comments