mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CP-6856: Updated the model with the latest API bindings containing max_resolution fields for vGPU (PR-1675)
# HG changeset patch # User Mihaela Stoica <Mihaela.Stoica@citrix.com> # Date 1383822148 0 # Thu Nov 07 11:02:28 2013 +0000 # Node ID 2efbf098103b9be3763ead2ff516cbe1d0cc0754 # Parent f79a41a7c73e5555143a1f5cdf7bd3e8f27a8fba Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
a662268286
commit
90c5deb741
@ -7861,6 +7861,16 @@ namespace XenAPI
|
||||
vgpu_type_get_max_heads(string session, string _vgpu_type);
|
||||
|
||||
|
||||
[XmlRpcMethod("VGPU_type.get_max_resolution_x")]
|
||||
Response<string>
|
||||
vgpu_type_get_max_resolution_x(string session, string _vgpu_type);
|
||||
|
||||
|
||||
[XmlRpcMethod("VGPU_type.get_max_resolution_y")]
|
||||
Response<string>
|
||||
vgpu_type_get_max_resolution_y(string session, string _vgpu_type);
|
||||
|
||||
|
||||
[XmlRpcMethod("VGPU_type.get_supported_on_PGPUs")]
|
||||
Response<string []>
|
||||
vgpu_type_get_supported_on_pgpus(string session, string _vgpu_type);
|
||||
@ -8677,6 +8687,8 @@ namespace XenAPI
|
||||
public string model_name;
|
||||
public string framebuffer_size;
|
||||
public string max_heads;
|
||||
public string max_resolution_x;
|
||||
public string max_resolution_y;
|
||||
public string [] supported_on_PGPUs;
|
||||
public string [] enabled_on_PGPUs;
|
||||
public string [] VGPUs;
|
||||
|
@ -48,6 +48,8 @@ namespace XenAPI
|
||||
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,
|
||||
@ -59,6 +61,8 @@ namespace XenAPI
|
||||
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;
|
||||
@ -82,6 +86,8 @@ namespace XenAPI
|
||||
model_name = update.model_name;
|
||||
framebuffer_size = update.framebuffer_size;
|
||||
max_heads = update.max_heads;
|
||||
max_resolution_x = update.max_resolution_x;
|
||||
max_resolution_y = update.max_resolution_y;
|
||||
supported_on_PGPUs = update.supported_on_PGPUs;
|
||||
enabled_on_PGPUs = update.enabled_on_PGPUs;
|
||||
VGPUs = update.VGPUs;
|
||||
@ -96,6 +102,8 @@ namespace XenAPI
|
||||
model_name = proxy.model_name == null ? null : (string)proxy.model_name;
|
||||
framebuffer_size = proxy.framebuffer_size == null ? 0 : long.Parse((string)proxy.framebuffer_size);
|
||||
max_heads = proxy.max_heads == null ? 0 : long.Parse((string)proxy.max_heads);
|
||||
max_resolution_x = proxy.max_resolution_x == null ? 0 : long.Parse((string)proxy.max_resolution_x);
|
||||
max_resolution_y = proxy.max_resolution_y == null ? 0 : long.Parse((string)proxy.max_resolution_y);
|
||||
supported_on_PGPUs = proxy.supported_on_PGPUs == null ? null : XenRef<PGPU>.Create(proxy.supported_on_PGPUs);
|
||||
enabled_on_PGPUs = proxy.enabled_on_PGPUs == null ? null : XenRef<PGPU>.Create(proxy.enabled_on_PGPUs);
|
||||
VGPUs = proxy.VGPUs == null ? null : XenRef<VGPU>.Create(proxy.VGPUs);
|
||||
@ -111,6 +119,8 @@ namespace XenAPI
|
||||
result_.model_name = (model_name != null) ? model_name : "";
|
||||
result_.framebuffer_size = framebuffer_size.ToString();
|
||||
result_.max_heads = max_heads.ToString();
|
||||
result_.max_resolution_x = max_resolution_x.ToString();
|
||||
result_.max_resolution_y = max_resolution_y.ToString();
|
||||
result_.supported_on_PGPUs = (supported_on_PGPUs != null) ? Helper.RefListToStringArray(supported_on_PGPUs) : new string[] {};
|
||||
result_.enabled_on_PGPUs = (enabled_on_PGPUs != null) ? Helper.RefListToStringArray(enabled_on_PGPUs) : new string[] {};
|
||||
result_.VGPUs = (VGPUs != null) ? Helper.RefListToStringArray(VGPUs) : new string[] {};
|
||||
@ -130,6 +140,8 @@ namespace XenAPI
|
||||
model_name = Marshalling.ParseString(table, "model_name");
|
||||
framebuffer_size = Marshalling.ParseLong(table, "framebuffer_size");
|
||||
max_heads = Marshalling.ParseLong(table, "max_heads");
|
||||
max_resolution_x = Marshalling.ParseLong(table, "max_resolution_x");
|
||||
max_resolution_y = Marshalling.ParseLong(table, "max_resolution_y");
|
||||
supported_on_PGPUs = Marshalling.ParseSetRef<PGPU>(table, "supported_on_PGPUs");
|
||||
enabled_on_PGPUs = Marshalling.ParseSetRef<PGPU>(table, "enabled_on_PGPUs");
|
||||
VGPUs = Marshalling.ParseSetRef<VGPU>(table, "VGPUs");
|
||||
@ -149,6 +161,8 @@ namespace XenAPI
|
||||
Helper.AreEqual2(this._model_name, other._model_name) &&
|
||||
Helper.AreEqual2(this._framebuffer_size, other._framebuffer_size) &&
|
||||
Helper.AreEqual2(this._max_heads, other._max_heads) &&
|
||||
Helper.AreEqual2(this._max_resolution_x, other._max_resolution_x) &&
|
||||
Helper.AreEqual2(this._max_resolution_y, other._max_resolution_y) &&
|
||||
Helper.AreEqual2(this._supported_on_PGPUs, other._supported_on_PGPUs) &&
|
||||
Helper.AreEqual2(this._enabled_on_PGPUs, other._enabled_on_PGPUs) &&
|
||||
Helper.AreEqual2(this._VGPUs, other._VGPUs) &&
|
||||
@ -204,6 +218,16 @@ namespace XenAPI
|
||||
return long.Parse((string)session.proxy.vgpu_type_get_max_heads(session.uuid, (_vgpu_type != null) ? _vgpu_type : "").parse());
|
||||
}
|
||||
|
||||
public static long get_max_resolution_x(Session session, string _vgpu_type)
|
||||
{
|
||||
return long.Parse((string)session.proxy.vgpu_type_get_max_resolution_x(session.uuid, (_vgpu_type != null) ? _vgpu_type : "").parse());
|
||||
}
|
||||
|
||||
public static long get_max_resolution_y(Session session, string _vgpu_type)
|
||||
{
|
||||
return long.Parse((string)session.proxy.vgpu_type_get_max_resolution_y(session.uuid, (_vgpu_type != null) ? _vgpu_type : "").parse());
|
||||
}
|
||||
|
||||
public static List<XenRef<PGPU>> get_supported_on_PGPUs(Session session, string _vgpu_type)
|
||||
{
|
||||
return XenRef<PGPU>.Create(session.proxy.vgpu_type_get_supported_on_pgpus(session.uuid, (_vgpu_type != null) ? _vgpu_type : "").parse());
|
||||
@ -269,6 +293,18 @@ namespace XenAPI
|
||||
set { if (!Helper.AreEqual(value, _max_heads)) { _max_heads = value; Changed = true; NotifyPropertyChanged("max_heads"); } }
|
||||
}
|
||||
|
||||
private long _max_resolution_x;
|
||||
public virtual long max_resolution_x {
|
||||
get { return _max_resolution_x; }
|
||||
set { if (!Helper.AreEqual(value, _max_resolution_x)) { _max_resolution_x = value; Changed = true; NotifyPropertyChanged("max_resolution_x"); } }
|
||||
}
|
||||
|
||||
private long _max_resolution_y;
|
||||
public virtual long max_resolution_y {
|
||||
get { return _max_resolution_y; }
|
||||
set { if (!Helper.AreEqual(value, _max_resolution_y)) { _max_resolution_y = value; Changed = true; NotifyPropertyChanged("max_resolution_y"); } }
|
||||
}
|
||||
|
||||
private List<XenRef<PGPU>> _supported_on_PGPUs;
|
||||
public virtual List<XenRef<PGPU>> supported_on_PGPUs {
|
||||
get { return _supported_on_PGPUs; }
|
||||
|
Loading…
Reference in New Issue
Block a user