Lines Matching refs:cfg

59     def __init__(self, cfg, devices=None):  argument
61 self._cfg = cfg
62 credentials = auth.CreateCredentials(cfg, ALL_SCOPES)
67 cfg, credentials)
325 def _CreateSshKeyPairIfNecessary(cfg): argument
334 if not cfg.ssh_public_key_path:
341 elif cfg.ssh_public_key_path and not cfg.ssh_private_key_path:
346 elif cfg.ssh_public_key_path and cfg.ssh_private_key_path:
348 cfg.ssh_private_key_path, cfg.ssh_public_key_path)
355 def CreateAndroidVirtualDevices(cfg, argument
386 credentials = auth.CreateCredentials(cfg, ALL_SCOPES)
387 compute_client = android_compute_client.AndroidComputeClient(cfg,
390 _CreateSshKeyPairIfNecessary(cfg)
391 device_pool = AndroidVirtualDevicePool(cfg)
399 extra_data_disk_size_gb=cfg.extra_data_disk_size_gb,
400 precreated_data_image=cfg.precreated_data_image_map.get(
401 cfg.extra_data_disk_size_gb))
436 def DeleteAndroidVirtualDevices(cfg, instance_names): argument
447 credentials = auth.CreateCredentials(cfg, ALL_SCOPES)
448 compute_client = android_compute_client.AndroidComputeClient(cfg,
452 instance_names, cfg.zone)
486 def Cleanup(cfg, expiration_mins): argument
504 credentials = auth.CreateCredentials(cfg, ALL_SCOPES)
506 cfg, credentials)
510 items = compute_client.ListInstances(zone=cfg.zone)
519 zone=cfg.zone)
524 skip_list = cfg.precreated_data_image_map.viewvalues()
539 items = compute_client.ListDisks(zone=cfg.zone)
549 zone=cfg.zone)
553 items = storage_client.List(bucket_name=cfg.storage_bucket_name)
561 bucket_name=cfg.storage_bucket_name,
575 def AddSshRsa(cfg, user, ssh_rsa_path): argument
588 credentials = auth.CreateCredentials(cfg, ALL_SCOPES)
590 cfg, credentials)
599 def CheckAccess(cfg): argument
605 credentials = auth.CreateCredentials(cfg, ALL_SCOPES)
607 cfg, credentials)
608 logger.info("Checking if user has access to project %s", cfg.project)
610 logger.error("User does not have access to project %s", cfg.project)
612 print "Looks like you do not have access to %s. " % cfg.project
613 if cfg.project in cfg.no_project_access_msg_map:
614 print cfg.no_project_access_msg_map[cfg.project]