def __init__(self): args = sample_util.process_cli_args(parser.parse_args()) self.interval = int(args.interval) self.expiration = int(args.expiration) stub_config = get_configuration(args.server, args.username, args.password, args.skipverification) self.providers_client = Providers(stub_config) self.acq_specs_client = AcqSpecs(stub_config)
def __init__(self): args = sample_util.process_cli_args(parser.parse_args()) self.interval = int(args.interval) self.expiration = int(args.expiration) stub_config = get_configuration(args.server, args.username, args.password, args.skipverification) self.acq_specs_client = AcqSpecs(stub_config) self.data_client = Data(stub_config) session = get_unverified_session() if args.skipverification else None self.vsphere_client = create_vsphere_client(server=args.server, username=args.username, password=args.password, session=session)