def UpdateIndexes(self):
    if len(self.args) != 1:
      self.parser.error('Expected a single <directory> argument.')

    basepath = self.args[0]
    appyaml = self._ParseAppYaml(basepath)
    rpc_server = self._GetRpcServer()

    index_defs = self._ParseIndexYaml(basepath)
    if index_defs:
      index_upload = IndexDefinitionUpload(rpc_server, appyaml, index_defs)
      index_upload.DoUpload()
Create or update a management lock at the subscription level.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/tools/appcfg.py/AppCfgApp.UpdateIndexes--crossover with--dataset/ETHPy150Open Azure/azure-sdk-for-python/azure-mgmt-resource/azure/mgmt/resource/locks/operations/management_locks_operations.py/ManagementLocksOperations.create_or_update_at_subscription_level