def METHOD_NAME(cls,
                   name: str = None,
                   k8s_name: str = None,
                   block_name: str = None,
                   json_spec: str = None):
    """Create a new instance of CreateDbfsBlockOp from a json specification.
    Args:
        name: The name of the pipeline Op.
            It does not have to be unique within a pipeline
            because the pipeline will generate a new unique name in case of a conflict.
        k8s_name = The name of the k8s resource which will be submitted to the cluster.
            If no k8s_name is provided, block_name will be used as the resource name.
            This name is DNS-1123 subdomain name and must consist of lower case alphanumeric
            characters, '-' or '.', and must start and end with an alphanumeric character.
        block_name: A name for the DbfsBlock Item.
            If k8s_name is provided, this will be ignored.
        json_spec: Full specification of the DbfsBlock Item to import in json format.
    """
    spec = json.loads(json_spec)
    return cls(name=name, k8s_name=k8s_name, block_name=block_name, spec=spec)