def StartInstance(self):
    try:
      # It checks if instance with the same name existed first.  If it exists,
      # no instance will be created.
      self.GetApi().GetInstance(FLAGS.instance_name)

      print ('Instance \'%s\' is found. Please manually delete the instance '
             'before running this script again, '
             'or use \'--instance_name\' option to create a new instance '
             'with a different name.' % FLAGS.instance_name)
      return True

    except HttpError:
      print ('Adding instance \'%s\'. Use command \'gcutil listinstances\''
             'to check the creation status.' % FLAGS.instance_name)

    service_accounts = [
        'https://www.googleapis.com/auth/devstorage.full_control',
        'https://www.googleapis.com/auth/bigquery'
        ]

    metadata = {
        'startup-storage': FLAGS.bucket,
        'startup-knime-zip': FLAGS.knime,
        'home-user': getpass.getuser()
        }

    return self.GetApi().CreateInstanceWithNewBootDisk(
        FLAGS.instance_name,
        FLAGS.machine_type,
        FLAGS.machine_image,
        open(FLAGS.startup_script).read(),
        service_accounts,
        metadata)
JRPC test: configuration.gs.list.mine
dataset/ETHPy150Open GoogleCloudPlatform/Solutions-Using-ETL-tool-on-Google-Compute-Engine/etl_demo.py/ComputeManager.StartInstance--crossover with--dataset/ETHPy150Open satnet-project/server/services/configuration/tests/jrpc/test_segments.py/JRPCSegmentsTest.test_gs_list_mine