Skip to content

Commit

Permalink
Merge pull request #5587 from kc284/master
Browse files Browse the repository at this point in the history
Exposed system_list_methods in C# SDK. Correction to github workflow.
  • Loading branch information
danilo-delbusso authored Apr 29, 2024
2 parents 4db52ad + 5dad78b commit 2fba81d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/generate-and-build-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: SDK_Source_C
path: _build/install/default/xapi/sdk/c/*
path: |
_build/install/default/xapi/sdk/c/*
!_build/install/default/xapi/sdk/c/dune
- name: Store C# SDK source
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -67,7 +69,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: SDK_Artifacts_C
path: source/*
path: |
source/*
!source/src/*.o
build-csharp-sdk:
name: Build C# SDK
Expand Down
4 changes: 0 additions & 4 deletions ocaml/doc/basics.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
layout: doc
---

# API Basics

This document defines the XenServer Management API - an interface for remotely
Expand Down
4 changes: 0 additions & 4 deletions ocaml/doc/vm-lifecycle.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
layout: doc
---

# VM Lifecycle

The following diagram shows the states that a VM can be in
Expand Down
4 changes: 0 additions & 4 deletions ocaml/doc/wire-protocol.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
layout: doc
---

# Wire Protocol for Remote API Calls

API calls are sent over a network to a Xen-enabled host using an RPC protocol.
Expand Down
4 changes: 0 additions & 4 deletions ocaml/idl/autogen/api-ref-autogen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
layout: doc
---

# API Reference

Version **@xapi-version@**
Expand Down
5 changes: 5 additions & 0 deletions ocaml/sdk-gen/csharp/autogen/src/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ public Dictionary<string, string> RequestHeaders

#endregion

public string[] GetSystemMethods()
{
return JsonRpcClient.system_list_methods();
}

public static Session get_record(Session session, string _session)
{
Session newSession = new Session(session.Url) { opaque_ref = _session };
Expand Down
7 changes: 7 additions & 0 deletions ocaml/sdk-gen/csharp/templates/JsonRpcClient.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ namespace XenAPI
{
public partial class JsonRpcClient
{
public string[] system_list_methods()
{
var converters = new List<JsonConverter> { };
var serializer = CreateSerializer(converters);
return Rpc<string[]>("system.listMethods", new JArray(), serializer);
}

public Event event_get_record(string session, string _event)
{
var converters = new List<JsonConverter> {};
Expand Down

0 comments on commit 2fba81d

Please sign in to comment.