Skip to content

Commit

Permalink
Merge pull request #216 from dvonthenen/audit-onprem-model
Browse files Browse the repository at this point in the history
Audit of OnPrem Model Classes
  • Loading branch information
CopperBeardy authored Feb 7, 2024
2 parents 785c101 + 077384e commit 3fb47cb
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Deepgram/Deepgram.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
<PropertyGroup>
<!-- Properties related to NuGet packaging: -->
<IsPackable>true</IsPackable>
<PackageId>Deepgram.Net.SDK</PackageId>
<Title>Deepgram SDK</Title>
<Company>Deepgram</Company>
<PackageId>Deepgram</PackageId>
<Title>Deepgram .NET SDK</Title>
<Description>SDK for communicating with the Deepgram APIs </Description>
<Summary>SDK for communicating with the Deepgram APIs </Summary>
<Authors>Deepgram</Authors>
<Authors>Deepgram .NET SDK Contributors</Authors>
<Copyright>2021 Deepgram</Copyright>
<PackageIcon>dg_logo.png</PackageIcon>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
Expand All @@ -23,7 +24,6 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/deepgram-devs/deepgram-dotnet-sdk</RepositoryUrl>
<PackageTags>speech-to-text,captions,speech-recognition,deepgram,dotnet</PackageTags>
<Version>4.0.0-alpha</Version>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
Expand Down
4 changes: 2 additions & 2 deletions Deepgram/Models/Authenticate/v1/DeepgramClientOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public class DeepgramClientOptions
/// no need to attach the protocol it will be added internally
/// </summary>

public string BaseAddress { get; set; } = "api.deepgram.com";
public string? BaseAddress { get; set; } = "api.deepgram.com";

/// <summary>
/// Api endpoint version
/// </summary>
public string APIVersion { get; set; } = "v1";
public string? APIVersion { get; set; } = "v1";


}
7 changes: 6 additions & 1 deletion Deepgram/Models/OnPrem/v1/CredentialResponse.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
namespace Deepgram.Models.OnPrem.v1;

public record CredentialResponse

{
/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("member")]
public Member? Member { get; set; }

/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("distribution_credentials")]
public DistributionCredentials? DistributionCredentials { get; set; }
}
6 changes: 5 additions & 1 deletion Deepgram/Models/OnPrem/v1/CredentialsResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
namespace Deepgram.Models.OnPrem.v1;

public record CredentialsResponse
{
/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("distribution_credentials")]
public IReadOnlyList<CredentialResponse> DistributionCredentials { get; set; }
public IReadOnlyList<CredentialResponse>? DistributionCredentials { get; set; }
}
19 changes: 17 additions & 2 deletions Deepgram/Models/OnPrem/v1/DistributionCredentials.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,33 @@

public record DistributionCredentials
{
/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("distribution_credentials_id")]
public string? DistributionCredentialsId { get; set; }

/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("provider")]
public string? Provider { get; set; }

/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("comment")]
public string? Comment { get; set; }

/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("scopes")]
public IReadOnlyList<string> Scopes { get; set; }
public IReadOnlyList<string>? Scopes { get; set; }

/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("created")]
public string? Created { get; set; }
public DateTime? Created { get; set; }
}
7 changes: 7 additions & 0 deletions Deepgram/Models/OnPrem/v1/Member.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
namespace Deepgram.Models.OnPrem.v1;

public record Member
{
/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("member_id")]
public string? MemberId { get; set; }

/// <summary>
/// TODO
/// </summary>
[JsonPropertyName("email")]
public string? Email { get; set; }
}

0 comments on commit 3fb47cb

Please sign in to comment.