Skip to content

Commit

Permalink
Fix API
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollo3zehn committed Mar 8, 2024
1 parent c86373c commit 5339719
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 116 deletions.
39 changes: 0 additions & 39 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1156,30 +1156,6 @@
}
}
},
"/api/v1/users/authentication-schemes": {
"get": {
"tags": [
"Users"
],
"summary": "Returns a list of available authentication schemes.",
"operationId": "Users_GetAuthenticationSchemes",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AuthenticationSchemeDescription"
}
}
}
}
}
}
}
},
"/api/v1/users/authenticate": {
"post": {
"tags": [
Expand Down Expand Up @@ -2177,21 +2153,6 @@
}
}
},
"AuthenticationSchemeDescription": {
"type": "object",
"description": "Describes an OpenID connect provider.",
"additionalProperties": false,
"properties": {
"scheme": {
"type": "string",
"description": "The scheme."
},
"displayName": {
"type": "string",
"description": "The display name."
}
}
},
"MeResponse": {
"type": "object",
"description": "A me response.",
Expand Down
38 changes: 0 additions & 38 deletions src/clients/dotnet-client/NexusClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2164,17 +2164,6 @@ public Task SetConfigurationAsync(IReadOnlyDictionary<string, JsonElement>? conf
/// </summary>
public interface IUsersClient
{
/// <summary>
/// Returns a list of available authentication schemes.
/// </summary>
IReadOnlyList<AuthenticationSchemeDescription> GetAuthenticationSchemes();

/// <summary>
/// Returns a list of available authentication schemes.
/// </summary>
/// <param name="cancellationToken">The token to cancel the current operation.</param>
Task<IReadOnlyList<AuthenticationSchemeDescription>> GetAuthenticationSchemesAsync(CancellationToken cancellationToken = default);

/// <summary>
/// Authenticates the user.
/// </summary>
Expand Down Expand Up @@ -2371,26 +2360,6 @@ internal UsersClient(NexusClient client)
___client = client;
}

/// <inheritdoc />
public IReadOnlyList<AuthenticationSchemeDescription> GetAuthenticationSchemes()
{
var __urlBuilder = new StringBuilder();
__urlBuilder.Append("/api/v1/users/authentication-schemes");

var __url = __urlBuilder.ToString();
return ___client.Invoke<IReadOnlyList<AuthenticationSchemeDescription>>("GET", __url, "application/json", default, default);
}

/// <inheritdoc />
public Task<IReadOnlyList<AuthenticationSchemeDescription>> GetAuthenticationSchemesAsync(CancellationToken cancellationToken = default)
{
var __urlBuilder = new StringBuilder();
__urlBuilder.Append("/api/v1/users/authentication-schemes");

var __url = __urlBuilder.ToString();
return ___client.InvokeAsync<IReadOnlyList<AuthenticationSchemeDescription>>("GET", __url, "application/json", default, default, cancellationToken);
}

/// <inheritdoc />
public HttpResponseMessage Authenticate(string scheme, string returnUrl)
{
Expand Down Expand Up @@ -3105,13 +3074,6 @@ public record ExtensionDescription(string Type, string Version, string? Descript
/// <param name="VisibilityPattern">An optional regular expressions pattern to select the catalogs to be visible. By default, all catalogs will be visible.</param>
public record DataSourceRegistration(string Type, Uri? ResourceLocator, IReadOnlyDictionary<string, JsonElement>? Configuration, string? InfoUrl, string? ReleasePattern, string? VisibilityPattern);

/// <summary>
/// Describes an OpenID connect provider.
/// </summary>
/// <param name="Scheme">The scheme.</param>
/// <param name="DisplayName">The display name.</param>
public record AuthenticationSchemeDescription(string Scheme, string DisplayName);

/// <summary>
/// A me response.
/// </summary>
Expand Down
39 changes: 0 additions & 39 deletions src/clients/python-client/nexus_api/_nexus_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,23 +696,6 @@ class DataSourceRegistration:
"""An optional regular expressions pattern to select the catalogs to be visible. By default, all catalogs will be visible."""


@dataclass(frozen=True)
class AuthenticationSchemeDescription:
"""
Describes an OpenID connect provider.
Args:
scheme: The scheme.
display_name: The display name.
"""

scheme: str
"""The scheme."""

display_name: str
"""The display name."""


@dataclass(frozen=True)
class MeResponse:
"""
Expand Down Expand Up @@ -1339,17 +1322,6 @@ class UsersAsyncClient:
def __init__(self, client: NexusAsyncClient):
self.___client = client

def get_authentication_schemes(self) -> Awaitable[list[AuthenticationSchemeDescription]]:
"""
Returns a list of available authentication schemes.
Args:
"""

__url = "/api/v1/users/authentication-schemes"

return self.___client._invoke(list[AuthenticationSchemeDescription], "GET", __url, "application/json", None, None)

def authenticate(self, scheme: str, return_url: str) -> Awaitable[Response]:
"""
Authenticates the user.
Expand Down Expand Up @@ -2114,17 +2086,6 @@ class UsersClient:
def __init__(self, client: NexusClient):
self.___client = client

def get_authentication_schemes(self) -> list[AuthenticationSchemeDescription]:
"""
Returns a list of available authentication schemes.
Args:
"""

__url = "/api/v1/users/authentication-schemes"

return self.___client._invoke(list[AuthenticationSchemeDescription], "GET", __url, "application/json", None, None)

def authenticate(self, scheme: str, return_url: str) -> Response:
"""
Authenticates the user.
Expand Down

0 comments on commit 5339719

Please sign in to comment.