-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for envVars and .env; read credentials file
- Loading branch information
1 parent
858c5d6
commit 7594ad9
Showing
9 changed files
with
212 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
namespace Mscc.GenerativeAI | ||
{ | ||
public class Credentials : ClientSecrets | ||
{ | ||
private string _projectId; | ||
|
||
public ClientSecrets Web { get; set; } | ||
public ClientSecrets Installed { get; set; } | ||
|
||
public string Account { get; set; } | ||
public string RefreshToken { get; set; } | ||
public string Type { get; set; } | ||
public string UniverseDomain { get; set; } | ||
|
||
public string ProjectId | ||
{ | ||
get => _projectId; | ||
set => _projectId = value; | ||
} | ||
|
||
public virtual string QuotaProjectId | ||
{ | ||
get => _projectId; | ||
set => _projectId = value; | ||
} | ||
} | ||
|
||
public class ClientSecrets | ||
{ | ||
public string ClientId { get; set; } | ||
public string ClientSecret { get; set; } | ||
public string[] RedirectUris { get; set; } | ||
public string AuthUri { get; set; } | ||
public string AuthProviderX509CertUrl { get; set; } | ||
public string TokenUri { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.