Skip to content

Commit

Permalink
Automated update by SDK Generator version:2.2.0 commit:f3d726d
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 23, 2024
1 parent 4eb150c commit d5bcda4
Show file tree
Hide file tree
Showing 1,309 changed files with 1,674 additions and 1,313 deletions.
10 changes: 5 additions & 5 deletions src/gen/Apideck.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{74B0746C-4E98-4E9A-A4BE-0CC6C8485935}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck.Test", "src\Apideck.Test\Apideck.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{74B0746C-4E98-4E9A-A4BE-0CC6C8485935}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{74B0746C-4E98-4E9A-A4BE-0CC6C8485935}.Debug|Any CPU.Build.0 = Debug|Any CPU
{74B0746C-4E98-4E9A-A4BE-0CC6C8485935}.Release|Any CPU.ActiveCfg = Release|Any CPU
{74B0746C-4E98-4E9A-A4BE-0CC6C8485935}.Release|Any CPU.Build.0 = Release|Any CPU
{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6E7E06BC-5FFF-4300-AABF-84E9F845E99B}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
91 changes: 91 additions & 0 deletions src/gen/docs/VaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Method | HTTP request | Description
[**ConnectionsDelete**](VaultApi.md#connectionsdelete) | **DELETE** /vault/connections/{unified_api}/{service_id} | Deletes a connection
[**ConnectionsImport**](VaultApi.md#connectionsimport) | **POST** /vault/connections/{unified_api}/{service_id}/import | Import connection
[**ConnectionsOne**](VaultApi.md#connectionsone) | **GET** /vault/connections/{unified_api}/{service_id} | Get connection
[**ConnectionsToken**](VaultApi.md#connectionstoken) | **POST** /vault/connections/{unified_api}/{service_id}/token | Authorize Access Token
[**ConnectionsUpdate**](VaultApi.md#connectionsupdate) | **PATCH** /vault/connections/{unified_api}/{service_id} | Update connection
[**ConsumerRequestCountsAll**](VaultApi.md#consumerrequestcountsall) | **GET** /vault/consumers/{consumer_id}/stats | Consumer request counts
[**ConsumersAdd**](VaultApi.md#consumersadd) | **POST** /vault/consumers | Create consumer
Expand Down Expand Up @@ -544,6 +545,96 @@ Name | Type | Description | Notes
- **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Connection | - |
| **400** | Bad Request | - |
| **401** | Unauthorized | - |
| **402** | Payment Required | - |
| **404** | The specified resource was not found | - |
| **422** | Unprocessable | - |
| **0** | Unexpected error | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

<a name="connectionstoken"></a>
# **ConnectionsToken**
> GetConnectionResponse ConnectionsToken (string serviceId, string unifiedApi, string consumerId = null, string appId = null, Object body = null)
Authorize Access Token

Triggers exchanging persisted connection credentials for an access token and store it in Vault. Currently supported for connections with the `client_credentials` or `password` OAuth grant type. Note: - Do not include any credentials in the request body. This operation does not persist changes, but only triggers the exchange of persisted connection credentials for an access token. - The access token will not be returned in the response. A 200 response code indicates the authorization was successful and that a valid access token was stored on the connection. - The access token will be used for subsequent API requests.

### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Apideck.Api;
using Apideck.Client;
using Apideck.Model;

namespace Example
{
public class ConnectionsTokenExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://unify.apideck.com";
// Configure API key authorization: apiKey
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new VaultApi(config);
var serviceId = pipedrive; // string | Service ID of the resource to return
var unifiedApi = crm; // string | Unified API
var consumerId = "consumerId_example"; // string | ID of the consumer which you want to get or push data from (optional)
var appId = dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX; // string | The ID of your Unify application (optional)
var body = null; // Object | (optional)
try
{
// Authorize Access Token
GetConnectionResponse result = apiInstance.ConnectionsToken(serviceId, unifiedApi, consumerId, appId, body);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling VaultApi.ConnectionsToken: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**serviceId** | **string**| Service ID of the resource to return |
**unifiedApi** | **string**| Unified API |
**consumerId** | **string**| ID of the consumer which you want to get or push data from | [optional]
**appId** | **string**| The ID of your Unify application | [optional]
**body** | **Object**| | [optional]

### Return type

[**GetConnectionResponse**](GetConnectionResponse.md)

### Authorization

[apiKey](../README.md#apiKey)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/AccountingApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/AtsApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/ConnectorApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/CrmApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/EcommerceApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/FileStorageApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/HrisApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/IssueTrackingApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/LeadApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/PosApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/SmsApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
18 changes: 17 additions & 1 deletion src/gen/src/Apideck.Test/Api/VaultApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down Expand Up @@ -147,6 +147,22 @@ public void ConnectionsOneTest()
//Assert.IsType<GetConnectionResponse>(response);
}

/// <summary>
/// Test ConnectionsToken
/// </summary>
[Fact]
public void ConnectionsTokenTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string serviceId = null;
//string unifiedApi = null;
//string consumerId = null;
//string appId = null;
//Object body = null;
//var response = instance.ConnectionsToken(serviceId, unifiedApi, consumerId, appId, body);
//Assert.IsType<GetConnectionResponse>(response);
}

/// <summary>
/// Test ConnectionsUpdate
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Api/WebhookApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/AccountingEventTypeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/AccountingLocationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ActivitiesFilterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ActivitiesSortTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ActivityAttendeeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ActivityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/AddressTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ApiResourceCoverageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
2 changes: 1 addition & 1 deletion src/gen/src/Apideck.Test/Model/ApiResourceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.3.2
* The version of the OpenAPI document: 10.3.3
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

Expand Down
Loading

0 comments on commit d5bcda4

Please sign in to comment.