'Deploys the new app version but does not make it default.
All the files returned by Begin() must have been uploaded with UploadFile()
before Deploy() can be called.
Returns:
An appinfo.AppInfoSummary if one was returned from the Deploy, None
otherwise.
Raises:
RuntimeError: Some required files were not uploaded.'

def Deploy(self):

    assert self.in_transaction, 'Begin()    must    be    called    before    Deploy().'
    if self.files:
        raise RuntimeError('Not    all    required    files    have    been    uploaded.')
    StatusUpdate('Starting    deployment.', self.error_fh)
    result = self.logging_context.Send('/api/appversion/deploy')
    self.deployed = True
    if result:
        return yaml_object.BuildSingleObject(appinfo.AppInfoSummary, result)
    else:
        return None
