Skip to content

Commit

Permalink
Updated to SDK v23.25.0.
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Chremmou <[email protected]>
  • Loading branch information
kc284 authored and danilo-delbusso committed Sep 12, 2023
1 parent 139186d commit dbe7183
Show file tree
Hide file tree
Showing 70 changed files with 1,024 additions and 1,635 deletions.
14 changes: 7 additions & 7 deletions XenModel/XenAPI/Blob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ public bool DeepEquals(Blob other)
if (ReferenceEquals(this, other))
return true;

return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._name_label, other._name_label) &&
Helper.AreEqual2(this._name_description, other._name_description) &&
Helper.AreEqual2(this._size, other._size) &&
Helper.AreEqual2(this._pubblic, other._pubblic) &&
Helper.AreEqual2(this._last_updated, other._last_updated) &&
Helper.AreEqual2(this._mime_type, other._mime_type);
return Helper.AreEqual2(_uuid, other._uuid) &&
Helper.AreEqual2(_name_label, other._name_label) &&
Helper.AreEqual2(_name_description, other._name_description) &&
Helper.AreEqual2(_size, other._size) &&
Helper.AreEqual2(_pubblic, other._pubblic) &&
Helper.AreEqual2(_last_updated, other._last_updated) &&
Helper.AreEqual2(_mime_type, other._mime_type);
}

public override string SaveChanges(Session session, string opaqueRef, Blob server)
Expand Down
22 changes: 11 additions & 11 deletions XenModel/XenAPI/Bond.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ public void UpdateFrom(Hashtable table)
if (table.ContainsKey("slaves"))
slaves = Marshalling.ParseSetRef<PIF>(table, "slaves");
if (table.ContainsKey("other_config"))
other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
other_config = Maps.ToDictionary_string_string(Marshalling.ParseHashTable(table, "other_config"));
if (table.ContainsKey("primary_slave"))
primary_slave = Marshalling.ParseRef<PIF>(table, "primary_slave");
if (table.ContainsKey("mode"))
mode = (bond_mode)Helper.EnumParseDefault(typeof(bond_mode), Marshalling.ParseString(table, "mode"));
if (table.ContainsKey("properties"))
properties = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "properties"));
properties = Maps.ToDictionary_string_string(Marshalling.ParseHashTable(table, "properties"));
if (table.ContainsKey("links_up"))
links_up = Marshalling.ParseLong(table, "links_up");
if (table.ContainsKey("auto_update_mac"))
Expand All @@ -138,15 +138,15 @@ public bool DeepEquals(Bond other)
if (ReferenceEquals(this, other))
return true;

return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._master, other._master) &&
Helper.AreEqual2(this._slaves, other._slaves) &&
Helper.AreEqual2(this._other_config, other._other_config) &&
Helper.AreEqual2(this._primary_slave, other._primary_slave) &&
Helper.AreEqual2(this._mode, other._mode) &&
Helper.AreEqual2(this._properties, other._properties) &&
Helper.AreEqual2(this._links_up, other._links_up) &&
Helper.AreEqual2(this._auto_update_mac, other._auto_update_mac);
return Helper.AreEqual2(_uuid, other._uuid) &&
Helper.AreEqual2(_master, other._master) &&
Helper.AreEqual2(_slaves, other._slaves) &&
Helper.AreEqual2(_other_config, other._other_config) &&
Helper.AreEqual2(_primary_slave, other._primary_slave) &&
Helper.AreEqual2(_mode, other._mode) &&
Helper.AreEqual2(_properties, other._properties) &&
Helper.AreEqual2(_links_up, other._links_up) &&
Helper.AreEqual2(_auto_update_mac, other._auto_update_mac);
}

public override string SaveChanges(Session session, string opaqueRef, Bond server)
Expand Down
14 changes: 7 additions & 7 deletions XenModel/XenAPI/Certificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ public bool DeepEquals(Certificate other)
if (ReferenceEquals(this, other))
return true;

return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._name, other._name) &&
Helper.AreEqual2(this._type, other._type) &&
Helper.AreEqual2(this._host, other._host) &&
Helper.AreEqual2(this._not_before, other._not_before) &&
Helper.AreEqual2(this._not_after, other._not_after) &&
Helper.AreEqual2(this._fingerprint, other._fingerprint);
return Helper.AreEqual2(_uuid, other._uuid) &&
Helper.AreEqual2(_name, other._name) &&
Helper.AreEqual2(_type, other._type) &&
Helper.AreEqual2(_host, other._host) &&
Helper.AreEqual2(_not_before, other._not_before) &&
Helper.AreEqual2(_not_after, other._not_after) &&
Helper.AreEqual2(_fingerprint, other._fingerprint);
}

public override string SaveChanges(Session session, string opaqueRef, Certificate server)
Expand Down
30 changes: 15 additions & 15 deletions XenModel/XenAPI/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@ public void UpdateFrom(Hashtable table)
if (table.ContainsKey("allowed_operations"))
allowed_operations = Helper.StringArrayToEnumList<cluster_operation>(Marshalling.ParseStringArray(table, "allowed_operations"));
if (table.ContainsKey("current_operations"))
current_operations = Maps.convert_from_proxy_string_cluster_operation(Marshalling.ParseHashTable(table, "current_operations"));
current_operations = Maps.ToDictionary_string_cluster_operation(Marshalling.ParseHashTable(table, "current_operations"));
if (table.ContainsKey("pool_auto_join"))
pool_auto_join = Marshalling.ParseBool(table, "pool_auto_join");
if (table.ContainsKey("token_timeout"))
token_timeout = Marshalling.ParseDouble(table, "token_timeout");
if (table.ContainsKey("token_timeout_coefficient"))
token_timeout_coefficient = Marshalling.ParseDouble(table, "token_timeout_coefficient");
if (table.ContainsKey("cluster_config"))
cluster_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "cluster_config"));
cluster_config = Maps.ToDictionary_string_string(Marshalling.ParseHashTable(table, "cluster_config"));
if (table.ContainsKey("other_config"))
other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
other_config = Maps.ToDictionary_string_string(Marshalling.ParseHashTable(table, "other_config"));
}

public bool DeepEquals(Cluster other, bool ignoreCurrentOperations)
Expand All @@ -153,20 +153,20 @@ public bool DeepEquals(Cluster other, bool ignoreCurrentOperations)
if (ReferenceEquals(this, other))
return true;

if (!ignoreCurrentOperations && !Helper.AreEqual2(this.current_operations, other.current_operations))
if (!ignoreCurrentOperations && !Helper.AreEqual2(current_operations, other.current_operations))
return false;

return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._cluster_hosts, other._cluster_hosts) &&
Helper.AreEqual2(this._pending_forget, other._pending_forget) &&
Helper.AreEqual2(this._cluster_token, other._cluster_token) &&
Helper.AreEqual2(this._cluster_stack, other._cluster_stack) &&
Helper.AreEqual2(this._allowed_operations, other._allowed_operations) &&
Helper.AreEqual2(this._pool_auto_join, other._pool_auto_join) &&
Helper.AreEqual2(this._token_timeout, other._token_timeout) &&
Helper.AreEqual2(this._token_timeout_coefficient, other._token_timeout_coefficient) &&
Helper.AreEqual2(this._cluster_config, other._cluster_config) &&
Helper.AreEqual2(this._other_config, other._other_config);
return Helper.AreEqual2(_uuid, other._uuid) &&
Helper.AreEqual2(_cluster_hosts, other._cluster_hosts) &&
Helper.AreEqual2(_pending_forget, other._pending_forget) &&
Helper.AreEqual2(_cluster_token, other._cluster_token) &&
Helper.AreEqual2(_cluster_stack, other._cluster_stack) &&
Helper.AreEqual2(_allowed_operations, other._allowed_operations) &&
Helper.AreEqual2(_pool_auto_join, other._pool_auto_join) &&
Helper.AreEqual2(_token_timeout, other._token_timeout) &&
Helper.AreEqual2(_token_timeout_coefficient, other._token_timeout_coefficient) &&
Helper.AreEqual2(_cluster_config, other._cluster_config) &&
Helper.AreEqual2(_other_config, other._other_config);
}

public override string SaveChanges(Session session, string opaqueRef, Cluster server)
Expand Down
22 changes: 11 additions & 11 deletions XenModel/XenAPI/Cluster_host.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public void UpdateFrom(Hashtable table)
if (table.ContainsKey("allowed_operations"))
allowed_operations = Helper.StringArrayToEnumList<cluster_host_operation>(Marshalling.ParseStringArray(table, "allowed_operations"));
if (table.ContainsKey("current_operations"))
current_operations = Maps.convert_from_proxy_string_cluster_host_operation(Marshalling.ParseHashTable(table, "current_operations"));
current_operations = Maps.ToDictionary_string_cluster_host_operation(Marshalling.ParseHashTable(table, "current_operations"));
if (table.ContainsKey("other_config"))
other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
other_config = Maps.ToDictionary_string_string(Marshalling.ParseHashTable(table, "other_config"));
}

public bool DeepEquals(Cluster_host other, bool ignoreCurrentOperations)
Expand All @@ -138,17 +138,17 @@ public bool DeepEquals(Cluster_host other, bool ignoreCurrentOperations)
if (ReferenceEquals(this, other))
return true;

if (!ignoreCurrentOperations && !Helper.AreEqual2(this.current_operations, other.current_operations))
if (!ignoreCurrentOperations && !Helper.AreEqual2(current_operations, other.current_operations))
return false;

return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._cluster, other._cluster) &&
Helper.AreEqual2(this._host, other._host) &&
Helper.AreEqual2(this._enabled, other._enabled) &&
Helper.AreEqual2(this._PIF, other._PIF) &&
Helper.AreEqual2(this._joined, other._joined) &&
Helper.AreEqual2(this._allowed_operations, other._allowed_operations) &&
Helper.AreEqual2(this._other_config, other._other_config);
return Helper.AreEqual2(_uuid, other._uuid) &&
Helper.AreEqual2(_cluster, other._cluster) &&
Helper.AreEqual2(_host, other._host) &&
Helper.AreEqual2(_enabled, other._enabled) &&
Helper.AreEqual2(_PIF, other._PIF) &&
Helper.AreEqual2(_joined, other._joined) &&
Helper.AreEqual2(_allowed_operations, other._allowed_operations) &&
Helper.AreEqual2(_other_config, other._other_config);
}

public override string SaveChanges(Session session, string opaqueRef, Cluster_host server)
Expand Down
12 changes: 6 additions & 6 deletions XenModel/XenAPI/Console.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void UpdateFrom(Hashtable table)
if (table.ContainsKey("VM"))
VM = Marshalling.ParseRef<VM>(table, "VM");
if (table.ContainsKey("other_config"))
other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
other_config = Maps.ToDictionary_string_string(Marshalling.ParseHashTable(table, "other_config"));
}

public bool DeepEquals(Console other)
Expand All @@ -118,11 +118,11 @@ public bool DeepEquals(Console other)
if (ReferenceEquals(this, other))
return true;

return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._protocol, other._protocol) &&
Helper.AreEqual2(this._location, other._location) &&
Helper.AreEqual2(this._VM, other._VM) &&
Helper.AreEqual2(this._other_config, other._other_config);
return Helper.AreEqual2(_uuid, other._uuid) &&
Helper.AreEqual2(_protocol, other._protocol) &&
Helper.AreEqual2(_location, other._location) &&
Helper.AreEqual2(_VM, other._VM) &&
Helper.AreEqual2(_other_config, other._other_config);
}

public override string SaveChanges(Session session, string opaqueRef, Console server)
Expand Down
10 changes: 5 additions & 5 deletions XenModel/XenAPI/Crashdump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void UpdateFrom(Hashtable table)
if (table.ContainsKey("VDI"))
VDI = Marshalling.ParseRef<VDI>(table, "VDI");
if (table.ContainsKey("other_config"))
other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
other_config = Maps.ToDictionary_string_string(Marshalling.ParseHashTable(table, "other_config"));
}

public bool DeepEquals(Crashdump other)
Expand All @@ -113,10 +113,10 @@ public bool DeepEquals(Crashdump other)
if (ReferenceEquals(this, other))
return true;

return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._VM, other._VM) &&
Helper.AreEqual2(this._VDI, other._VDI) &&
Helper.AreEqual2(this._other_config, other._other_config);
return Helper.AreEqual2(_uuid, other._uuid) &&
Helper.AreEqual2(_VM, other._VM) &&
Helper.AreEqual2(_VDI, other._VDI) &&
Helper.AreEqual2(_other_config, other._other_config);
}

public override string SaveChanges(Session session, string opaqueRef, Crashdump server)
Expand Down
4 changes: 2 additions & 2 deletions XenModel/XenAPI/DR_task.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public bool DeepEquals(DR_task other)
if (ReferenceEquals(this, other))
return true;

return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._introduced_SRs, other._introduced_SRs);
return Helper.AreEqual2(_uuid, other._uuid) &&
Helper.AreEqual2(_introduced_SRs, other._introduced_SRs);
}

public override string SaveChanges(Session session, string opaqueRef, DR_task server)
Expand Down
16 changes: 8 additions & 8 deletions XenModel/XenAPI/Data_source.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ public bool DeepEquals(Data_source other)
if (ReferenceEquals(this, other))
return true;

return Helper.AreEqual2(this._name_label, other._name_label) &&
Helper.AreEqual2(this._name_description, other._name_description) &&
Helper.AreEqual2(this._enabled, other._enabled) &&
Helper.AreEqual2(this._standard, other._standard) &&
Helper.AreEqual2(this._units, other._units) &&
Helper.AreEqual2(this._min, other._min) &&
Helper.AreEqual2(this._max, other._max) &&
Helper.AreEqual2(this._value, other._value);
return Helper.AreEqual2(_name_label, other._name_label) &&
Helper.AreEqual2(_name_description, other._name_description) &&
Helper.AreEqual2(_enabled, other._enabled) &&
Helper.AreEqual2(_standard, other._standard) &&
Helper.AreEqual2(_units, other._units) &&
Helper.AreEqual2(_min, other._min) &&
Helper.AreEqual2(_max, other._max) &&
Helper.AreEqual2(_value, other._value);
}

public override string SaveChanges(Session session, string opaqueRef, Data_source server)
Expand Down
14 changes: 7 additions & 7 deletions XenModel/XenAPI/Feature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ public bool DeepEquals(Feature other)
if (ReferenceEquals(this, other))
return true;

return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._name_label, other._name_label) &&
Helper.AreEqual2(this._name_description, other._name_description) &&
Helper.AreEqual2(this._enabled, other._enabled) &&
Helper.AreEqual2(this._experimental, other._experimental) &&
Helper.AreEqual2(this._version, other._version) &&
Helper.AreEqual2(this._host, other._host);
return Helper.AreEqual2(_uuid, other._uuid) &&
Helper.AreEqual2(_name_label, other._name_label) &&
Helper.AreEqual2(_name_description, other._name_description) &&
Helper.AreEqual2(_enabled, other._enabled) &&
Helper.AreEqual2(_experimental, other._experimental) &&
Helper.AreEqual2(_version, other._version) &&
Helper.AreEqual2(_host, other._host);
}

public override string SaveChanges(Session session, string opaqueRef, Feature server)
Expand Down
9 changes: 0 additions & 9 deletions XenModel/XenAPI/FriendlyErrorNames.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions XenModel/XenAPI/FriendlyErrorNames.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,6 @@ Authorized Roles: {1}</value>
<data name="REPOSYNC_FAILED" xml:space="preserve">
<value>Syncing with remote YUM repository failed.</value>
</data>
<data name="REPOSYNC_IN_PROGRESS" xml:space="preserve">
<value>The pool is syncing with the enabled remote YUM repository.</value>
</data>
<data name="REQUIRED_PIF_IS_UNPLUGGED" xml:space="preserve">
<value>The operation you requested cannot be performed because the specified PIF is currently unplugged.</value>
</data>
Expand Down
Loading

0 comments on commit dbe7183

Please sign in to comment.