Skip to content

Commit 9a9e8c2

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

13 files changed

+59
-215
lines changed

gen/models/licenseApiGenericRequestOutput.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

gen/models/licenseApiInstanceTokenAuth.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

gen/models/licenseApiLicense.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ 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+
/**
2832
* 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\".
2933
*/
3034
'announcement'?: Array<LicenseApiAnnouncement>;
@@ -71,6 +75,12 @@ export class LicenseApiLicense {
7175
"type": "LicenseApiAnalytics",
7276
"format": ""
7377
},
78+
{
79+
"name": "annotations",
80+
"baseName": "annotations",
81+
"type": "{ [key: string]: string; }",
82+
"format": ""
83+
},
7484
{
7585
"name": "announcement",
7686
"baseName": "announcement",

gen/models/managementV1LicenseRequestSpec.ts

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

13-
import { LicenseApiGenericRequestInput } from '../models/licenseApiGenericRequestInput';
1413

1514

1615
export class ManagementV1LicenseRequestSpec {
17-
'input'?: LicenseApiGenericRequestInput;
16+
/**
17+
* Input is the input payload to send to the url.
18+
*/
19+
'input'?: string;
1820
/**
1921
* URL is the url for the request.
2022
*/
@@ -26,7 +28,7 @@ export class ManagementV1LicenseRequestSpec {
2628
{
2729
"name": "input",
2830
"baseName": "input",
29-
"type": "LicenseApiGenericRequestInput",
31+
"type": "string",
3032
"format": ""
3133
},
3234
{

gen/models/managementV1LicenseRequestStatus.ts

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

13-
import { LicenseApiGenericRequestOutput } from '../models/licenseApiGenericRequestOutput';
1413

1514

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

1921
static readonly discriminator: string | undefined = undefined;
2022

2123
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2224
{
2325
"name": "output",
2426
"baseName": "output",
25-
"type": "LicenseApiGenericRequestOutput",
27+
"type": "string",
2628
"format": ""
2729
} ];
2830

gen/models/managementV1LicenseTokenSpec.ts

Lines changed: 0 additions & 42 deletions
This file was deleted.

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

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

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

1716

1817
/**
19-
* License Token holds the license token information
18+
* VirtualClusterResourceUsage holds information about a virtual cluster\'s usage of node resources.
2019
*/
21-
export class ManagementV1LicenseToken {
20+
export class ManagementV1VirtualClusterResourceUsage {
2221
/**
2322
* 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
2423
*/
@@ -28,8 +27,7 @@ export class ManagementV1LicenseToken {
2827
*/
2928
'kind'?: string;
3029
'metadata'?: V1ObjectMeta;
31-
'spec'?: ManagementV1LicenseTokenSpec;
32-
'status'?: ManagementV1LicenseTokenStatus;
30+
'status'?: ManagementV1VirtualClusterResourceUsageStatus;
3331

3432
static readonly discriminator: string | undefined = undefined;
3533

@@ -52,21 +50,15 @@ export class ManagementV1LicenseToken {
5250
"type": "V1ObjectMeta",
5351
"format": ""
5452
},
55-
{
56-
"name": "spec",
57-
"baseName": "spec",
58-
"type": "ManagementV1LicenseTokenSpec",
59-
"format": ""
60-
},
6153
{
6254
"name": "status",
6355
"baseName": "status",
64-
"type": "ManagementV1LicenseTokenStatus",
56+
"type": "ManagementV1VirtualClusterResourceUsageStatus",
6557
"format": ""
6658
} ];
6759

6860
static getAttributeTypeMap() {
69-
return ManagementV1LicenseToken.attributeTypeMap;
61+
return ManagementV1VirtualClusterResourceUsage.attributeTypeMap;
7062
}
7163

7264
public constructor() {

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

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

1313

1414

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

2825
static readonly discriminator: string | undefined = undefined;
2926

3027
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
3128
{
32-
"name": "payload",
33-
"baseName": "payload",
34-
"type": "string",
35-
"format": ""
29+
"name": "capacity",
30+
"baseName": "capacity",
31+
"type": "{ [key: string]: number; }",
32+
"format": "int32"
3633
},
3734
{
38-
"name": "returnURL",
39-
"baseName": "returnURL",
40-
"type": "string",
41-
"format": ""
35+
"name": "nodes",
36+
"baseName": "nodes",
37+
"type": "number",
38+
"format": "int32"
4239
} ];
4340

4441
static getAttributeTypeMap() {
45-
return LicenseApiGenericRequestInput.attributeTypeMap;
42+
return ManagementV1VirtualClusterResourceUsageMap.attributeTypeMap;
4643
}
4744

4845
public constructor() {

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

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

13-
import { LicenseApiInstanceTokenAuth } from '../models/licenseApiInstanceTokenAuth';
13+
import { ManagementV1VirtualClusterResourceUsageMap } from '../models/managementV1VirtualClusterResourceUsageMap';
1414

1515

16-
export class ManagementV1LicenseTokenStatus {
17-
'token'?: LicenseApiInstanceTokenAuth;
16+
export class ManagementV1VirtualClusterResourceUsageStatus {
17+
'resourceUsage'?: ManagementV1VirtualClusterResourceUsageMap;
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": "token",
24-
"baseName": "token",
25-
"type": "LicenseApiInstanceTokenAuth",
23+
"name": "resourceUsage",
24+
"baseName": "resourceUsage",
25+
"type": "ManagementV1VirtualClusterResourceUsageMap",
2626
"format": ""
2727
} ];
2828

2929
static getAttributeTypeMap() {
30-
return ManagementV1LicenseTokenStatus.attributeTypeMap;
30+
return ManagementV1VirtualClusterResourceUsageStatus.attributeTypeMap;
3131
}
3232

3333
public constructor() {

gen/models/managementV1VolumeSnapshotRequestStatus.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { ManagementV1SnapshotRequestError } from '../models/managementV1Snapshot
1919
export class ManagementV1VolumeSnapshotRequestStatus {
2020
'error': ManagementV1SnapshotRequestError;
2121
'phase'?: string;
22-
'snapshotHandle'?: string;
2322

2423
static readonly discriminator: string | undefined = undefined;
2524

@@ -35,12 +34,6 @@ export class ManagementV1VolumeSnapshotRequestStatus {
3534
"baseName": "phase",
3635
"type": "string",
3736
"format": ""
38-
},
39-
{
40-
"name": "snapshotHandle",
41-
"baseName": "snapshotHandle",
42-
"type": "string",
43-
"format": ""
4437
} ];
4538

4639
static getAttributeTypeMap() {

0 commit comments

Comments
 (0)