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 Oct 31, 2024
1 parent 6663338 commit baf5aee
Show file tree
Hide file tree
Showing 9 changed files with 248 additions and 5 deletions.
75 changes: 75 additions & 0 deletions gen/models/managementV1VirtualClusterExternalDatabase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/**
* 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 { ManagementV1VirtualClusterExternalDatabaseSpec } from '../models/managementV1VirtualClusterExternalDatabaseSpec';
import { ManagementV1VirtualClusterExternalDatabaseStatus } from '../models/managementV1VirtualClusterExternalDatabaseStatus';
import { V1ObjectMeta } from '../models/V1ObjectMeta';


/**
* VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters
*/
export class ManagementV1VirtualClusterExternalDatabase {
/**
* 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'?: ManagementV1VirtualClusterExternalDatabaseSpec;
'status'?: ManagementV1VirtualClusterExternalDatabaseStatus;

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": "kind",
"baseName": "kind",
"type": "string",
"format": ""
},
{
"name": "metadata",
"baseName": "metadata",
"type": "V1ObjectMeta",
"format": ""
},
{
"name": "spec",
"baseName": "spec",
"type": "ManagementV1VirtualClusterExternalDatabaseSpec",
"format": ""
},
{
"name": "status",
"baseName": "status",
"type": "ManagementV1VirtualClusterExternalDatabaseStatus",
"format": ""
} ];

static getAttributeTypeMap() {
return ManagementV1VirtualClusterExternalDatabase.attributeTypeMap;
}

public constructor() {
}
}

38 changes: 38 additions & 0 deletions gen/models/managementV1VirtualClusterExternalDatabaseSpec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* 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.
*/



export class ManagementV1VirtualClusterExternalDatabaseSpec {
/**
* Connector specifies the secret that should be used to connect to an external database server. The connection is used to manage a user and database for the vCluster. A data source endpoint constructed from the created user and database is returned on status. The secret specified by connector should contain the following fields: endpoint - the endpoint where the database server can be accessed user - the database username password - the password for the database username port - the port to be used in conjunction with the endpoint to connect to the databse server. This is commonly 3306
*/
'connector'?: string;

static readonly discriminator: string | undefined = undefined;

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

static getAttributeTypeMap() {
return ManagementV1VirtualClusterExternalDatabaseSpec.attributeTypeMap;
}

public constructor() {
}
}

38 changes: 38 additions & 0 deletions gen/models/managementV1VirtualClusterExternalDatabaseStatus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* 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.
*/



export class ManagementV1VirtualClusterExternalDatabaseStatus {
/**
* DataSource holds a datasource endpoint constructed from the vCluster\'s designated user and database. The user and database are created from the given connector.
*/
'dataSource'?: string;

static readonly discriminator: string | undefined = undefined;

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

static getAttributeTypeMap() {
return ManagementV1VirtualClusterExternalDatabaseStatus.attributeTypeMap;
}

public constructor() {
}
}

12 changes: 11 additions & 1 deletion gen/models/uiV1UISettingsSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,18 @@ export class UiV1UISettingsSpec {
*/
'defaultVClusterVersion'?: string;
/**
* HasHelmRelease indicates whether loft has been installed via Helm
* HasHelmRelease indicates whether the vCluster Platform instance has been installed via Helm
*/
'hasHelmRelease'?: boolean;
/**
* LegalTemplate is a text (html) string containing the legal template to prompt to users when authenticating to Loft
*/
'legalTemplate'?: string;
/**
* LoftHosted indicates whether the vCluster platform instance is hosted and operated by Loft Labs Inc.
*/
'loftHosted'?: boolean;
/**
* LoftVersion holds the current loft version
*/
'loftVersion'?: string;
Expand Down Expand Up @@ -113,6 +117,12 @@ export class UiV1UISettingsSpec {
"type": "string",
"format": ""
},
{
"name": "loftHosted",
"baseName": "loftHosted",
"type": "boolean",
"format": ""
},
{
"name": "loftVersion",
"baseName": "loftVersion",
Expand Down
10 changes: 10 additions & 0 deletions gen/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import {ManagementV1UserPermissions} from "./models/managementV1UserPermissions"
import {ManagementV1UserProfile} from "./models/managementV1UserProfile"
import {ManagementV1User} from "./models/managementV1User"
import {ManagementV1VirtualClusterAccessKey} from "./models/managementV1VirtualClusterAccessKey"
import {ManagementV1VirtualClusterExternalDatabase} from "./models/managementV1VirtualClusterExternalDatabase"
import {ManagementV1VirtualClusterInstanceKubeConfig} from "./models/managementV1VirtualClusterInstanceKubeConfig"
import {ManagementV1VirtualClusterInstanceLog} from "./models/managementV1VirtualClusterInstanceLog"
import {ManagementV1VirtualClusterInstance} from "./models/managementV1VirtualClusterInstance"
Expand Down Expand Up @@ -144,6 +145,7 @@ export type TGenResources = {
ManagementV1UserPermissions: GroupVersionResource<ManagementV1UserPermissions>
ManagementV1UserProfile: GroupVersionResource<ManagementV1UserProfile>
ManagementV1VirtualClusterAccessKey: GroupVersionResource<ManagementV1VirtualClusterAccessKey>
ManagementV1VirtualClusterExternalDatabase: GroupVersionResource<ManagementV1VirtualClusterExternalDatabase>
ManagementV1VirtualClusterInstance: GroupVersionResource<ManagementV1VirtualClusterInstance>
ManagementV1VirtualClusterInstanceKubeConfig: GroupVersionResource<ManagementV1VirtualClusterInstanceKubeConfig>
ManagementV1VirtualClusterInstanceLog: GroupVersionResource<ManagementV1VirtualClusterInstanceLog>
Expand Down Expand Up @@ -703,6 +705,14 @@ export const GenResources: TGenResources = {
namespaced: true,
kind: "VirtualClusterAccessKey",
},
ManagementV1VirtualClusterExternalDatabase: {
group: "management.loft.sh",
version: "v1",
resource: "virtualclusterinstances",
subResource: "externaldatabase",
namespaced: true,
kind: "VirtualClusterExternalDatabase",
},
ManagementV1VirtualClusterInstance: {
group: "management.loft.sh",
version: "v1",
Expand Down
74 changes: 73 additions & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7378,14 +7378,18 @@ declare class UiV1UISettingsSpec {
*/
"defaultVClusterVersion"?: string;
/**
* HasHelmRelease indicates whether loft has been installed via Helm
* HasHelmRelease indicates whether the vCluster Platform instance has been installed via Helm
*/
"hasHelmRelease"?: boolean;
/**
* LegalTemplate is a text (html) string containing the legal template to prompt to users when authenticating to Loft
*/
"legalTemplate"?: string;
/**
* LoftHosted indicates whether the vCluster platform instance is hosted and operated by Loft Labs Inc.
*/
"loftHosted"?: boolean;
/**
* LoftVersion holds the current loft version
*/
"loftVersion"?: string;
Expand Down Expand Up @@ -14513,6 +14517,73 @@ declare class ManagementV1VirtualClusterAccessKey {
}[];
constructor();
}
declare class ManagementV1VirtualClusterExternalDatabaseSpec {
/**
* Connector specifies the secret that should be used to connect to an external database server. The connection is used to manage a user and database for the vCluster. A data source endpoint constructed from the created user and database is returned on status. The secret specified by connector should contain the following fields: endpoint - the endpoint where the database server can be accessed user - the database username password - the password for the database username port - the port to be used in conjunction with the endpoint to connect to the databse server. This is commonly 3306
*/
"connector"?: string;
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 ManagementV1VirtualClusterExternalDatabaseStatus {
/**
* DataSource holds a datasource endpoint constructed from the vCluster\'s designated user and database. The user and database are created from the given connector.
*/
"dataSource"?: string;
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 ManagementV1VirtualClusterExternalDatabase {
/**
* 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"?: ManagementV1VirtualClusterExternalDatabaseSpec;
"status"?: ManagementV1VirtualClusterExternalDatabaseStatus;
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 ManagementV1VirtualClusterInstanceKubeConfigSpec {
/**
* CertificateTTL holds the ttl (in seconds) to set for the certificate associated with the returned kubeconfig. This field is optional, if no value is provided, the certificate TTL will be set to one day. If set to zero, this will cause loft to pass nil to the certificate signing request, which will result in the certificate being valid for the clusters `cluster-signing-duration` value which is typically one year.
Expand Down Expand Up @@ -14838,6 +14909,7 @@ export type TGenResources = {
ManagementV1UserPermissions: GroupVersionResource<ManagementV1UserPermissions>;
ManagementV1UserProfile: GroupVersionResource<ManagementV1UserProfile>;
ManagementV1VirtualClusterAccessKey: GroupVersionResource<ManagementV1VirtualClusterAccessKey>;
ManagementV1VirtualClusterExternalDatabase: GroupVersionResource<ManagementV1VirtualClusterExternalDatabase>;
ManagementV1VirtualClusterInstance: GroupVersionResource<ManagementV1VirtualClusterInstance>;
ManagementV1VirtualClusterInstanceKubeConfig: GroupVersionResource<ManagementV1VirtualClusterInstanceKubeConfig>;
ManagementV1VirtualClusterInstanceLog: GroupVersionResource<ManagementV1VirtualClusterInstanceLog>;
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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"description": "loft-enterprise js client",
"dependencies": {
"@kubernetes/client-node": "0.20.0",
"@kubernetes/client-node": "0.22.1",
"js-cookie": "3.0.1",
"json-merge-patch": "1.0.2"
},
Expand Down

0 comments on commit baf5aee

Please sign in to comment.