text: from pypureclient.flashblade import FileSystemPatch, NfsPatch, Http, Smb, MultiProtocol
  
  # update a file system object with a new provisioned size. enable hard limits.
  # enable NFSv4.1, and disable NFSv3. enable SMB. disable HTTP
  # adjust the default user quota to a new value
  # change access control style to independent and disable safeguard acls
  # note that name field should be None
  new_attr = FileSystemPatch(provisioned=1024, hard_limit_enabled=True,
                             nfs=NfsPatch(v3_enabled=False,
                                          v4_1_enabled=True,
                                          add_rules="1.1.1.1(rw,no_root_squash)"),
                             http=Http(enabled=False), smb=Smb(enabled=True),
                             default_user_quota=4096,
                             multi_protocol=MultiProtocol(safeguard_acls=False,
                                                          access_control_style="independent"))
  # update the file system named myfs on the array
  res = client.patch_file_systems(names=["myfs"], ignore_usage=True, file_system=new_attr,
                                  discard_detailed_permissions=True)
  print(res)
  if type(res) == pypureclient.responses.ValidResponse:
      print(list(res.items))
  # destroy a file system even if it has a replica link
  destroy_attr = FileSystemPatch(destroyed=True,
                                 nfs=NfsPatch(v4_1_enabled=False),
                                 smb=Smb(enabled=False),
                                 multi_protocol=MultiProtocol(access_control_style="mode-bits"))
  res = client.patch_file_systems(names=["myfs"], delete_link_on_eradication=True,
                                  file_system=destroy_attr)
  print(res)
  if type(res) == pypureclient.responses.ValidResponse:
      print(list(res.items))
  # update the file system with id '10314f42-020d-7080-8013-000ddt400090' on the array
  res = client.patch_file_systems(ids=['10314f42-020d-7080-8013-000ddt400090'],
                                  ignore_usage=True, file_system=new_attr,
                                  discard_non_snapshotted_data=False)
  print(res)
  if type(res) == pypureclient.responses.ValidResponse:
      print(list(res.items))
  