コード例 #1
0
ファイル: VGPU_type.cs プロジェクト: xueqingz/xenadmin
 public VGPU_type(string uuid,
                  string vendor_name,
                  string model_name,
                  long framebuffer_size,
                  long max_heads,
                  long max_resolution_x,
                  long max_resolution_y,
                  List <XenRef <PGPU> > supported_on_PGPUs,
                  List <XenRef <PGPU> > enabled_on_PGPUs,
                  List <XenRef <VGPU> > VGPUs,
                  List <XenRef <GPU_group> > supported_on_GPU_groups,
                  List <XenRef <GPU_group> > enabled_on_GPU_groups,
                  vgpu_type_implementation implementation,
                  string identifier,
                  bool experimental,
                  List <XenRef <VGPU_type> > compatible_types_in_vm)
 {
     this.uuid                    = uuid;
     this.vendor_name             = vendor_name;
     this.model_name              = model_name;
     this.framebuffer_size        = framebuffer_size;
     this.max_heads               = max_heads;
     this.max_resolution_x        = max_resolution_x;
     this.max_resolution_y        = max_resolution_y;
     this.supported_on_PGPUs      = supported_on_PGPUs;
     this.enabled_on_PGPUs        = enabled_on_PGPUs;
     this.VGPUs                   = VGPUs;
     this.supported_on_GPU_groups = supported_on_GPU_groups;
     this.enabled_on_GPU_groups   = enabled_on_GPU_groups;
     this.implementation          = implementation;
     this.identifier              = identifier;
     this.experimental            = experimental;
     this.compatible_types_in_vm  = compatible_types_in_vm;
 }
コード例 #2
0
        private void ProcessRecordImplementation(string vgpu_type)
        {
            RunApiCall(() =>
            {
                vgpu_type_implementation obj = XenAPI.VGPU_type.get_implementation(session, vgpu_type);

                WriteObject(obj, true);
            });
        }
コード例 #3
0
 public static string ToString(vgpu_type_implementation x)
 {
     switch (x)
     {
         case vgpu_type_implementation.passthrough:
             return "passthrough";
         case vgpu_type_implementation.nvidia:
             return "nvidia";
         case vgpu_type_implementation.gvt_g:
             return "gvt_g";
         default:
             return "unknown";
     }
 }
コード例 #4
0
        public static string ToString(vgpu_type_implementation x)
        {
            switch (x)
            {
            case vgpu_type_implementation.passthrough:
                return("passthrough");

            case vgpu_type_implementation.nvidia:
                return("nvidia");

            case vgpu_type_implementation.gvt_g:
                return("gvt_g");
            }
            return("unknown");
        }
コード例 #5
0
        public static string StringOf(this vgpu_type_implementation x)
        {
            switch (x)
            {
            case vgpu_type_implementation.passthrough:
                return("passthrough");

            case vgpu_type_implementation.nvidia:
                return("nvidia");

            case vgpu_type_implementation.gvt_g:
                return("gvt_g");

            case vgpu_type_implementation.mxgpu:
                return("mxgpu");

            default:
                return("unknown");
            }
        }
コード例 #6
0
 public static string ToString(vgpu_type_implementation x)
 {
     return(x.StringOf());
 }