Skip to content

SDK updates and fixes#6988

Merged
kc284 merged 11 commits intoxapi-project:masterfrom
kc284:master
Apr 7, 2026
Merged

SDK updates and fixes#6988
kc284 merged 11 commits intoxapi-project:masterfrom
kc284:master

Conversation

@kc284
Copy link
Copy Markdown
Contributor

@kc284 kc284 commented Apr 1, 2026

There is a minor change in the datamodel, the rest are SDK files. These changes will need porting to 26.1-lcm afterwards.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@cloud.com>
@contificate
Copy link
Copy Markdown
Contributor

Noting explicitly that this PR addresses #6960. Thanks.

Comment thread ocaml/sdk-gen/c/README.dist Outdated
public string[] OpaqueRef { get; set; }

[Parameter]
public string Originator { get; set; } = "XenServerPSModule/" + Helper.APIVersionString(API_Version.LATEST);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In telemetry , PM want to collect this user-agent key "XenServerPSModule/" to know how many customer use PS SDK, if this remove and use DefaultUserAgent = $"XenAPI/{Helper.APIVersionString(API_Version.LATEST)}";, the upload telemetry data will not as we expected.
https://github.com/csg-xenserver/xenserver-telemetry/blob/master/plugin/xenserver_telemetry.py#L54C1-L54C22
suggest keep string "XenServerPSModule" in user agent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UserAgent is meant to be set by the calling code. Strictly speaking, "XenServerPSModule/XenAPIversion" is not correct, because the module is versioned after the xapi tag; this is the reason why I changed it. If we want to keep the "XenServerPSModule/" bit, we probably need to add a placeholder in the string and replace it at build time like we do in the .psd1 file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I replaced it both for C# and PS with a string that contains the placeholder.
The API version will be bumped later, hence I am not including it in this PR.

@xueqingz
Copy link
Copy Markdown
Contributor

xueqingz commented Apr 7, 2026

For the file change for XS9 in https://github.com/csg-xenserver/xencenter/blob/master/XenModel/XenAPI/ApiVersion.cs#L93 do we need to update in SDK temple?

kc284 and others added 10 commits April 7, 2026 10:27
…ault value.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
- Made methods JsonRpc.Rpc() and JsonRpc.CreateSerializer() protected.
- Deprecated a number of instance Session methods in favour of the static counterparts.
- Removed property Session.Roles (which was a XenCenter-ism)
- Corrected the output of Session.get_record and the return type of Session.logout_subject_identifier
- Session.change_password(Session, string, string) is now static.
- Fields Session.Proxy, Session.Tag, Session.APIVersion were converted to properties.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
… /vm_rrd are already exposed.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
…rsion to 17 (LTS)

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@cloud.com>
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
…mporting the module.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
@kc284 kc284 added this pull request to the merge queue Apr 7, 2026
Merged via the queue into xapi-project:master with commit 4fba6ab Apr 7, 2026
16 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Apr 8, 2026
The commits in this PR are exactly the same as in PR #6988 , they
applied cleanly on this branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants