Lines Matching refs:cfg
58 def __init__(self, cfg, devices=None): argument
60 self._cfg = cfg
61 credentials = auth.CreateCredentials(cfg)
66 cfg, credentials)
337 def CreateGCETypeAVD(cfg, argument
373 credentials = auth.CreateCredentials(cfg)
374 compute_client = android_compute_client.AndroidComputeClient(cfg,
377 common_operations.CreateSshKeyPairIfNecessary(cfg)
378 device_pool = AndroidVirtualDevicePool(cfg)
386 extra_data_disk_size_gb=cfg.extra_data_disk_size_gb,
387 precreated_data_image=cfg.precreated_data_image_map.get(
388 cfg.extra_data_disk_size_gb),
390 extra_scopes=cfg.extra_scopes)
403 rsa_key_file=cfg.ssh_private_key_path,
408 extra_args_ssh_tunnel=cfg.extra_args_ssh_tunnel)
436 def DeleteAndroidVirtualDevices(cfg, instance_names, default_report=None): argument
453 credentials = auth.CreateCredentials(cfg)
454 compute_client = android_compute_client.AndroidComputeClient(cfg,
477 def CheckAccess(cfg): argument
483 credentials = auth.CreateCredentials(cfg)
485 cfg, credentials)
486 logger.info("Checking if user has access to project %s", cfg.project)
488 logger.error("User does not have access to project %s", cfg.project)
490 print("Looks like you do not have access to %s. " % cfg.project)
491 if cfg.project in cfg.no_project_access_msg_map:
492 print(cfg.no_project_access_msg_map[cfg.project])