mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
[feat]: Implement Actions OIDC Client (#2828)
implement actions OIDC client Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com>
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Octokit
|
||||
Active,
|
||||
|
||||
/// <summary>
|
||||
/// Package version whic is deleted
|
||||
/// Package version which is deleted
|
||||
/// </summary>
|
||||
[Parameter(Value = "deleted")]
|
||||
Deleted
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class OrganizationOidcSubjectClaimRequest
|
||||
{
|
||||
public OrganizationOidcSubjectClaimRequest()
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OrganizationOidcSubjectClaimRequest"/> class
|
||||
/// </summary>
|
||||
/// <param name="includeClaimKeys">Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.</param>
|
||||
public OrganizationOidcSubjectClaimRequest(List<string> includeClaimKeys)
|
||||
{
|
||||
this.IncludeClaimKeys = includeClaimKeys;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
|
||||
/// </summary>
|
||||
public List<string> IncludeClaimKeys { get; set; }
|
||||
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture,
|
||||
"OrganizationOidcSubjectClaimRequest: IncludeClaimKeys {0}", IncludeClaimKeys);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class RepositoryOidcSubjectClaimRequest
|
||||
{
|
||||
public RepositoryOidcSubjectClaimRequest()
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="RepositoryOidcSubjectClaimRequest"/> class
|
||||
/// </summary>
|
||||
/// <param name="useDefault">Whether to use the default template or not. If true, the IncludeClaimKeys field is ignored.</param>
|
||||
/// <param name="includeClaimKeys">Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.</param>
|
||||
public RepositoryOidcSubjectClaimRequest(bool useDefault, List<string> includeClaimKeys)
|
||||
{
|
||||
this.UseDefault = useDefault;
|
||||
this.IncludeClaimKeys = includeClaimKeys;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Whether to use the default template or not. If true, the IncludeClaimKeys field is ignored.
|
||||
/// </summary>
|
||||
public bool UseDefault { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
|
||||
/// </summary>
|
||||
public List<string> IncludeClaimKeys { get; set; }
|
||||
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture,
|
||||
"RepositoryOidcSubjectClaimRequest: UseDefault: {0} IncludeClaimKeys {1}", this.UseDefault, this.IncludeClaimKeys);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class OrganizationOidcSubjectClaim
|
||||
{
|
||||
public OrganizationOidcSubjectClaim()
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OrganizationOidcSubjectClaim"/> class
|
||||
/// </summary>
|
||||
/// <param name="includeClaimKeys">Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.</param>
|
||||
public OrganizationOidcSubjectClaim(List<string> includeClaimKeys)
|
||||
{
|
||||
this.IncludeClaimKeys = includeClaimKeys;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
|
||||
/// </summary>
|
||||
public IReadOnlyList<string> IncludeClaimKeys { get; protected set; }
|
||||
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture,
|
||||
"OrganizationOidcSubjectClaimResponse: IncludeClaimKeys {0}", IncludeClaimKeys);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class RepositoryOidcSubjectClaim
|
||||
{
|
||||
public RepositoryOidcSubjectClaim()
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="RepositoryOidcSubjectClaim"/> class
|
||||
/// </summary>
|
||||
/// <param name="useDefault">Whether to use the default template or not. If true, the IncludeClaimKeys field is ignored.</param>
|
||||
/// <param name="includeClaimKeys">Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.</param>
|
||||
public RepositoryOidcSubjectClaim(bool useDefault, List<string> includeClaimKeys)
|
||||
{
|
||||
this.UseDefault = useDefault;
|
||||
this.IncludeClaimKeys = includeClaimKeys;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Whether to use the default template or not. If true, the IncludeClaimKeys field is ignored.
|
||||
/// </summary>
|
||||
public bool UseDefault { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores.
|
||||
/// </summary>
|
||||
public IReadOnlyList<string> IncludeClaimKeys { get; protected set; }
|
||||
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture,
|
||||
"RepositoryOidcSubjectClaim: UseDefault: {0} IncludeClaimKeys {1}", this.UseDefault, this.IncludeClaimKeys);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user