コード例 #1
0
 def __init__(self):
     parser = sample_cli.build_arg_parser()
     args = sample_util.process_cli_args(parser.parse_args())
     session = get_unverified_session() if args.skipverification else None
     stub_config = get_configuration(args.server, args.username,
                                     args.password, args.skipverification)
     self.pending_client = Pending(stub_config)
     self.precheck_client = PrecheckReport(stub_config)
コード例 #2
0
    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)
コード例 #3
0
    def __init__(self):
        parser = sample_cli.build_arg_parser()
        args = sample_util.process_cli_args(parser.parse_args())

        session = get_unverified_session() if args.skipverification else None
        stub_config = get_configuration(
                args.server, args.username, args.password,
                session)
        self.product_client = ProductCatalog(stub_config)
        self.associated_products_client = AssociatedProducts(stub_config)
コード例 #4
0
 def __init__(self):
     parser = sample_cli.build_arg_parser()
     parser.add_argument('-f', '--file_name',
                     help='Provide csv report file name.')
     args = sample_util.process_cli_args(parser.parse_args())
     self.csv_report = args.file_name
     session = get_unverified_session() if args.skipverification else None
     stub_config = get_configuration(
             args.server, args.username, args.password,
             session)
     self.report_client = Reports(stub_config)
コード例 #5
0
 def __init__(self):
     parser = sample_cli.build_arg_parser()
     parser.add_argument('-id',
                         '--host',
                         required=True,
                         help='MOID of the source host for eg "host-13"')
     args = sample_util.process_cli_args(parser.parse_args())
     self.host_id = args.host
     config = get_configuration(args.server, args.username, args.password,
                                args.skipverification)
     self.api_client = CompatibilityReleases(config)
コード例 #6
0
    def __init__(self):
        parser = sample_cli.build_arg_parser()
        args = sample_util.process_cli_args(parser.parse_args())

        stub_config = get_configuration(args.server, args.username,
                                        args.password, args.skipverification)
        self.counters_client = Counters(stub_config)
        self.providers_client = Providers(stub_config)
        self.resource_types_client = ResourceTypes(stub_config)
        self.counter_metadata_client = CounterMetadata(stub_config)
        self.metrics_client = Metrics(stub_config)
        self.counter_sets_client = CounterSets(stub_config)
        self.resource_address_schemas_client = ResourceAddressSchemas(
            stub_config)
コード例 #7
0
    def __init__(self):
        parser = sample_cli.build_arg_parser()
        parser.add_argument(
            '--cluster',
            required=True,
            help='The MoID of the Supervisor Cluster to query.')

        args = sample_util.process_cli_args(parser.parse_args())
        session = get_unverified_session() if args.skipverification else None
        stub_config = get_configuration(args.server, args.username,
                                        args.password, session)
        self.cluster_supervisor_services = ClusterSupervisorServices(
            stub_config)
        self.versions = Versions(stub_config)
        self.cluster = args.cluster
コード例 #8
0
    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)