Commit Graph

218 Commits

Author SHA1 Message Date
YarsinCitrix
9384a42435 CA-281881: G11N: L10N: Hardcode issue in error messages when configure AD for server
Refer to the CA ticket for details. Generall, there may be some messages (strings)
from the same error message and we cannot literally translate that in the current
framework nor can we split the error into multiple errors and make the translation
separately due to effort constrain. So we just remove the extra information/string
from the current error message to keep current message language(translation) consistent.

Signed-off-by: YarsinCitrix <yarsin.he@citrix.com>
2018-04-09 11:33:22 +01:00
Konstantina Chremmou
a112bd73fb Removed duplicate code; correction setting the request timeout in a session constructor;
renamed method to be more descriptive.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-04-09 10:45:27 +01:00
Konstantina Chremmou
a8efbbfba2 CA-286574: Fixed issue where the DR metadata were not loaded from the VDI because
the action was failing to create a metadata session; the latter was due to accessing
directly properties of the xmlrpc proxy which is null since we use the jsonrpc backend.
Also fixed some more areas where the same might occur.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-04-09 10:45:27 +01:00
Konstantina Chremmou
01273b205c Reverted changes that were mistakenly added with ef65d3fede.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-04-04 14:48:59 +01:00
Mihaela Stoica
cab6a051b8 Merge branch 'REQ-477' into master
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

# Conflicts:
#	XenModel/XenAPI/PCI.cs
#	XenModel/XenModel.csproj
2018-04-04 09:59:29 +01:00
vetrivelc
c910f7d41b L10N: Translation Updates 2018-03-27 13:47:39 +01:00
Cheng Zhang
ef65d3fede CP-27332: Use latest version of XenAPI to pass build
Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
2018-03-23 14:43:22 +08:00
jishengx
6f4fa43c03 CP-26362: Enable create SR-IOV network (#1952)
* update the XenAPI according to the Jason-RPC

* CP-26362: Enable create SR-IOV network

* fix review comments

* fix the judgement on SR-IOV details page

* disable the finish button

Signed-off-by: Jisheng Xing <jisheng.xing@citrix.com>
2018-03-23 14:27:04 +08:00
Jisheng Xing
cbfeaa3638 update the XenAPI 2018-03-23 14:24:51 +08:00
Mihaela Stoica
3e1562b415 Merge master into REQ-477
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

# Conflicts:
#	XenModel/XenAPI/Host.cs
#	XenModel/XenAPI/JsonRpc.cs
#	XenModel/XenAPI/VM.cs
#	XenModel/XenAPI/VM_metrics.cs
2018-03-22 15:17:16 +00:00
Konstantina Chremmou
8250e086d1 Updated bindings to fix CA-285680, whereby the health check upload requests
were broken due to the Json library changing the format of date strings
even when they were deserialized as strings.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-03-22 15:07:32 +00:00
Konstantina Chremmou
f1e1146a55 CP-17099: Updated bindings to include new Sr.probe_ext call.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-03-22 13:59:22 +00:00
Mihaela Stoica
ec5dcf9751 Update API bindings
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-03-19 14:08:32 +00:00
Mihaela Stoica
f7b27ec222
Merge pull request #1994 from xenserver/REQ-477
Merge REQ-477 into master
2018-03-19 13:23:19 +00:00
Konstantina Chremmou
34ec571fa1 Return null if the string to deserialize to a XenRef<T> is null. This can
happen for calls returning a XenRef<T> when the server is using the JsonRpc
v1.0 and we have an error, in which case the result is null. Similarly, return
DateTime.MinValue when the datetime string is null (or in general unparasable).

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-03-08 10:17:12 +00:00
Konstantina Chremmou
5529626ac5 CA-284234: Used patched version of Json.NET.
Also, fixed deserialization for errors on servers using JsonRpc v1.0.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-28 11:05:29 +00:00
Mihaela Stoica
ff05fb698c Merge remote-tracking branch 'upstream/master' into REQ-477
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

# Conflicts:
#	XenModel/XenAPI/Auth.cs
#	XenModel/XenAPI/Blob.cs
#	XenModel/XenAPI/Bond.cs
#	XenModel/XenAPI/Console.cs
#	XenModel/XenAPI/Converters.cs
#	XenModel/XenAPI/Crashdump.cs
#	XenModel/XenAPI/DR_task.cs
#	XenModel/XenAPI/Event.cs
#	XenModel/XenAPI/Feature.cs
#	XenModel/XenAPI/GPU_group.cs
#	XenModel/XenAPI/Host.cs
#	XenModel/XenAPI/Host_cpu.cs
#	XenModel/XenAPI/Host_crashdump.cs
#	XenModel/XenAPI/Host_metrics.cs
#	XenModel/XenAPI/Host_patch.cs
#	XenModel/XenAPI/JsonRpcClient.cs
#	XenModel/XenAPI/LVHD.cs
#	XenModel/XenAPI/Maps.cs
#	XenModel/XenAPI/Message.cs
#	XenModel/XenAPI/Network.cs
#	XenModel/XenAPI/PBD.cs
#	XenModel/XenAPI/PCI.cs
#	XenModel/XenAPI/PGPU.cs
#	XenModel/XenAPI/PIF.cs
#	XenModel/XenAPI/PIF_metrics.cs
#	XenModel/XenAPI/PUSB.cs
#	XenModel/XenAPI/PVS_cache_storage.cs
#	XenModel/XenAPI/PVS_proxy.cs
#	XenModel/XenAPI/PVS_server.cs
#	XenModel/XenAPI/PVS_site.cs
#	XenModel/XenAPI/Pool.cs
#	XenModel/XenAPI/Pool_patch.cs
#	XenModel/XenAPI/Pool_update.cs
#	XenModel/XenAPI/Role.cs
#	XenModel/XenAPI/SDN_controller.cs
#	XenModel/XenAPI/SM.cs
#	XenModel/XenAPI/SR.cs
#	XenModel/XenAPI/Secret.cs
#	XenModel/XenAPI/Session.cs
#	XenModel/XenAPI/Subject.cs
#	XenModel/XenAPI/Task.cs
#	XenModel/XenAPI/Tunnel.cs
#	XenModel/XenAPI/USB_group.cs
#	XenModel/XenAPI/User.cs
#	XenModel/XenAPI/VBD.cs
#	XenModel/XenAPI/VBD_metrics.cs
#	XenModel/XenAPI/VDI.cs
#	XenModel/XenAPI/VGPU.cs
#	XenModel/XenAPI/VGPU_type.cs
#	XenModel/XenAPI/VIF.cs
#	XenModel/XenAPI/VIF_metrics.cs
#	XenModel/XenAPI/VLAN.cs
#	XenModel/XenAPI/VM.cs
#	XenModel/XenAPI/VMPP.cs
#	XenModel/XenAPI/VMSS.cs
#	XenModel/XenAPI/VM_appliance.cs
#	XenModel/XenAPI/VM_guest_metrics.cs
#	XenModel/XenAPI/VM_metrics.cs
#	XenModel/XenAPI/VTPM.cs
#	XenModel/XenAPI/VUSB.cs
#	XenModel/XenModel.csproj
2018-02-27 17:42:18 +00:00
Mihaela Stoica
9a8b55b9fd Update API bindings from the feature branch
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-02-27 16:42:29 +00:00
Konstantina Chremmou
45f35ef099 CA-284233: New bindings to include a converter to serialize null values in string-string maps to empty strings.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-27 15:39:45 +00:00
Konstantina Chremmou
8207a25fc8 Reverted to use of the Marshalling methods, as the Hashtable values can often be null.
Also fixed regression within the Masrshalling methods to account for null
values, however I did not reinstate the checks for keys, because Hashtable
returns null if the key does not exist instead of throwing an exception.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-26 15:48:29 +00:00
Konstantina Chremmou
1d54c96d4d CA-283697 part4: New set of API bindings which now expose:
- a new method to update an object from a Hashtable setting only the fields
  contained in the Hashtable.
- an improvement on the class constructor from Hashtable whereby the fields
  are initialised and only the ones contained in the Hashtable are set (this
  is also an improvement towards CA-97777).

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-22 13:31:02 +00:00
Konstantina Chremmou
07e4249766 Updated bindings, including fix for CA-283613: missing JsonConverters for Map(Ref,Int) and Map(Ref,Map(String,String)).
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-02-14 11:03:48 +00:00
Konstantina Chremmou
123db499f5 Merge branch 'master' into REQ-420 2018-01-25 13:38:58 +00:00
Konstantina Chremmou
9d2bb0b1ed CA-275566: Do not switch to the JsonRpc backend when using a simulator URL.
Restored API version 2.10 in test database. Private member Session._uuid
has been removed from the SDK.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-01-24 15:58:16 +00:00
Mihaela Stoica
5fb9709b8a Merge master into REQ-477
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

# Conflicts:
#	XenModel/FriendlyNames.resx
#	XenModel/Messages.resx
#	XenModel/XenAPI/ApiVersion.cs
2018-01-15 14:41:40 +00:00
Mihaela Stoica
f62cc5c521 CA-279502: Added check for the server version before calling VM.get_is_default_template
This fixes the error thrown when importing templates with XenCenter 7.3 on servers earlier than 7.2

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2018-01-12 11:01:09 +00:00
Konstantina Chremmou
43079c6e17 CP-26469: Added version 2.9 to the API bindings.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2018-01-10 12:57:12 +00:00
Yang Qian
61b73aa9a8 CA-178651 FCoE NIC is not prevented from unplugging
Add api errors

Signed-off-by: Yang Qian <yang.qian@citrix.com>
2017-12-19 17:46:35 +08:00
Mihaela Stoica
59bcf97133
Updated bindings with new API version 2.10. (#1902)
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-12-18 13:41:37 +00:00
Konstantina Chremmou
4ce1388077 Updated bindings with new API version 2.10.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-12-11 13:10:03 +00:00
serenc
1e63b128b5 Added cluster-destroy bindings
Signed-off-by: serenc <seren.corbett@citrix.com>
2017-12-05 14:05:44 +00:00
Mihaela Stoica
72071a3334 Merge master into REQ-477
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>

Conflicts:
	XenModel/XenAPI/Proxy.cs
2017-12-04 13:37:12 +00:00
Konstantina Chremmou
817ea3654e Updated API bindings including fix to regression in the Session constructors.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-12-03 17:02:42 +00:00
Konstantina Chremmou
1c579565ac Create the settings object only in DEBUG mode. 2017-11-30 15:34:36 +00:00
Konstantina Chremmou
a623e28a06 CP-24558: Created a method in XenObject converting it to JObject, so that this method can be unit tested in isolation.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-11-30 13:49:15 +00:00
Konstantina Chremmou
058854046d Provisional correction to the version for which JsonRpc is supported.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-11-27 13:17:22 +00:00
Konstantina Chremmou
1b302bb095 Added converter for reference/string-set maps.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-11-24 16:03:12 +00:00
Konstantina Chremmou
2ff121fb55 CA-266891: fixed issue where enum properties were not serialised correctly.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-11-23 15:13:54 +00:00
Konstantina Chremmou
bcab8a5c6c Added initial values to the JsonRpc classes to correct errors when building in Release mode.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-11-23 15:13:54 +00:00
Konstantina Chremmou
25f1971b2d Renamed converter as the previous name had the wrong meaning.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-11-23 15:13:54 +00:00
Konstantina Chremmou
23a9c50389 Merge remote-tracking branch 'upstream/master' into REQ-420 2017-11-23 14:07:21 +00:00
serenc
3e9e2609e8 CP-25565: Update XenCenter API binding
Signed-off-by: serenc <seren.corbett@citrix.com>
2017-11-23 11:06:37 +00:00
Konstantina Chremmou
906619e4eb Updated API bindings with API version bumped to 2.8.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-11-22 14:33:26 +00:00
Vetrivel Chinnasamy
5f594dae8a L10N: Translation Checkins 2017-11-22 16:03:36 +05:30
Konstantina Chremmou
a170ec33e2 Merge remote-tracking branch 'upstream/master' into REQ-420
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>

# Conflicts:
#	autogenerated XenModel/XenAPI/* files
2017-11-17 11:53:41 +00:00
Konstantina Chremmou
c2e71875af Updated bindings with the latest API objects.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
2017-11-17 11:19:01 +00:00
Mihaela Stoica
8e5b40b84c Update XenAPI based on XS/master
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2017-11-17 10:52:02 +00:00
Vetrivel Chinnasamy
282ea74224 L10N:CA-270723 Translation Checkins 2017-11-03 16:42:41 +05:30
Mihaela Stoica
95323239a0 Merge pull request #1827 from vetrivelc/master
L10N:Translation Updates
2017-10-25 08:48:23 +01:00
Michael Zhao
b093082bcd REQ-158: Merge master to fix conflicts. 2017-10-24 18:51:24 +08:00