Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit a80da42

Browse files
committed
Release 0.3.3.
* Regenerated classes using latest swagger-codegen to fix bugs with optional parameters. * Updated dependencies to latest versions. Squashed commit of the following: commit 7d4f12e Merge: b039df6 4aa5b9b Author: Johan Forsell <[email protected]> Date: Mon Oct 10 16:01:28 2016 +0100 Merge branch 'upstream-master' into upstream-develop commit b039df6 Author: Johan Forsell <[email protected]> Date: Mon Oct 10 14:40:59 2016 +0100 Add reference to new dependency System.ComponentModel.DataAnnotations in test project. commit ff29f6d Author: Johan Forsell <[email protected]> Date: Mon Oct 10 14:33:44 2016 +0100 Set version to 0.3.3. commit 0297b2a Author: Johan Forsell <[email protected]> Date: Mon Oct 10 14:28:10 2016 +0100 Update dependencies. commit e1a732f Author: Johan Forsell <[email protected]> Date: Mon Oct 10 14:08:41 2016 +0100 Generate code using latest swagger-codegen to fix issue described in #23 commit 7432ef9 Author: Johan Forsell <[email protected]> Date: Tue Sep 27 16:41:07 2016 +0100 Upping version. commit 122e0a3 Author: Johan Forsell <[email protected]> Date: Tue Sep 27 16:38:42 2016 +0100 Use V2 message post with user auth, V3 with app auth. commit 6674145 Merge: 779ef14 a3c91fa Author: Johan Forsell <[email protected]> Date: Mon Sep 19 11:11:46 2016 +0100 Merge branch 'upstream-master' into upstream-develop commit 779ef14 Author: Johan Forsell <[email protected]> Date: Mon Sep 19 10:31:24 2016 +0100 v0.3.1 in README commit c2bc7f7 Author: Johan Forsell <[email protected]> Date: Mon Sep 19 10:11:16 2016 +0100 Add method to get user details by user ID. commit 2413bbe Author: Johan Forsell <[email protected]> Date: Fri Sep 16 16:03:33 2016 +0100 Remove binaries from repo. commit deb8e0c Author: Johan Forsell <[email protected]> Date: Thu Sep 15 17:19:13 2016 +0100 OBO-enabled agentAPI together with S41 podAPI with new method to get stream info. commit 5c5e440 Author: Johan Forsell <[email protected]> Date: Tue Sep 13 16:12:20 2016 +0100 Make CreateDatafeed and CreateFirehose methods public and introduce a method to listen using the datafeed/firehose ID. commit 8ff5e62 Author: Johan Forsell <[email protected]> Date: Tue Sep 13 16:05:27 2016 +0100 Fix app session manager unit tests. commit 1e176ec Merge: 880137e cc6649b Author: Johan Forsell <[email protected]> Date: Tue Sep 13 15:27:25 2016 +0100 Merge branch 'develop' into upstream-develop commit cc6649b Author: Johan Forsell <[email protected]> Date: Tue Sep 13 15:21:36 2016 +0100 Fix OBO auth. commit 880137e Author: Johan Forsell <[email protected]> Date: Tue Sep 6 10:04:40 2016 +0100 Release v0.3 in README. commit 9efa961 Merge: 8ad3956 57448fb Author: jforsell <[email protected]> Date: Mon Sep 5 17:24:51 2016 +0100 Merge pull request #20 from maoo/develop Update .travis.yml commit 57448fb Author: Maurizio Pillitu <[email protected]> Date: Fri Sep 2 15:29:01 2016 +0200 Update .travis.yml fixed typo, issue #20 commit 8ad3956 Author: Maurizio Pillitu <[email protected]> Date: Fri Aug 19 19:30:06 2016 +0200 Update README.md fixed versioneye badge image commit dd005c7 Author: Maurizio Pillitu <[email protected]> Date: Fri Aug 19 19:29:20 2016 +0200 Update README.md Added versioneye badge commit 65c8859 Author: Maurizio Pillitu <[email protected]> Date: Fri Aug 19 19:23:39 2016 +0200 Update .travis.yml using release-to-nuget.sh to automate release on nuget.org commit 7cfef6d Author: Johan Forsell <[email protected]> Date: Fri Aug 19 15:20:22 2016 +0100 Add Visual Studio xunit runner, and tests for AppSessionManager. commit 996c0da Author: Johan Forsell <[email protected]> Date: Fri Aug 19 14:55:38 2016 +0100 Move back to V2StreamSidMessageCreatePost as V3StreamSidMessageCreatePost has not been released yet. commit 5c5f0d8 Author: Johan Forsell <[email protected]> Date: Thu Aug 18 12:22:12 2016 +0100 Rename SessionManager to UserSessionManager as there is now an AppSessionManager (breaking change). commit 7a55c9b Merge: 1f348e1 82a529b Author: jforsell <[email protected]> Date: Thu Aug 18 10:59:57 2016 +0100 Merge pull request #16 from malaysf/develop Update to use the new application authentication APIs commit 82a529b Author: Malay Shah <[email protected]> Date: Wed Aug 17 18:04:33 2016 -0700 updated code to use the new app authentication apis commit 3be4c82 Author: Malay Shah <[email protected]> Date: Wed Aug 17 18:01:13 2016 -0700 new generated files commit 06db25e Author: Malay Shah <[email protected]> Date: Wed Aug 17 18:00:18 2016 -0700 new yaml files commit 1cb9ff1 Author: Malay Shah <[email protected]> Date: Wed Aug 17 17:59:55 2016 -0700 delete the old yaml files commit 1f348e1 Author: Johan Forsell <[email protected]> Date: Tue Aug 2 14:09:28 2016 +0100 Add Listening property to DatafeedApi and FirehoseApi. commit 8dd8ebd Merge: 967bbfc e130118 Author: jforsell <[email protected]> Date: Mon Aug 1 16:54:36 2016 +0100 Merge pull request #15 from jpfigueiras/develop Added support for a continous feed of connection request updates. commit e130118 Author: Joao Figueiras <[email protected]> Date: Mon Aug 1 16:50:36 2016 +0100 Added proj file and changed field to ave leading "_". commit 6ef39f8 Author: Joao Figueiras <[email protected]> Date: Mon Aug 1 16:19:36 2016 +0100 Added support for a continous feed of connection request updates. commit 967bbfc Author: Johan Forsell <[email protected]> Date: Fri Jul 29 17:06:48 2016 +0100 Move using inside namespace. commit 41a0f6c Author: Johan Forsell <[email protected]> Date: Tue Jul 26 15:55:34 2016 +0100 Make UploadAttachment using stream public. commit 1f636fb Author: Johan Forsell <[email protected]> Date: Tue Jul 12 14:01:19 2016 +0100 Add factory method to create ConnectionApi. commit bb0ace3 Author: Johan Forsell <[email protected]> Date: Tue Jul 12 13:35:10 2016 +0100 Add ConnectionApi. commit d89f60b Author: Johan Forsell <[email protected]> Date: Tue Jul 12 12:09:58 2016 +0100 Add 1.40.0-20160711 version of the Swagger spec, including the generated code. commit 87c8327 Author: Johan Forsell <[email protected]> Date: Wed Jul 6 14:01:33 2016 +0100 Break out common functionality of DatafeedApi and FirehoseApi into a superclass. commit 871690b Merge: 8227db0 8dbd25c Author: jforsell <[email protected]> Date: Wed Jul 6 10:12:03 2016 +0100 Merge pull request #11 from jforsell/firehose_api Firehose API commit 8227db0 Author: Johan Forsell <[email protected]> Date: Wed Jul 6 10:09:34 2016 +0100 Need to cast to V2Message when logging. commit 0c17dae Author: Johan Forsell <[email protected]> Date: Wed Jul 6 09:35:53 2016 +0100 Adding some verbose logging. commit 8dbd25c Author: Johan Forsell <[email protected]> Date: Wed Jun 29 10:26:41 2016 +0100 Add FirehoseApi. commit 5c9f00f Author: Johan Forsell <[email protected]> Date: Wed Jun 29 10:10:35 2016 +0100 Refactoring datafeed loop. commit 740e9a8 Author: Johan Forsell <[email protected]> Date: Wed Jun 29 10:03:18 2016 +0100 Add back to normal logging message in data feed. commit 123eb5f Author: Johan Forsell <[email protected]> Date: Tue Jun 28 16:19:45 2016 +0100 Use trace source SymphonyOSS.RestApiClient, and retry on datafeed read error. commit cfec4f1 Author: Johan Forsell <[email protected]> Date: Tue Jun 28 14:40:02 2016 +0100 Add line break method to the message builder. commit a4feb49 Author: Johan Forsell <[email protected]> Date: Tue Jun 28 11:28:42 2016 +0100 Upping version to 0.3. commit a1824c7 Author: Johan Forsell <[email protected]> Date: Tue Jun 28 11:27:32 2016 +0100 Add method to construct a UserApi instance. commit e4fe6ce Author: Johan Forsell <[email protected]> Date: Tue Jun 28 10:45:43 2016 +0100 Updating README. commit f928fc8 Author: Johan Forsell <[email protected]> Date: Tue Jun 28 10:40:07 2016 +0100 Adding licence headers to two unit tests files that were missing them. commit 131e2bb Merge: db24aa2 65c57b4 Author: jforsell <[email protected]> Date: Tue Jun 28 10:35:47 2016 +0100 Merge pull request #10 from jforsell/develop Adding plain text parsing of messageML. commit 65c57b4 Merge: f39cf3c db24aa2 Author: Johan Forsell <[email protected]> Date: Tue Jun 28 10:31:42 2016 +0100 Merge branch 'develop' of https://github.com/symphonyoss/RestApiClient into develop commit db24aa2 Merge: 809cbe5 d14fd7a Author: jforsell <[email protected]> Date: Tue Jun 28 10:31:26 2016 +0100 Merge pull request #9 from jforsell/user_api Add UserApi. commit f39cf3c Author: Johan Forsell <[email protected]> Date: Tue Jun 28 10:28:39 2016 +0100 Adding plain text parsing of messageML. commit 809cbe5 Author: Johan Forsell <[email protected]> Date: Tue Jun 21 12:34:13 2016 +0100 Fixing UtilApi and RoomMembershipApi tests. commit d14fd7a Author: Johan Forsell <[email protected]> Date: Tue Jun 21 12:27:59 2016 +0100 Add UserApi. commit 575cb79 Author: Johan Forsell <[email protected]> Date: Tue Jun 21 11:16:42 2016 +0100 Adding README to solution. commit ef8221f Merge: e4a6347 839903b Author: jforsell <[email protected]> Date: Tue Jun 21 09:50:11 2016 +0100 Merge pull request #8 from jpfigueiras/develop Added RoomMembershipApi. commit 839903b Author: Joao Figueiras <[email protected]> Date: Tue Jun 21 09:28:45 2016 +0100 Changed long to var in test class. commit 388086a Author: Joao Figueiras <[email protected]> Date: Tue Jun 21 09:13:44 2016 +0100 Made user id required for methods inside RoomMembershipApi. commit 65443d4 Author: Joao Figueiras <[email protected]> Date: Mon Jun 20 17:09:09 2016 +0100 Fix issue with namespace. commit e4a6347 Author: Johan Forsell <[email protected]> Date: Mon Jun 20 17:02:18 2016 +0100 Adding downloading attachment to example. commit 28f6e91 Author: Joao Figueiras <[email protected]> Date: Mon Jun 20 16:59:19 2016 +0100 Updating project file. commit 5090edb Author: Johan Forsell <[email protected]> Date: Mon Jun 20 16:53:24 2016 +0100 Decode downloaded base64 attachment. commit 113c959 Author: Johan Forsell <[email protected]> Date: Mon Jun 20 16:52:21 2016 +0100 Don't throw exception if registering same type twice. commit 623b83c Merge: 1a1a88f 7d596cd Author: Joao Figueiras <[email protected]> Date: Mon Jun 20 16:47:53 2016 +0100 Merge remote-tracking branch 'upstream/develop' into develop commit 1a1a88f Author: Joao Figueiras <[email protected]> Date: Mon Jun 20 16:47:43 2016 +0100 Added RoomMembershipApi and corresponding tests. Also added some some high level comments to other apis. commit 7d596cd Author: Johan Forsell <[email protected]> Date: Mon Jun 20 16:11:44 2016 +0100 Adding SecurityApi tests, and renaming a couple of SecurityApi methods for clarity. commit 1f4b011 Author: Johan Forsell <[email protected]> Date: Mon Jun 20 15:48:56 2016 +0100 Registering V2Message for custom deserialization. commit 384547b Merge: c1e22be d54af34 Author: jforsell <[email protected]> Date: Mon Jun 20 15:35:22 2016 +0100 Merge pull request #5 from jpfigueiras/develop Updating some api methods version V1, to the corresponding V2 methods. commit c1e22be Merge: a3cbb1e 9ae4fb7 Author: jforsell <[email protected]> Date: Mon Jun 20 15:33:50 2016 +0100 Merge pull request #7 from jforsell/json-subtypes SecurityApi and Json subtypes commit 9ae4fb7 Author: Johan Forsell <[email protected]> Date: Mon Jun 20 15:27:50 2016 +0100 Adding unit test class for json work. commit b43682e Merge: 4c0aed7 a3cbb1e Author: Johan Forsell <[email protected]> Date: Mon Jun 20 15:20:28 2016 +0100 Merge remote-tracking branch 'upstream/develop' into json-subtypes commit 4c0aed7 Author: Johan Forsell <[email protected]> Date: Mon Jun 20 15:15:51 2016 +0100 Support for polymorphism (V2BaseMessage and V2Message) using new Json attributes. commit d54af34 Author: Joao Figueiras <[email protected]> Date: Mon Jun 20 11:23:41 2016 +0100 Adding project file with new UtilApi. commit 08da891 Author: Joao Figueiras <[email protected]> Date: Mon Jun 20 11:11:51 2016 +0100 Added UtilApi. commit e709665 Author: Joao Figueiras <[email protected]> Date: Fri Jun 17 16:10:33 2016 +0100 Fixed tests using new V2 class types. V2Message has as base class V2BaseMessage but they are not sharing common properties at moment, this is duplicated across both classes. So when creating a V2Message, the base message properties that are common will be null and the message needs to be treated explicitly as a V2Message to access them. commit 6adab42 Merge: 041d82f a3cbb1e Author: Joao Figueiras <[email protected]> Date: Fri Jun 17 13:49:01 2016 +0100 Merge remote-tracking branch 'upstream/develop' into develop commit 041d82f Author: Joao Figueiras <[email protected]> Date: Fri Jun 17 13:44:56 2016 +0100 Fixed some class types for V2, and added test for new method SearchRoom. commit 2cac95f Author: Joao Figueiras <[email protected]> Date: Fri Jun 17 11:51:01 2016 +0100 Updating some api methods version V1, to the corresponding V2 methods. commit a3cbb1e Merge: fbdbd2a e568ee4 Author: jpfigueiras <[email protected]> Date: Fri Jun 17 11:43:39 2016 +0100 Merge pull request #4 from jforsell/unit_test_project Changing type of test project to unit test project. commit e568ee4 Author: Johan Forsell <[email protected]> Date: Fri Jun 17 11:03:13 2016 +0100 Changing type of test project to unit test project. commit f638e52 Author: Johan Forsell <[email protected]> Date: Fri Jun 17 11:03:13 2016 +0100 Changing type of test project to unit test project. commit f0c5ef2 Author: Johan Forsell <[email protected]> Date: Fri Jun 17 11:02:38 2016 +0100 Fixing misnaming commit fbdbd2a Merge: 91d2928 ae70254 Author: jforsell <[email protected]> Date: Fri Jun 17 10:09:35 2016 +0100 Merge pull request #3 from jpfigueiras/develop Making use of the several apis instead of using concrete types. commit f514750 Author: Johan Forsell <[email protected]> Date: Fri Jun 17 10:05:33 2016 +0100 Adding SecurityApi (need to clean up methods). commit ae70254 Author: Joao Figueiras <[email protected]> Date: Fri Jun 17 09:47:00 2016 +0100 Making use of the several apis instead of using concrete types. commit 91d2928 Author: Johan Forsell <[email protected]> Date: Thu Jun 16 12:56:54 2016 +0100 Adding scripts to solution. commit a774eb5 Author: Johan Forsell <[email protected]> Date: Thu Jun 16 12:21:59 2016 +0100 Updating NOTICE to mention files that do not have license headers. commit fc3beae Author: Johan Forsell <[email protected]> Date: Thu Jun 16 12:14:01 2016 +0100 Adding license to package.bat. commit d560d72 Author: Johan Forsell <[email protected]> Date: Thu Jun 16 12:09:45 2016 +0100 New script for prepending the license to generated .CS files. Ran the script once. commit 9857594 Author: Johan Forsell <[email protected]> Date: Thu Jun 16 10:04:36 2016 +0100 Adding licence header to two files that were missing it - see #1 commit d6e2423 Author: Johan Forsell <[email protected]> Date: Thu Jun 16 09:14:20 2016 +0100 As a workaround for not currently being able to add attachments as streams (see restsharp/RestSharp#70 ) - the attachment is added as a byte array. commit 3842338 Author: Johan Forsell <[email protected]> Date: Wed Jun 15 09:51:56 2016 +0100 Updating README for v0.2. commit 7bff7ed Author: Johan Forsell <[email protected]> Date: Wed Jun 15 09:45:26 2016 +0100 Adding factory method to construct AttachmentsApi. commit bd189a7 Author: Johan Forsell <[email protected]> Date: Wed Jun 15 09:08:13 2016 +0100 Fixing name of test assembly (renaming from AgentApiClient to RestApiClient). commit f7b2720 Author: Johan Forsell <[email protected]> Date: Wed Jun 15 09:05:14 2016 +0100 AttachmentsApi for uploading/downloading attachments. commit 758be0c Author: Johan Forsell <[email protected]> Date: Wed Jun 15 08:55:13 2016 +0100 Use V2 method for posting messages as it supports attachments (breaking change). commit 054240d Author: Johan Forsell <[email protected]> Date: Wed Jun 15 08:53:26 2016 +0100 Setting version number to 0.2.0.
1 parent 4aa5b9b commit a80da42

File tree

180 files changed

+8708
-3462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+8708
-3462
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ Contributions are accepted via GitHub pull requests. All contributors must be co
8383

8484
## Release Notes
8585

86+
Release 0.3.3 (October 10, 2016):
87+
88+
* Regenerated classes using latest swagger-codegen to fix bugs with optional parameters.
89+
* Updated dependencies to latest versions.
90+
8691
Release 0.3.2 (September 27, 2016):
8792

8893
* Support for sending messages using both normal and on-behalf-of authentication.

src/SymphonyOSS.RestApiClient.Generated/OpenApi/AgentApi/Api/AttachmentsApi.cs

+83-35
Large diffs are not rendered by default.

src/SymphonyOSS.RestApiClient.Generated/OpenApi/AgentApi/Api/DatafeedApi.cs

+133-83
Large diffs are not rendered by default.

src/SymphonyOSS.RestApiClient.Generated/OpenApi/AgentApi/Api/FirehoseApi.cs

+133-83
Large diffs are not rendered by default.

src/SymphonyOSS.RestApiClient.Generated/OpenApi/AgentApi/Api/MessagesApi.cs

+227-171
Large diffs are not rendered by default.

src/SymphonyOSS.RestApiClient.Generated/OpenApi/AgentApi/Api/ShareApi.cs

+87-39
Large diffs are not rendered by default.

src/SymphonyOSS.RestApiClient.Generated/OpenApi/AgentApi/Api/SystemApi.cs

+65-19
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,28 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
/*
18+
* Agent API
19+
*
20+
* This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined to be atomic, ie will succeed in their entirety or fail and have changed nothing. - If it returns a 40X status then it will have sent no message to any stream even if a request to aome subset of the requested streams would have succeeded. - If this contract cannot be met for any reason then this is an error and the response code will be 50X. - MessageML is a markup language for messages. See reference here: https://developers.symphony.com/documentation/message_format_reference
21+
*
22+
* OpenAPI spec version: 1.38.0
23+
*
24+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
25+
*
26+
* Licensed under the Apache License, Version 2.0 (the "License");
27+
* you may not use this file except in compliance with the License.
28+
* You may obtain a copy of the License at
29+
*
30+
* http://www.apache.org/licenses/LICENSE-2.0
31+
*
32+
* Unless required by applicable law or agreed to in writing, software
33+
* distributed under the License is distributed on an "AS IS" BASIS,
34+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35+
* See the License for the specific language governing permissions and
36+
* limitations under the License.
37+
*/
38+
1739
using System;
1840
using System.Collections.Generic;
1941
using System.Collections.ObjectModel;
@@ -27,14 +49,14 @@ namespace SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Api
2749
/// <summary>
2850
/// Represents a collection of functions to interact with the API endpoints
2951
/// </summary>
30-
public interface ISystemApi
52+
public interface ISystemApi : IApiAccessor
3153
{
3254
#region Synchronous Operations
3355
/// <summary>
3456
/// Checks the health of the Agent.
3557
/// </summary>
3658
/// <remarks>
37-
/// Used to validate the configuration of the agent.\nMakes a request to the HealthCheck on the Symphony cloud.\nMakes a request to the HealthCheck on the Key Manager service.\n
59+
/// Used to validate the configuration of the agent. Makes a request to the HealthCheck on the Symphony cloud. Makes a request to the HealthCheck on the Key Manager service.
3860
/// </remarks>
3961
/// <exception cref="SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ApiException">Thrown when fails to make API call</exception>
4062
/// <returns>V1HealthCheckResponse</returns>
@@ -44,7 +66,7 @@ public interface ISystemApi
4466
/// Checks the health of the Agent.
4567
/// </summary>
4668
/// <remarks>
47-
/// Used to validate the configuration of the agent.\nMakes a request to the HealthCheck on the Symphony cloud.\nMakes a request to the HealthCheck on the Key Manager service.\n
69+
/// Used to validate the configuration of the agent. Makes a request to the HealthCheck on the Symphony cloud. Makes a request to the HealthCheck on the Key Manager service.
4870
/// </remarks>
4971
/// <exception cref="SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ApiException">Thrown when fails to make API call</exception>
5072
/// <returns>ApiResponse of V1HealthCheckResponse</returns>
@@ -55,7 +77,7 @@ public interface ISystemApi
5577
/// Checks the health of the Agent.
5678
/// </summary>
5779
/// <remarks>
58-
/// Used to validate the configuration of the agent.\nMakes a request to the HealthCheck on the Symphony cloud.\nMakes a request to the HealthCheck on the Key Manager service.\n
80+
/// Used to validate the configuration of the agent. Makes a request to the HealthCheck on the Symphony cloud. Makes a request to the HealthCheck on the Key Manager service.
5981
/// </remarks>
6082
/// <exception cref="SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ApiException">Thrown when fails to make API call</exception>
6183
/// <returns>Task of V1HealthCheckResponse</returns>
@@ -65,7 +87,7 @@ public interface ISystemApi
6587
/// Checks the health of the Agent.
6688
/// </summary>
6789
/// <remarks>
68-
/// Used to validate the configuration of the agent.\nMakes a request to the HealthCheck on the Symphony cloud.\nMakes a request to the HealthCheck on the Key Manager service.\n
90+
/// Used to validate the configuration of the agent. Makes a request to the HealthCheck on the Symphony cloud. Makes a request to the HealthCheck on the Key Manager service.
6991
/// </remarks>
7092
/// <exception cref="SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ApiException">Thrown when fails to make API call</exception>
7193
/// <returns>Task of ApiResponse (V1HealthCheckResponse)</returns>
@@ -76,8 +98,10 @@ public interface ISystemApi
7698
/// <summary>
7799
/// Represents a collection of functions to interact with the API endpoints
78100
/// </summary>
79-
public class SystemApi : ISystemApi
101+
public partial class SystemApi : ISystemApi
80102
{
103+
private SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
104+
81105
/// <summary>
82106
/// Initializes a new instance of the <see cref="SystemApi"/> class.
83107
/// </summary>
@@ -86,6 +110,8 @@ public SystemApi(String basePath)
86110
{
87111
this.Configuration = new Configuration(new ApiClient(basePath));
88112

113+
ExceptionFactory = SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.Configuration.DefaultExceptionFactory;
114+
89115
// ensure API client has configuration ready
90116
if (Configuration.ApiClient.Configuration == null)
91117
{
@@ -106,6 +132,8 @@ public SystemApi(Configuration configuration = null)
106132
else
107133
this.Configuration = configuration;
108134

135+
ExceptionFactory = SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.Configuration.DefaultExceptionFactory;
136+
109137
// ensure API client has configuration ready
110138
if (Configuration.ApiClient.Configuration == null)
111139
{
@@ -126,7 +154,7 @@ public String GetBasePath()
126154
/// Sets the base path of the API client.
127155
/// </summary>
128156
/// <value>The base path</value>
129-
[Obsolete("SetBasePath is deprecated, please do 'Configuraiton.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
157+
[Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
130158
public void SetBasePath(String basePath)
131159
{
132160
// do nothing
@@ -138,6 +166,22 @@ public void SetBasePath(String basePath)
138166
/// <value>An instance of the Configuration</value>
139167
public Configuration Configuration {get; set;}
140168

169+
/// <summary>
170+
/// Provides a factory method hook for the creation of exceptions.
171+
/// </summary>
172+
public SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ExceptionFactory ExceptionFactory
173+
{
174+
get
175+
{
176+
if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
177+
{
178+
throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
179+
}
180+
return _exceptionFactory;
181+
}
182+
set { _exceptionFactory = value; }
183+
}
184+
141185
/// <summary>
142186
/// Gets the default header.
143187
/// </summary>
@@ -161,7 +205,7 @@ public void AddDefaultHeader(string key, string value)
161205
}
162206

163207
/// <summary>
164-
/// Checks the health of the Agent. Used to validate the configuration of the agent.\nMakes a request to the HealthCheck on the Symphony cloud.\nMakes a request to the HealthCheck on the Key Manager service.\n
208+
/// Checks the health of the Agent. Used to validate the configuration of the agent. Makes a request to the HealthCheck on the Symphony cloud. Makes a request to the HealthCheck on the Key Manager service.
165209
/// </summary>
166210
/// <exception cref="SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ApiException">Thrown when fails to make API call</exception>
167211
/// <returns>V1HealthCheckResponse</returns>
@@ -172,7 +216,7 @@ public V1HealthCheckResponse V1HealthCheckGet ()
172216
}
173217

174218
/// <summary>
175-
/// Checks the health of the Agent. Used to validate the configuration of the agent.\nMakes a request to the HealthCheck on the Symphony cloud.\nMakes a request to the HealthCheck on the Key Manager service.\n
219+
/// Checks the health of the Agent. Used to validate the configuration of the agent. Makes a request to the HealthCheck on the Symphony cloud. Makes a request to the HealthCheck on the Key Manager service.
176220
/// </summary>
177221
/// <exception cref="SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ApiException">Thrown when fails to make API call</exception>
178222
/// <returns>ApiResponse of V1HealthCheckResponse</returns>
@@ -212,10 +256,11 @@ public ApiResponse< V1HealthCheckResponse > V1HealthCheckGetWithHttpInfo ()
212256

213257
int localVarStatusCode = (int) localVarResponse.StatusCode;
214258

215-
if (localVarStatusCode >= 400)
216-
throw new ApiException (localVarStatusCode, "Error calling V1HealthCheckGet: " + localVarResponse.Content, localVarResponse.Content);
217-
else if (localVarStatusCode == 0)
218-
throw new ApiException (localVarStatusCode, "Error calling V1HealthCheckGet: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
259+
if (ExceptionFactory != null)
260+
{
261+
Exception exception = ExceptionFactory("V1HealthCheckGet", localVarResponse);
262+
if (exception != null) throw exception;
263+
}
219264

220265
return new ApiResponse<V1HealthCheckResponse>(localVarStatusCode,
221266
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
@@ -224,7 +269,7 @@ public ApiResponse< V1HealthCheckResponse > V1HealthCheckGetWithHttpInfo ()
224269
}
225270

226271
/// <summary>
227-
/// Checks the health of the Agent. Used to validate the configuration of the agent.\nMakes a request to the HealthCheck on the Symphony cloud.\nMakes a request to the HealthCheck on the Key Manager service.\n
272+
/// Checks the health of the Agent. Used to validate the configuration of the agent. Makes a request to the HealthCheck on the Symphony cloud. Makes a request to the HealthCheck on the Key Manager service.
228273
/// </summary>
229274
/// <exception cref="SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ApiException">Thrown when fails to make API call</exception>
230275
/// <returns>Task of V1HealthCheckResponse</returns>
@@ -236,7 +281,7 @@ public async System.Threading.Tasks.Task<V1HealthCheckResponse> V1HealthCheckGet
236281
}
237282

238283
/// <summary>
239-
/// Checks the health of the Agent. Used to validate the configuration of the agent.\nMakes a request to the HealthCheck on the Symphony cloud.\nMakes a request to the HealthCheck on the Key Manager service.\n
284+
/// Checks the health of the Agent. Used to validate the configuration of the agent. Makes a request to the HealthCheck on the Symphony cloud. Makes a request to the HealthCheck on the Key Manager service.
240285
/// </summary>
241286
/// <exception cref="SymphonyOSS.RestApiClient.Generated.OpenApi.AgentApi.Client.ApiException">Thrown when fails to make API call</exception>
242287
/// <returns>Task of ApiResponse (V1HealthCheckResponse)</returns>
@@ -276,10 +321,11 @@ public async System.Threading.Tasks.Task<ApiResponse<V1HealthCheckResponse>> V1H
276321

277322
int localVarStatusCode = (int) localVarResponse.StatusCode;
278323

279-
if (localVarStatusCode >= 400)
280-
throw new ApiException (localVarStatusCode, "Error calling V1HealthCheckGet: " + localVarResponse.Content, localVarResponse.Content);
281-
else if (localVarStatusCode == 0)
282-
throw new ApiException (localVarStatusCode, "Error calling V1HealthCheckGet: " + localVarResponse.ErrorMessage, localVarResponse.ErrorMessage);
324+
if (ExceptionFactory != null)
325+
{
326+
Exception exception = ExceptionFactory("V1HealthCheckGet", localVarResponse);
327+
if (exception != null) throw exception;
328+
}
283329

284330
return new ApiResponse<V1HealthCheckResponse>(localVarStatusCode,
285331
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),

0 commit comments

Comments
 (0)