MCPcopy Create free account
hub / github.com/s3tools/s3cmd / InvalidationList

Class InvalidationList

S3/CloudFront.py:250–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248 return str(self.info)
249
250class InvalidationList(object):
251 ## Example:
252 ##
253 ## <InvalidationList>
254 ## <Marker/>
255 ## <NextMarker>Invalidation ID</NextMarker>
256 ## <MaxItems>2</MaxItems>
257 ## <IsTruncated>true</IsTruncated>
258 ## <InvalidationSummary>
259 ## <Id>[Second Invalidation ID]</Id>
260 ## <Status>Completed</Status>
261 ## </InvalidationSummary>
262 ## <InvalidationSummary>
263 ## <Id>[First Invalidation ID]</Id>
264 ## <Status>Completed</Status>
265 ## </InvalidationSummary>
266 ## </InvalidationList>
267
268 def __init__(self, xml):
269 tree = getTreeFromXml(xml)
270 if tree.tag != "InvalidationList":
271 raise ValueError("Expected <InvalidationList /> xml, got: <%s />" % tree.tag)
272 self.parse(tree)
273
274 def parse(self, tree):
275 self.info = getDictFromTree(tree)
276
277 def __str__(self):
278 return str(self.info)
279
280class InvalidationBatch(object):
281 ## Example:

Callers 1

GetInvalListMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…