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 Nov 11, 2024
1 parent 6663338 commit eca935d
Show file tree
Hide file tree
Showing 12 changed files with 396 additions and 5 deletions.
46 changes: 46 additions & 0 deletions gen/models/managementV1Cloud.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* 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 { ManagementV1MaintenanceWindow } from '../models/managementV1MaintenanceWindow';


export class ManagementV1Cloud {
'maintenanceWindow'?: ManagementV1MaintenanceWindow;
/**
* ReleaseChannel specifies the release channel for the cloud configuration. This can be used to determine which updates or versions are applied.
*/
'releaseChannel'?: string;

static readonly discriminator: string | undefined = undefined;

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

static getAttributeTypeMap() {
return ManagementV1Cloud.attributeTypeMap;
}

public constructor() {
}
}

8 changes: 8 additions & 0 deletions gen/models/managementV1ConfigStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { ManagementV1Apps } from '../models/managementV1Apps';
import { ManagementV1Audit } from '../models/managementV1Audit';
import { ManagementV1Authentication } from '../models/managementV1Authentication';
import { ManagementV1Cloud } from '../models/managementV1Cloud';
import { ManagementV1OIDC } from '../models/managementV1OIDC';
import { StorageV1VaultIntegrationSpec } from '../models/storageV1VaultIntegrationSpec';
import { UiV1UISettingsConfig } from '../models/uiV1UISettingsConfig';
Expand All @@ -25,6 +26,7 @@ export class ManagementV1ConfigStatus {
'apps'?: ManagementV1Apps;
'audit'?: ManagementV1Audit;
'auth'?: ManagementV1Authentication;
'cloud'?: ManagementV1Cloud;
/**
* DevPodSubDomain holds a subdomain in the following form *.workspace.my-domain.com
*/
Expand Down Expand Up @@ -66,6 +68,12 @@ export class ManagementV1ConfigStatus {
"type": "ManagementV1Authentication",
"format": ""
},
{
"name": "cloud",
"baseName": "cloud",
"type": "ManagementV1Cloud",
"format": ""
},
{
"name": "devPodSubDomain",
"baseName": "devPodSubDomain",
Expand Down
48 changes: 48 additions & 0 deletions gen/models/managementV1MaintenanceWindow.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* 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 ManagementV1MaintenanceWindow {
/**
* DayOfWeek specifies the day of the week for the maintenance window. It should be a string representing the day, e.g., \"Monday\", \"Tuesday\", etc.
*/
'dayOfWeek'?: string;
/**
* TimeWindow specifies the time window for the maintenance. It should be a string representing the time range in 24-hour format, e.g., \"02:00-03:00\".
*/
'timeWindow'?: string;

static readonly discriminator: string | undefined = undefined;

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

static getAttributeTypeMap() {
return ManagementV1MaintenanceWindow.attributeTypeMap;
}

public constructor() {
}
}

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
Loading

0 comments on commit eca935d

Please sign in to comment.