Skip to content

Commit

Permalink
[skip ci] repo-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
loft-bot committed Aug 1, 2024
1 parent 6448e84 commit 5b2abcc
Show file tree
Hide file tree
Showing 8 changed files with 210 additions and 28 deletions.
6 changes: 3 additions & 3 deletions gen/models/managementV1OIDC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

import { ManagementV1OIDCClient } from '../models/managementV1OIDCClient';
import { ManagementV1OIDCClientSpec } from '../models/managementV1OIDCClientSpec';


/**
Expand All @@ -20,7 +20,7 @@ export class ManagementV1OIDC {
/**
* The clients that are allowed to request loft tokens
*/
'clients'?: Array<ManagementV1OIDCClient>;
'clients'?: Array<ManagementV1OIDCClientSpec>;
/**
* If true indicates that loft will act as an OIDC server
*/
Expand All @@ -36,7 +36,7 @@ export class ManagementV1OIDC {
{
"name": "clients",
"baseName": "clients",
"type": "Array<ManagementV1OIDCClient>",
"type": "Array<ManagementV1OIDCClientSpec>",
"format": ""
},
{
Expand Down
48 changes: 27 additions & 21 deletions gen/models/managementV1OIDCClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,54 +10,60 @@
* Do not edit the class manually.
*/

import { ManagementV1OIDCClientSpec } from '../models/managementV1OIDCClientSpec';
import { V1ObjectMeta } from '../models/V1ObjectMeta';


/**
* OIDCClient holds information about a client
* OIDCClient represents an OIDC client to use with Loft as an OIDC provider
*/
export class ManagementV1OIDCClient {
/**
* The client id of the client
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
*/
'clientId'?: string;
'apiVersion'?: string;
/**
* The client secret of the client
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
'clientSecret'?: string;
'kind'?: string;
'metadata'?: V1ObjectMeta;
'spec'?: ManagementV1OIDCClientSpec;
/**
* The client name
* OIDCClientStatus holds the status
*/
'name'?: string;
/**
* A registered set of redirect URIs. When redirecting from dex to the client, the URI requested to redirect to MUST match one of these values, unless the client is \"public\".
*/
'redirectURIs': Array<string>;
'status'?: any;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "clientId",
"baseName": "clientId",
"name": "apiVersion",
"baseName": "apiVersion",
"type": "string",
"format": ""
},
{
"name": "clientSecret",
"baseName": "clientSecret",
"name": "kind",
"baseName": "kind",
"type": "string",
"format": ""
},
{
"name": "name",
"baseName": "name",
"type": "string",
"name": "metadata",
"baseName": "metadata",
"type": "V1ObjectMeta",
"format": ""
},
{
"name": "spec",
"baseName": "spec",
"type": "ManagementV1OIDCClientSpec",
"format": ""
},
{
"name": "redirectURIs",
"baseName": "redirectURIs",
"type": "Array<string>",
"name": "status",
"baseName": "status",
"type": "any",
"format": ""
} ];

Expand Down
64 changes: 64 additions & 0 deletions gen/models/managementV1OIDCClientList.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/**
* Api
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: master
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { ManagementV1OIDCClient } from '../models/managementV1OIDCClient';
import { V1ListMeta } from '../models/V1ListMeta';


export class ManagementV1OIDCClientList {
/**
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
*/
'apiVersion'?: string;
'items': Array<ManagementV1OIDCClient>;
/**
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
'kind'?: string;
'metadata'?: V1ListMeta;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "apiVersion",
"baseName": "apiVersion",
"type": "string",
"format": ""
},
{
"name": "items",
"baseName": "items",
"type": "Array<ManagementV1OIDCClient>",
"format": ""
},
{
"name": "kind",
"baseName": "kind",
"type": "string",
"format": ""
},
{
"name": "metadata",
"baseName": "metadata",
"type": "V1ListMeta",
"format": ""
} ];

static getAttributeTypeMap() {
return ManagementV1OIDCClientList.attributeTypeMap;
}

public constructor() {
}
}

71 changes: 71 additions & 0 deletions gen/models/managementV1OIDCClientSpec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/**
* Api
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: master
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/



/**
* OIDCClientSpec holds the specification
*/
export class ManagementV1OIDCClientSpec {
/**
* The client id of the client
*/
'clientId'?: string;
/**
* The client secret of the client
*/
'clientSecret'?: string;
/**
* The client name
*/
'name'?: string;
/**
* A registered set of redirect URIs. When redirecting from dex to the client, the URI requested to redirect to MUST match one of these values, unless the client is \"public\".
*/
'redirectURIs': Array<string>;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "clientId",
"baseName": "clientId",
"type": "string",
"format": ""
},
{
"name": "clientSecret",
"baseName": "clientSecret",
"type": "string",
"format": ""
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "redirectURIs",
"baseName": "redirectURIs",
"type": "Array<string>",
"format": ""
} ];

static getAttributeTypeMap() {
return ManagementV1OIDCClientSpec.attributeTypeMap;
}

public constructor() {
}
}

10 changes: 10 additions & 0 deletions gen/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {ManagementV1LicenseRequest} from "./models/managementV1LicenseRequest"
import {ManagementV1LicenseToken} from "./models/managementV1LicenseToken"
import {ManagementV1License} from "./models/managementV1License"
import {ManagementV1LoftUpgrade} from "./models/managementV1LoftUpgrade"
import {ManagementV1OIDCClient} from "./models/managementV1OIDCClient"
import {ManagementV1OwnedAccessKey} from "./models/managementV1OwnedAccessKey"
import {ManagementV1ProjectChartInfo} from "./models/managementV1ProjectChartInfo"
import {ManagementV1ProjectCharts} from "./models/managementV1ProjectCharts"
Expand Down Expand Up @@ -103,6 +104,7 @@ export type TGenResources = {
ManagementV1LicenseRequest: GroupVersionResource<ManagementV1LicenseRequest>
ManagementV1LicenseToken: GroupVersionResource<ManagementV1LicenseToken>
ManagementV1LoftUpgrade: GroupVersionResource<ManagementV1LoftUpgrade>
ManagementV1OIDCClient: GroupVersionResource<ManagementV1OIDCClient>
ManagementV1OwnedAccessKey: GroupVersionResource<ManagementV1OwnedAccessKey>
ManagementV1Project: GroupVersionResource<ManagementV1Project>
ManagementV1ProjectChartInfo: GroupVersionResource<ManagementV1ProjectChartInfo>
Expand Down Expand Up @@ -393,6 +395,14 @@ export const GenResources: TGenResources = {
namespaced: false,
kind: "LoftUpgrade",
},
ManagementV1OIDCClient: {
group: "management.loft.sh",
version: "v1",
resource: "oidcclients",
subResource: "",
namespaced: true,
kind: "OIDCClient",
},
ManagementV1OwnedAccessKey: {
group: "management.loft.sh",
version: "v1",
Expand Down
35 changes: 33 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4781,7 +4781,7 @@ declare class ManagementV1Authentication {
}[];
constructor();
}
declare class ManagementV1OIDCClient {
declare class ManagementV1OIDCClientSpec {
/**
* The client id of the client
*/
Expand Down Expand Up @@ -4817,7 +4817,7 @@ declare class ManagementV1OIDC {
/**
* The clients that are allowed to request loft tokens
*/
"clients"?: Array<ManagementV1OIDCClient>;
"clients"?: Array<ManagementV1OIDCClientSpec>;
/**
* If true indicates that loft will act as an OIDC server
*/
Expand Down Expand Up @@ -7241,6 +7241,36 @@ declare class ManagementV1LoftUpgrade {
}[];
constructor();
}
declare class ManagementV1OIDCClient {
/**
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
*/
"apiVersion"?: string;
/**
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
"kind"?: string;
"metadata"?: V1ObjectMeta;
"spec"?: ManagementV1OIDCClientSpec;
/**
* OIDCClientStatus holds the status
*/
"status"?: any;
static readonly discriminator: string | undefined;
static readonly attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
format: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
format: string;
}[];
constructor();
}
declare class StorageV1AccessKeyIdentity {
/**
* Connector is the name of the connector this access key was created from
Expand Down Expand Up @@ -14172,6 +14202,7 @@ export type TGenResources = {
ManagementV1LicenseRequest: GroupVersionResource<ManagementV1LicenseRequest>;
ManagementV1LicenseToken: GroupVersionResource<ManagementV1LicenseToken>;
ManagementV1LoftUpgrade: GroupVersionResource<ManagementV1LoftUpgrade>;
ManagementV1OIDCClient: GroupVersionResource<ManagementV1OIDCClient>;
ManagementV1OwnedAccessKey: GroupVersionResource<ManagementV1OwnedAccessKey>;
ManagementV1Project: GroupVersionResource<ManagementV1Project>;
ManagementV1ProjectChartInfo: GroupVersionResource<ManagementV1ProjectChartInfo>;
Expand Down
2 changes: 1 addition & 1 deletion lib/index.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

0 comments on commit 5b2abcc

Please sign in to comment.