@classmethod
def _from_generated(cls, generated):
    props = cls()
    props.name = generated.name
    props.last_modified = generated.properties.last_modified
    props.etag = generated.properties.etag
    props.lease = LeaseProperties._from_generated(generated)
    props.public_access = PublicAccess._from_generated(generated.properties.public_access)
    props.has_immutability_policy = generated.properties.has_immutability_policy
    props.has_legal_hold = generated.properties.has_legal_hold
    props.metadata = generated.metadata
    return props
@classmethod
def _from_generated(cls, generated):
    props = cls()
    props.name = generated.name
    props.last_modified = generated.properties.last_modified
    props.etag = generated.properties.etag
    props.lease = LeaseProperties._from_generated(generated)
    props.public_access = PublicAccess._from_generated(generated.properties.public_access)
    props.has_immutability_policy = generated.properties.has_immutability_policy
    props.has_legal_hold = generated.properties.has_legal_hold
    props.metadata = generated.metadata
    return props