Skip to content

Commit fd84a02

Browse files
committed
[skip ci] repo-sync
1 parent 7c51e96 commit fd84a02

File tree

7 files changed

+216
-133
lines changed

7 files changed

+216
-133
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 { StorageV1Metrics } from '../models/storageV1Metrics';
14+
import { StorageV1OpenCost } from '../models/storageV1OpenCost';
15+
16+
17+
export class ManagementV1AgentCostControlConfig {
18+
/**
19+
* Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure that provides dashboard data is deployed
20+
*/
21+
'enabled'?: boolean;
22+
'metrics'?: StorageV1Metrics;
23+
'opencost'?: StorageV1OpenCost;
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": "enabled",
30+
"baseName": "enabled",
31+
"type": "boolean",
32+
"format": ""
33+
},
34+
{
35+
"name": "metrics",
36+
"baseName": "metrics",
37+
"type": "StorageV1Metrics",
38+
"format": ""
39+
},
40+
{
41+
"name": "opencost",
42+
"baseName": "opencost",
43+
"type": "StorageV1OpenCost",
44+
"format": ""
45+
} ];
46+
47+
static getAttributeTypeMap() {
48+
return ManagementV1AgentCostControlConfig.attributeTypeMap;
49+
}
50+
51+
public constructor() {
52+
}
53+
}
54+

gen/models/managementV1ClusterAgentConfig.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import { ManagementV1AgentAnalyticsSpec } from '../models/managementV1AgentAnalyticsSpec';
1414
import { ManagementV1AgentAuditConfig } from '../models/managementV1AgentAuditConfig';
15+
import { ManagementV1AgentCostControlConfig } from '../models/managementV1AgentCostControlConfig';
1516
import { V1ObjectMeta } from '../models/V1ObjectMeta';
1617

1718

@@ -29,6 +30,7 @@ export class ManagementV1ClusterAgentConfig {
2930
* Cluster is the cluster the agent is running in.
3031
*/
3132
'cluster'?: string;
33+
'costControl'?: ManagementV1AgentCostControlConfig;
3234
/**
3335
* DefaultImageRegistry defines if we should prefix the virtual cluster image
3436
*/
@@ -82,6 +84,12 @@ export class ManagementV1ClusterAgentConfig {
8284
"type": "string",
8385
"format": ""
8486
},
87+
{
88+
"name": "costControl",
89+
"baseName": "costControl",
90+
"type": "ManagementV1AgentCostControlConfig",
91+
"format": ""
92+
},
8593
{
8694
"name": "defaultImageRegistry",
8795
"baseName": "defaultImageRegistry",

gen/models/storageV1Member.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class StorageV1Member {
1616
/**
1717
* ClusterRole is the assigned role for the above member
1818
*/
19-
'clusterRole'?: string;
19+
'clusterRole': string;
2020
/**
2121
* Group of the member. Currently only supports storage.loft.sh
2222
*/

lib/index.d.ts

Lines changed: 151 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -3310,6 +3310,155 @@ declare class ManagementV1AgentAuditConfig {
33103310
}[];
33113311
constructor();
33123312
}
3313+
declare class StorageV1Storage {
3314+
/**
3315+
* Size the size of the metrics backend\'s persistent volume
3316+
*/
3317+
"size"?: string;
3318+
/**
3319+
* StorageClass the storage class to use when provisioning the metrics backend\'s persistent volume If set to \"-\" or \"\" dynamic provisioning is disabled If set to undefined or null (the default), the cluster\'s default storage class is used for provisioning
3320+
*/
3321+
"storageClass"?: string;
3322+
static readonly discriminator: string | undefined;
3323+
static readonly attributeTypeMap: Array<{
3324+
name: string;
3325+
baseName: string;
3326+
type: string;
3327+
format: string;
3328+
}>;
3329+
static getAttributeTypeMap(): {
3330+
name: string;
3331+
baseName: string;
3332+
type: string;
3333+
format: string;
3334+
}[];
3335+
constructor();
3336+
}
3337+
declare class V1ResourceClaim {
3338+
/**
3339+
* Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
3340+
*/
3341+
"name": string;
3342+
/**
3343+
* Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.
3344+
*/
3345+
"request"?: string;
3346+
static readonly discriminator: string | undefined;
3347+
static readonly attributeTypeMap: Array<{
3348+
name: string;
3349+
baseName: string;
3350+
type: string;
3351+
format: string;
3352+
}>;
3353+
static getAttributeTypeMap(): {
3354+
name: string;
3355+
baseName: string;
3356+
type: string;
3357+
format: string;
3358+
}[];
3359+
constructor();
3360+
}
3361+
declare class V1ResourceRequirements {
3362+
/**
3363+
* Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
3364+
*/
3365+
"claims"?: Array<V1ResourceClaim>;
3366+
/**
3367+
* Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
3368+
*/
3369+
"limits"?: {
3370+
[key: string]: string;
3371+
};
3372+
/**
3373+
* Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
3374+
*/
3375+
"requests"?: {
3376+
[key: string]: string;
3377+
};
3378+
static readonly discriminator: string | undefined;
3379+
static readonly attributeTypeMap: Array<{
3380+
name: string;
3381+
baseName: string;
3382+
type: string;
3383+
format: string;
3384+
}>;
3385+
static getAttributeTypeMap(): {
3386+
name: string;
3387+
baseName: string;
3388+
type: string;
3389+
format: string;
3390+
}[];
3391+
constructor();
3392+
}
3393+
declare class StorageV1Metrics {
3394+
/**
3395+
* Replicas is the number of desired replicas.
3396+
*/
3397+
"replicas"?: number;
3398+
"resources"?: V1ResourceRequirements;
3399+
/**
3400+
* Retention is the metrics data retention period. Default is 1y
3401+
*/
3402+
"retention"?: string;
3403+
"storage"?: StorageV1Storage;
3404+
static readonly discriminator: string | undefined;
3405+
static readonly attributeTypeMap: Array<{
3406+
name: string;
3407+
baseName: string;
3408+
type: string;
3409+
format: string;
3410+
}>;
3411+
static getAttributeTypeMap(): {
3412+
name: string;
3413+
baseName: string;
3414+
type: string;
3415+
format: string;
3416+
}[];
3417+
constructor();
3418+
}
3419+
declare class StorageV1OpenCost {
3420+
/**
3421+
* Replicas is the number of desired replicas.
3422+
*/
3423+
"replicas"?: number;
3424+
"resources"?: V1ResourceRequirements;
3425+
static readonly discriminator: string | undefined;
3426+
static readonly attributeTypeMap: Array<{
3427+
name: string;
3428+
baseName: string;
3429+
type: string;
3430+
format: string;
3431+
}>;
3432+
static getAttributeTypeMap(): {
3433+
name: string;
3434+
baseName: string;
3435+
type: string;
3436+
format: string;
3437+
}[];
3438+
constructor();
3439+
}
3440+
declare class ManagementV1AgentCostControlConfig {
3441+
/**
3442+
* Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure that provides dashboard data is deployed
3443+
*/
3444+
"enabled"?: boolean;
3445+
"metrics"?: StorageV1Metrics;
3446+
"opencost"?: StorageV1OpenCost;
3447+
static readonly discriminator: string | undefined;
3448+
static readonly attributeTypeMap: Array<{
3449+
name: string;
3450+
baseName: string;
3451+
type: string;
3452+
format: string;
3453+
}>;
3454+
static getAttributeTypeMap(): {
3455+
name: string;
3456+
baseName: string;
3457+
type: string;
3458+
format: string;
3459+
}[];
3460+
constructor();
3461+
}
33133462
declare class ManagementV1ClusterAgentConfig {
33143463
"analyticsSpec": ManagementV1AgentAnalyticsSpec;
33153464
/**
@@ -3321,6 +3470,7 @@ declare class ManagementV1ClusterAgentConfig {
33213470
* Cluster is the cluster the agent is running in.
33223471
*/
33233472
"cluster"?: string;
3473+
"costControl"?: ManagementV1AgentCostControlConfig;
33243474
/**
33253475
* DefaultImageRegistry defines if we should prefix the virtual cluster image
33263476
*/
@@ -4322,133 +4472,6 @@ declare class ManagementV1ClusterVirtualClusterDefaults {
43224472
}[];
43234473
constructor();
43244474
}
4325-
declare class StorageV1Storage {
4326-
/**
4327-
* Size the size of the metrics backend\'s persistent volume
4328-
*/
4329-
"size"?: string;
4330-
/**
4331-
* StorageClass the storage class to use when provisioning the metrics backend\'s persistent volume If set to \"-\" or \"\" dynamic provisioning is disabled If set to undefined or null (the default), the cluster\'s default storage class is used for provisioning
4332-
*/
4333-
"storageClass"?: string;
4334-
static readonly discriminator: string | undefined;
4335-
static readonly attributeTypeMap: Array<{
4336-
name: string;
4337-
baseName: string;
4338-
type: string;
4339-
format: string;
4340-
}>;
4341-
static getAttributeTypeMap(): {
4342-
name: string;
4343-
baseName: string;
4344-
type: string;
4345-
format: string;
4346-
}[];
4347-
constructor();
4348-
}
4349-
declare class V1ResourceClaim {
4350-
/**
4351-
* Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
4352-
*/
4353-
"name": string;
4354-
/**
4355-
* Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.
4356-
*/
4357-
"request"?: string;
4358-
static readonly discriminator: string | undefined;
4359-
static readonly attributeTypeMap: Array<{
4360-
name: string;
4361-
baseName: string;
4362-
type: string;
4363-
format: string;
4364-
}>;
4365-
static getAttributeTypeMap(): {
4366-
name: string;
4367-
baseName: string;
4368-
type: string;
4369-
format: string;
4370-
}[];
4371-
constructor();
4372-
}
4373-
declare class V1ResourceRequirements {
4374-
/**
4375-
* Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
4376-
*/
4377-
"claims"?: Array<V1ResourceClaim>;
4378-
/**
4379-
* Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
4380-
*/
4381-
"limits"?: {
4382-
[key: string]: string;
4383-
};
4384-
/**
4385-
* Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
4386-
*/
4387-
"requests"?: {
4388-
[key: string]: string;
4389-
};
4390-
static readonly discriminator: string | undefined;
4391-
static readonly attributeTypeMap: Array<{
4392-
name: string;
4393-
baseName: string;
4394-
type: string;
4395-
format: string;
4396-
}>;
4397-
static getAttributeTypeMap(): {
4398-
name: string;
4399-
baseName: string;
4400-
type: string;
4401-
format: string;
4402-
}[];
4403-
constructor();
4404-
}
4405-
declare class StorageV1Metrics {
4406-
/**
4407-
* Replicas is the number of desired replicas.
4408-
*/
4409-
"replicas"?: number;
4410-
"resources"?: V1ResourceRequirements;
4411-
/**
4412-
* Retention is the metrics data retention period. Default is 1y
4413-
*/
4414-
"retention"?: string;
4415-
"storage"?: StorageV1Storage;
4416-
static readonly discriminator: string | undefined;
4417-
static readonly attributeTypeMap: Array<{
4418-
name: string;
4419-
baseName: string;
4420-
type: string;
4421-
format: string;
4422-
}>;
4423-
static getAttributeTypeMap(): {
4424-
name: string;
4425-
baseName: string;
4426-
type: string;
4427-
format: string;
4428-
}[];
4429-
constructor();
4430-
}
4431-
declare class StorageV1OpenCost {
4432-
/**
4433-
* Replicas is the number of desired replicas.
4434-
*/
4435-
"replicas"?: number;
4436-
"resources"?: V1ResourceRequirements;
4437-
static readonly discriminator: string | undefined;
4438-
static readonly attributeTypeMap: Array<{
4439-
name: string;
4440-
baseName: string;
4441-
type: string;
4442-
format: string;
4443-
}>;
4444-
static getAttributeTypeMap(): {
4445-
name: string;
4446-
baseName: string;
4447-
type: string;
4448-
format: string;
4449-
}[];
4450-
constructor();
4451-
}
44524475
declare class StorageV1SecretRef {
44534476
"key"?: string;
44544477
"secretName"?: string;
@@ -13465,7 +13488,7 @@ declare class StorageV1Member {
1346513488
/**
1346613489
* ClusterRole is the assigned role for the above member
1346713490
*/
13468-
"clusterRole"?: string;
13491+
"clusterRole": string;
1346913492
/**
1347013493
* Group of the member. Currently only supports storage.loft.sh
1347113494
*/

0 commit comments

Comments
 (0)