Skip to content

Commit cbbcfc6

Browse files
committed
[skip ci] repo-sync
1 parent 9a9e8c2 commit cbbcfc6

23 files changed

+227
-338
lines changed

gen/models/managementV1VirtualClusterResourceUsageMap.ts renamed to gen/models/licenseApiGenericRequestInput.ts

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,37 @@
1212

1313

1414

15-
export class ManagementV1VirtualClusterResourceUsageMap {
15+
/**
16+
* GenericRequestInput defines the payload that needs to be sent to a button\'s action URL
17+
*/
18+
export class LicenseApiGenericRequestInput {
1619
/**
17-
* Capacity is a map of resources to their total amounts across all attached nodes.
20+
* Payload provides the json encoded payload
1821
*/
19-
'capacity'?: { [key: string]: number; };
22+
'payload'?: string;
2023
/**
21-
* Nodes is the total count of nodes attached to the virtual cluster.
24+
* ReturnURL is the url from which the request is initiated
2225
*/
23-
'nodes': number;
26+
'returnURL'?: string;
2427

2528
static readonly discriminator: string | undefined = undefined;
2629

2730
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2831
{
29-
"name": "capacity",
30-
"baseName": "capacity",
31-
"type": "{ [key: string]: number; }",
32-
"format": "int32"
32+
"name": "payload",
33+
"baseName": "payload",
34+
"type": "string",
35+
"format": ""
3336
},
3437
{
35-
"name": "nodes",
36-
"baseName": "nodes",
37-
"type": "number",
38-
"format": "int32"
38+
"name": "returnURL",
39+
"baseName": "returnURL",
40+
"type": "string",
41+
"format": ""
3942
} ];
4043

4144
static getAttributeTypeMap() {
42-
return ManagementV1VirtualClusterResourceUsageMap.attributeTypeMap;
45+
return LicenseApiGenericRequestInput.attributeTypeMap;
4346
}
4447

4548
public constructor() {
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 { LicenseApiButton } from '../models/licenseApiButton';
14+
15+
16+
/**
17+
* GenericRequestOutput specifies the response
18+
*/
19+
export class LicenseApiGenericRequestOutput {
20+
/**
21+
* Buttons to be shown to the user alongside other content (e.g. HTML).
22+
*/
23+
'buttons'?: Array<LicenseApiButton>;
24+
/**
25+
* HTML to display to the user.
26+
*/
27+
'html'?: string;
28+
/**
29+
* RedirectURL to redirect the user to.
30+
*/
31+
'redirectURL'?: string;
32+
33+
static readonly discriminator: string | undefined = undefined;
34+
35+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
36+
{
37+
"name": "buttons",
38+
"baseName": "buttons",
39+
"type": "Array<LicenseApiButton>",
40+
"format": ""
41+
},
42+
{
43+
"name": "html",
44+
"baseName": "html",
45+
"type": "string",
46+
"format": ""
47+
},
48+
{
49+
"name": "redirectURL",
50+
"baseName": "redirectURL",
51+
"type": "string",
52+
"format": ""
53+
} ];
54+
55+
static getAttributeTypeMap() {
56+
return LicenseApiGenericRequestOutput.attributeTypeMap;
57+
}
58+
59+
public constructor() {
60+
}
61+
}
62+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
export class LicenseApiInstanceTokenAuth {
16+
/**
17+
* Certificate is the signing certificate for the token.
18+
*/
19+
'certificate': string;
20+
/**
21+
* Token is the jwt token identifying the loft instance.
22+
*/
23+
'token': string;
24+
25+
static readonly discriminator: string | undefined = undefined;
26+
27+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
28+
{
29+
"name": "certificate",
30+
"baseName": "certificate",
31+
"type": "string",
32+
"format": ""
33+
},
34+
{
35+
"name": "token",
36+
"baseName": "token",
37+
"type": "string",
38+
"format": ""
39+
} ];
40+
41+
static getAttributeTypeMap() {
42+
return LicenseApiInstanceTokenAuth.attributeTypeMap;
43+
}
44+
45+
public constructor() {
46+
}
47+
}
48+

gen/models/licenseApiLicense.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ import { LicenseApiPlan } from '../models/licenseApiPlan';
2525
export class LicenseApiLicense {
2626
'analytics'?: LicenseApiAnalytics;
2727
/**
28-
* Annotations contains additional metadata about the license.
29-
*/
30-
'annotations'?: { [key: string]: string; };
31-
/**
3228
* Announcements is a map string/string such that we can easily add any additional data without needing to change types. For now, we will use the keys \"name\" and \"content\".
3329
*/
3430
'announcement'?: Array<LicenseApiAnnouncement>;
@@ -75,12 +71,6 @@ export class LicenseApiLicense {
7571
"type": "LicenseApiAnalytics",
7672
"format": ""
7773
},
78-
{
79-
"name": "annotations",
80-
"baseName": "annotations",
81-
"type": "{ [key: string]: string; }",
82-
"format": ""
83-
},
8474
{
8575
"name": "announcement",
8676
"baseName": "announcement",

gen/models/managementV1LicenseRequestSpec.ts

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

13+
import { LicenseApiGenericRequestInput } from '../models/licenseApiGenericRequestInput';
1314

1415

1516
export class ManagementV1LicenseRequestSpec {
16-
/**
17-
* Input is the input payload to send to the url.
18-
*/
19-
'input'?: string;
17+
'input'?: LicenseApiGenericRequestInput;
2018
/**
2119
* URL is the url for the request.
2220
*/
@@ -28,7 +26,7 @@ export class ManagementV1LicenseRequestSpec {
2826
{
2927
"name": "input",
3028
"baseName": "input",
31-
"type": "string",
29+
"type": "LicenseApiGenericRequestInput",
3230
"format": ""
3331
},
3432
{

gen/models/managementV1LicenseRequestStatus.ts

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

13+
import { LicenseApiGenericRequestOutput } from '../models/licenseApiGenericRequestOutput';
1314

1415

1516
export class ManagementV1LicenseRequestStatus {
16-
/**
17-
* Output is where the request output is stored.
18-
*/
19-
'output'?: string;
17+
'output'?: LicenseApiGenericRequestOutput;
2018

2119
static readonly discriminator: string | undefined = undefined;
2220

2321
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2422
{
2523
"name": "output",
2624
"baseName": "output",
27-
"type": "string",
25+
"type": "LicenseApiGenericRequestOutput",
2826
"format": ""
2927
} ];
3028

gen/models/managementV1VirtualClusterResourceUsage.ts renamed to gen/models/managementV1LicenseToken.ts

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

13-
import { ManagementV1VirtualClusterResourceUsageStatus } from '../models/managementV1VirtualClusterResourceUsageStatus';
13+
import { ManagementV1LicenseTokenSpec } from '../models/managementV1LicenseTokenSpec';
14+
import { ManagementV1LicenseTokenStatus } from '../models/managementV1LicenseTokenStatus';
1415
import { V1ObjectMeta } from '../models/V1ObjectMeta';
1516

1617

1718
/**
18-
* VirtualClusterResourceUsage holds information about a virtual cluster\'s usage of node resources.
19+
* License Token holds the license token information
1920
*/
20-
export class ManagementV1VirtualClusterResourceUsage {
21+
export class ManagementV1LicenseToken {
2122
/**
2223
* 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
2324
*/
@@ -27,7 +28,8 @@ export class ManagementV1VirtualClusterResourceUsage {
2728
*/
2829
'kind'?: string;
2930
'metadata'?: V1ObjectMeta;
30-
'status'?: ManagementV1VirtualClusterResourceUsageStatus;
31+
'spec'?: ManagementV1LicenseTokenSpec;
32+
'status'?: ManagementV1LicenseTokenStatus;
3133

3234
static readonly discriminator: string | undefined = undefined;
3335

@@ -50,15 +52,21 @@ export class ManagementV1VirtualClusterResourceUsage {
5052
"type": "V1ObjectMeta",
5153
"format": ""
5254
},
55+
{
56+
"name": "spec",
57+
"baseName": "spec",
58+
"type": "ManagementV1LicenseTokenSpec",
59+
"format": ""
60+
},
5361
{
5462
"name": "status",
5563
"baseName": "status",
56-
"type": "ManagementV1VirtualClusterResourceUsageStatus",
64+
"type": "ManagementV1LicenseTokenStatus",
5765
"format": ""
5866
} ];
5967

6068
static getAttributeTypeMap() {
61-
return ManagementV1VirtualClusterResourceUsage.attributeTypeMap;
69+
return ManagementV1LicenseToken.attributeTypeMap;
6270
}
6371

6472
public constructor() {

gen/models/managementV1VirtualClusterResourceUsageStatus.ts renamed to gen/models/managementV1LicenseTokenSpec.ts

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

13-
import { ManagementV1VirtualClusterResourceUsageMap } from '../models/managementV1VirtualClusterResourceUsageMap';
1413

1514

16-
export class ManagementV1VirtualClusterResourceUsageStatus {
17-
'resourceUsage'?: ManagementV1VirtualClusterResourceUsageMap;
15+
export class ManagementV1LicenseTokenSpec {
16+
'payload'?: string;
17+
'url'?: string;
1818

1919
static readonly discriminator: string | undefined = undefined;
2020

2121
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2222
{
23-
"name": "resourceUsage",
24-
"baseName": "resourceUsage",
25-
"type": "ManagementV1VirtualClusterResourceUsageMap",
23+
"name": "payload",
24+
"baseName": "payload",
25+
"type": "string",
26+
"format": ""
27+
},
28+
{
29+
"name": "url",
30+
"baseName": "url",
31+
"type": "string",
2632
"format": ""
2733
} ];
2834

2935
static getAttributeTypeMap() {
30-
return ManagementV1VirtualClusterResourceUsageStatus.attributeTypeMap;
36+
return ManagementV1LicenseTokenSpec.attributeTypeMap;
3137
}
3238

3339
public constructor() {
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 { LicenseApiInstanceTokenAuth } from '../models/licenseApiInstanceTokenAuth';
14+
15+
16+
export class ManagementV1LicenseTokenStatus {
17+
'token'?: LicenseApiInstanceTokenAuth;
18+
19+
static readonly discriminator: string | undefined = undefined;
20+
21+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "token",
24+
"baseName": "token",
25+
"type": "LicenseApiInstanceTokenAuth",
26+
"format": ""
27+
} ];
28+
29+
static getAttributeTypeMap() {
30+
return ManagementV1LicenseTokenStatus.attributeTypeMap;
31+
}
32+
33+
public constructor() {
34+
}
35+
}
36+

gen/models/managementV1NodeClaimSpec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { V1Taint } from '../models/V1Taint';
1919
*/
2020
export class ManagementV1NodeClaimSpec {
2121
/**
22-
* ControlPlane indicates if the node claim is for a control plane node. This is intentionally not omitempty as we want to ensure that the control plane is always set for easier checking in for example terraform templates.
22+
* ControlPlane indicates if the node claim is for a control plane node.
2323
*/
2424
'controlPlane'?: boolean;
2525
/**
@@ -37,7 +37,7 @@ export class ManagementV1NodeClaimSpec {
3737
/**
3838
* ProviderRef is the name of the NodeProvider that this NodeClaim is based on.
3939
*/
40-
'providerRef': string;
40+
'providerRef'?: string;
4141
/**
4242
* Requirements are the requirements for the NodeClaim.
4343
*/

0 commit comments

Comments
 (0)