Skip to content

Commit 5b2abcc

Browse files
committed
[skip ci] repo-sync
1 parent 6448e84 commit 5b2abcc

File tree

8 files changed

+210
-28
lines changed

8 files changed

+210
-28
lines changed

gen/models/managementV1OIDC.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import { ManagementV1OIDCClient } from '../models/managementV1OIDCClient';
13+
import { ManagementV1OIDCClientSpec } from '../models/managementV1OIDCClientSpec';
1414

1515

1616
/**
@@ -20,7 +20,7 @@ export class ManagementV1OIDC {
2020
/**
2121
* The clients that are allowed to request loft tokens
2222
*/
23-
'clients'?: Array<ManagementV1OIDCClient>;
23+
'clients'?: Array<ManagementV1OIDCClientSpec>;
2424
/**
2525
* If true indicates that loft will act as an OIDC server
2626
*/
@@ -36,7 +36,7 @@ export class ManagementV1OIDC {
3636
{
3737
"name": "clients",
3838
"baseName": "clients",
39-
"type": "Array<ManagementV1OIDCClient>",
39+
"type": "Array<ManagementV1OIDCClientSpec>",
4040
"format": ""
4141
},
4242
{

gen/models/managementV1OIDCClient.ts

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,54 +10,60 @@
1010
* Do not edit the class manually.
1111
*/
1212

13+
import { ManagementV1OIDCClientSpec } from '../models/managementV1OIDCClientSpec';
14+
import { V1ObjectMeta } from '../models/V1ObjectMeta';
1315

1416

1517
/**
16-
* OIDCClient holds information about a client
18+
* OIDCClient represents an OIDC client to use with Loft as an OIDC provider
1719
*/
1820
export class ManagementV1OIDCClient {
1921
/**
20-
* The client id of the client
22+
* 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
2123
*/
22-
'clientId'?: string;
24+
'apiVersion'?: string;
2325
/**
24-
* The client secret of the client
26+
* 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
2527
*/
26-
'clientSecret'?: string;
28+
'kind'?: string;
29+
'metadata'?: V1ObjectMeta;
30+
'spec'?: ManagementV1OIDCClientSpec;
2731
/**
28-
* The client name
32+
* OIDCClientStatus holds the status
2933
*/
30-
'name'?: string;
31-
/**
32-
* 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\".
33-
*/
34-
'redirectURIs': Array<string>;
34+
'status'?: any;
3535

3636
static readonly discriminator: string | undefined = undefined;
3737

3838
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
3939
{
40-
"name": "clientId",
41-
"baseName": "clientId",
40+
"name": "apiVersion",
41+
"baseName": "apiVersion",
4242
"type": "string",
4343
"format": ""
4444
},
4545
{
46-
"name": "clientSecret",
47-
"baseName": "clientSecret",
46+
"name": "kind",
47+
"baseName": "kind",
4848
"type": "string",
4949
"format": ""
5050
},
5151
{
52-
"name": "name",
53-
"baseName": "name",
54-
"type": "string",
52+
"name": "metadata",
53+
"baseName": "metadata",
54+
"type": "V1ObjectMeta",
55+
"format": ""
56+
},
57+
{
58+
"name": "spec",
59+
"baseName": "spec",
60+
"type": "ManagementV1OIDCClientSpec",
5561
"format": ""
5662
},
5763
{
58-
"name": "redirectURIs",
59-
"baseName": "redirectURIs",
60-
"type": "Array<string>",
64+
"name": "status",
65+
"baseName": "status",
66+
"type": "any",
6167
"format": ""
6268
} ];
6369

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/**
2+
* Api
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* OpenAPI spec version: master
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
import { ManagementV1OIDCClient } from '../models/managementV1OIDCClient';
14+
import { V1ListMeta } from '../models/V1ListMeta';
15+
16+
17+
export class ManagementV1OIDCClientList {
18+
/**
19+
* 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
20+
*/
21+
'apiVersion'?: string;
22+
'items': Array<ManagementV1OIDCClient>;
23+
/**
24+
* 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
25+
*/
26+
'kind'?: string;
27+
'metadata'?: V1ListMeta;
28+
29+
static readonly discriminator: string | undefined = undefined;
30+
31+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
32+
{
33+
"name": "apiVersion",
34+
"baseName": "apiVersion",
35+
"type": "string",
36+
"format": ""
37+
},
38+
{
39+
"name": "items",
40+
"baseName": "items",
41+
"type": "Array<ManagementV1OIDCClient>",
42+
"format": ""
43+
},
44+
{
45+
"name": "kind",
46+
"baseName": "kind",
47+
"type": "string",
48+
"format": ""
49+
},
50+
{
51+
"name": "metadata",
52+
"baseName": "metadata",
53+
"type": "V1ListMeta",
54+
"format": ""
55+
} ];
56+
57+
static getAttributeTypeMap() {
58+
return ManagementV1OIDCClientList.attributeTypeMap;
59+
}
60+
61+
public constructor() {
62+
}
63+
}
64+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/**
2+
* Api
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* OpenAPI spec version: master
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
15+
/**
16+
* OIDCClientSpec holds the specification
17+
*/
18+
export class ManagementV1OIDCClientSpec {
19+
/**
20+
* The client id of the client
21+
*/
22+
'clientId'?: string;
23+
/**
24+
* The client secret of the client
25+
*/
26+
'clientSecret'?: string;
27+
/**
28+
* The client name
29+
*/
30+
'name'?: string;
31+
/**
32+
* 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\".
33+
*/
34+
'redirectURIs': Array<string>;
35+
36+
static readonly discriminator: string | undefined = undefined;
37+
38+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
39+
{
40+
"name": "clientId",
41+
"baseName": "clientId",
42+
"type": "string",
43+
"format": ""
44+
},
45+
{
46+
"name": "clientSecret",
47+
"baseName": "clientSecret",
48+
"type": "string",
49+
"format": ""
50+
},
51+
{
52+
"name": "name",
53+
"baseName": "name",
54+
"type": "string",
55+
"format": ""
56+
},
57+
{
58+
"name": "redirectURIs",
59+
"baseName": "redirectURIs",
60+
"type": "Array<string>",
61+
"format": ""
62+
} ];
63+
64+
static getAttributeTypeMap() {
65+
return ManagementV1OIDCClientSpec.attributeTypeMap;
66+
}
67+
68+
public constructor() {
69+
}
70+
}
71+

gen/resources.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {ManagementV1LicenseRequest} from "./models/managementV1LicenseRequest"
3131
import {ManagementV1LicenseToken} from "./models/managementV1LicenseToken"
3232
import {ManagementV1License} from "./models/managementV1License"
3333
import {ManagementV1LoftUpgrade} from "./models/managementV1LoftUpgrade"
34+
import {ManagementV1OIDCClient} from "./models/managementV1OIDCClient"
3435
import {ManagementV1OwnedAccessKey} from "./models/managementV1OwnedAccessKey"
3536
import {ManagementV1ProjectChartInfo} from "./models/managementV1ProjectChartInfo"
3637
import {ManagementV1ProjectCharts} from "./models/managementV1ProjectCharts"
@@ -103,6 +104,7 @@ export type TGenResources = {
103104
ManagementV1LicenseRequest: GroupVersionResource<ManagementV1LicenseRequest>
104105
ManagementV1LicenseToken: GroupVersionResource<ManagementV1LicenseToken>
105106
ManagementV1LoftUpgrade: GroupVersionResource<ManagementV1LoftUpgrade>
107+
ManagementV1OIDCClient: GroupVersionResource<ManagementV1OIDCClient>
106108
ManagementV1OwnedAccessKey: GroupVersionResource<ManagementV1OwnedAccessKey>
107109
ManagementV1Project: GroupVersionResource<ManagementV1Project>
108110
ManagementV1ProjectChartInfo: GroupVersionResource<ManagementV1ProjectChartInfo>
@@ -393,6 +395,14 @@ export const GenResources: TGenResources = {
393395
namespaced: false,
394396
kind: "LoftUpgrade",
395397
},
398+
ManagementV1OIDCClient: {
399+
group: "management.loft.sh",
400+
version: "v1",
401+
resource: "oidcclients",
402+
subResource: "",
403+
namespaced: true,
404+
kind: "OIDCClient",
405+
},
396406
ManagementV1OwnedAccessKey: {
397407
group: "management.loft.sh",
398408
version: "v1",

lib/index.d.ts

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4781,7 +4781,7 @@ declare class ManagementV1Authentication {
47814781
}[];
47824782
constructor();
47834783
}
4784-
declare class ManagementV1OIDCClient {
4784+
declare class ManagementV1OIDCClientSpec {
47854785
/**
47864786
* The client id of the client
47874787
*/
@@ -4817,7 +4817,7 @@ declare class ManagementV1OIDC {
48174817
/**
48184818
* The clients that are allowed to request loft tokens
48194819
*/
4820-
"clients"?: Array<ManagementV1OIDCClient>;
4820+
"clients"?: Array<ManagementV1OIDCClientSpec>;
48214821
/**
48224822
* If true indicates that loft will act as an OIDC server
48234823
*/
@@ -7241,6 +7241,36 @@ declare class ManagementV1LoftUpgrade {
72417241
}[];
72427242
constructor();
72437243
}
7244+
declare class ManagementV1OIDCClient {
7245+
/**
7246+
* 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
7247+
*/
7248+
"apiVersion"?: string;
7249+
/**
7250+
* 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
7251+
*/
7252+
"kind"?: string;
7253+
"metadata"?: V1ObjectMeta;
7254+
"spec"?: ManagementV1OIDCClientSpec;
7255+
/**
7256+
* OIDCClientStatus holds the status
7257+
*/
7258+
"status"?: any;
7259+
static readonly discriminator: string | undefined;
7260+
static readonly attributeTypeMap: Array<{
7261+
name: string;
7262+
baseName: string;
7263+
type: string;
7264+
format: string;
7265+
}>;
7266+
static getAttributeTypeMap(): {
7267+
name: string;
7268+
baseName: string;
7269+
type: string;
7270+
format: string;
7271+
}[];
7272+
constructor();
7273+
}
72447274
declare class StorageV1AccessKeyIdentity {
72457275
/**
72467276
* Connector is the name of the connector this access key was created from
@@ -14172,6 +14202,7 @@ export type TGenResources = {
1417214202
ManagementV1LicenseRequest: GroupVersionResource<ManagementV1LicenseRequest>;
1417314203
ManagementV1LicenseToken: GroupVersionResource<ManagementV1LicenseToken>;
1417414204
ManagementV1LoftUpgrade: GroupVersionResource<ManagementV1LoftUpgrade>;
14205+
ManagementV1OIDCClient: GroupVersionResource<ManagementV1OIDCClient>;
1417514206
ManagementV1OwnedAccessKey: GroupVersionResource<ManagementV1OwnedAccessKey>;
1417614207
ManagementV1Project: GroupVersionResource<ManagementV1Project>;
1417714208
ManagementV1ProjectChartInfo: GroupVersionResource<ManagementV1ProjectChartInfo>;

lib/index.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)