Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.77.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 1, 2023
1 parent 54ad32b commit db82889
Show file tree
Hide file tree
Showing 322 changed files with 14,565 additions and 7 deletions.
2 changes: 2 additions & 0 deletions platform/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This allows generated code to be indexed correctly
*.cs linguist-generated=false
3 changes: 3 additions & 0 deletions platform/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
obj/
bin/
debug/
17 changes: 17 additions & 0 deletions platform/CodatPlatform.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodatPlatform", "CodatPlatform\CodatPlatform.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}"
EndProject

Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
19 changes: 19 additions & 0 deletions platform/CodatPlatform/CodatPlatform.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Platform</PackageId>
<Version>0.1.0</Version>
<Authors>Codat</Authors>
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Include="../README.md" Pack="true" PackagePath="/"/>
<None Include="../docs/*" Pack="true" PackagePath="/docs"/>

<PackageReference Include="newtonsoft.json" Version="13.0.3" />
<PackageReference Include="nodatime" Version="3.1.9" />
</ItemGroup>
</Project>
86 changes: 86 additions & 0 deletions platform/CodatPlatform/CodatPlatformSDK.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace CodatPlatform
{
using CodatPlatform.Models.Shared;
using CodatPlatform.Utils;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using System;

public interface ICodatPlatformSDK
{
public ICompaniesSDK Companies { get; }
public IConnectionsSDK Connections { get; }
public IIntegrationsSDK Integrations { get; }
public IPushDataSDK PushData { get; }
public IRefreshDataSDK RefreshData { get; }
public ISettingsSDK Settings { get; }
public ISupplementalDataSDK SupplementalData { get; }
public IWebhooksSDK Webhooks { get; }
}

public class SDKConfig
{
}

public class CodatPlatformSDK: ICodatPlatformSDK
{
public SDKConfig Config { get; private set; }
public static List<string> ServerList = new List<string>()
{
"https://api.codat.io",
};

private const string _language = "csharp";
private const string _sdkVersion = "0.1.0";
private const string _sdkGenVersion = "2.91.4";
private const string _openapiDocVersion = "3.0.0";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
public ICompaniesSDK Companies { get; private set; }
public IConnectionsSDK Connections { get; private set; }
public IIntegrationsSDK Integrations { get; private set; }
public IPushDataSDK PushData { get; private set; }
public IRefreshDataSDK RefreshData { get; private set; }
public ISettingsSDK Settings { get; private set; }
public ISupplementalDataSDK SupplementalData { get; private set; }
public IWebhooksSDK Webhooks { get; private set; }

public CodatPlatformSDK(Security? security = null, string? serverUrl = null, ISpeakeasyHttpClient? client = null)
{
_serverUrl = serverUrl ?? CodatPlatformSDK.ServerList[0];

_defaultClient = new SpeakeasyHttpClient(client);
_securityClient = _defaultClient;

if(security != null)
{
_securityClient = SecuritySerializer.Apply(_defaultClient, security);
}

Config = new SDKConfig()
{
};

Companies = new CompaniesSDK(_defaultClient, _securityClient, _serverUrl, Config);
Connections = new ConnectionsSDK(_defaultClient, _securityClient, _serverUrl, Config);
Integrations = new IntegrationsSDK(_defaultClient, _securityClient, _serverUrl, Config);
PushData = new PushDataSDK(_defaultClient, _securityClient, _serverUrl, Config);
RefreshData = new RefreshDataSDK(_defaultClient, _securityClient, _serverUrl, Config);
Settings = new SettingsSDK(_defaultClient, _securityClient, _serverUrl, Config);
SupplementalData = new SupplementalDataSDK(_defaultClient, _securityClient, _serverUrl, Config);
Webhooks = new WebhooksSDK(_defaultClient, _securityClient, _serverUrl, Config);
}
}
}
Loading

0 comments on commit db82889

Please sign in to comment.