Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, name=None, props=None, metadata=None, snapshot=None):
self.name = name
self.properties = props or ShareProperties()
self.metadata = metadata
self.snapshot = snapshot
def _parse_share(response, name, snapshot=None):
if response is None:
return None
metadata = _parse_metadata(response)
props = _parse_properties(response, ShareProperties)
return Share(name, props, metadata, snapshot)