Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit of OnPrem Model Classes #216

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
davidvonthenen marked this conversation as resolved.
Show resolved Hide resolved
[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; }
davidvonthenen marked this conversation as resolved.
Show resolved Hide resolved
}
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>
davidvonthenen marked this conversation as resolved.
Show resolved Hide resolved
[JsonPropertyName("email")]
public string? Email { get; set; }
}
Loading