-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
248 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
38
gen/models/managementV1VirtualClusterExternalDatabaseSpec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
38
gen/models/managementV1VirtualClusterExternalDatabaseStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters