Skip to content

Commit e3a7451

Browse files
yoshi-automationsofisl
authored andcommitted
feat(vmwareengine): update the API
#### vmwareengine:v1 The following keys were added: - schemas.AutoscalingPolicy.description - schemas.AutoscalingPolicy.id - schemas.AutoscalingPolicy.properties.consumedMemoryThresholds.$ref - schemas.AutoscalingPolicy.properties.consumedMemoryThresholds.description - schemas.AutoscalingPolicy.properties.cpuThresholds.$ref - schemas.AutoscalingPolicy.properties.cpuThresholds.description - schemas.AutoscalingPolicy.properties.grantedMemoryThresholds.$ref - schemas.AutoscalingPolicy.properties.grantedMemoryThresholds.description - schemas.AutoscalingPolicy.properties.nodeTypeId.description - schemas.AutoscalingPolicy.properties.nodeTypeId.type - schemas.AutoscalingPolicy.properties.scaleOutSize.description - schemas.AutoscalingPolicy.properties.scaleOutSize.format - schemas.AutoscalingPolicy.properties.scaleOutSize.type - schemas.AutoscalingPolicy.properties.storageThresholds.$ref - schemas.AutoscalingPolicy.properties.storageThresholds.description - schemas.AutoscalingPolicy.type - schemas.AutoscalingSettings.description - schemas.AutoscalingSettings.id - schemas.AutoscalingSettings.properties.autoscalingPolicies.additionalProperties.$ref - schemas.AutoscalingSettings.properties.autoscalingPolicies.description - schemas.AutoscalingSettings.properties.autoscalingPolicies.type - schemas.AutoscalingSettings.properties.coolDownPeriod.description - schemas.AutoscalingSettings.properties.coolDownPeriod.format - schemas.AutoscalingSettings.properties.coolDownPeriod.type - schemas.AutoscalingSettings.properties.maxClusterNodeCount.description - schemas.AutoscalingSettings.properties.maxClusterNodeCount.format - schemas.AutoscalingSettings.properties.maxClusterNodeCount.type - schemas.AutoscalingSettings.properties.minClusterNodeCount.description - schemas.AutoscalingSettings.properties.minClusterNodeCount.format - schemas.AutoscalingSettings.properties.minClusterNodeCount.type - schemas.AutoscalingSettings.type - schemas.Cluster.properties.autoscalingSettings.$ref - schemas.Cluster.properties.autoscalingSettings.description - schemas.Thresholds.description - schemas.Thresholds.id - schemas.Thresholds.properties.scaleIn.description - schemas.Thresholds.properties.scaleIn.format - schemas.Thresholds.properties.scaleIn.type - schemas.Thresholds.properties.scaleOut.description - schemas.Thresholds.properties.scaleOut.format - schemas.Thresholds.properties.scaleOut.type - schemas.Thresholds.type
1 parent 5eabdc7 commit e3a7451

File tree

2 files changed

+150
-1
lines changed

2 files changed

+150
-1
lines changed

discovery/vmwareengine-v1.json

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3173,7 +3173,7 @@
31733173
}
31743174
}
31753175
},
3176-
"revision": "20240528",
3176+
"revision": "20240701",
31773177
"rootUrl": "https://vmwareengine.googleapis.com/",
31783178
"schemas": {
31793179
"AuditConfig": {
@@ -3224,6 +3224,67 @@
32243224
},
32253225
"type": "object"
32263226
},
3227+
"AutoscalingPolicy": {
3228+
"description": "Autoscaling policy describes the behavior of the autoscaling with respect to the resource utilization. The scale-out operation is initiated if the utilization exceeds ANY of the respective thresholds. The scale-in operation is initiated if the utilization is below ALL of the respective thresholds.",
3229+
"id": "AutoscalingPolicy",
3230+
"properties": {
3231+
"consumedMemoryThresholds": {
3232+
"$ref": "Thresholds",
3233+
"description": "Optional. Utilization thresholds pertaining to amount of consumed memory."
3234+
},
3235+
"cpuThresholds": {
3236+
"$ref": "Thresholds",
3237+
"description": "Optional. Utilization thresholds pertaining to CPU utilization."
3238+
},
3239+
"grantedMemoryThresholds": {
3240+
"$ref": "Thresholds",
3241+
"description": "Optional. Utilization thresholds pertaining to amount of granted memory."
3242+
},
3243+
"nodeTypeId": {
3244+
"description": "Required. The canonical identifier of the node type to add or remove. Corresponds to the `NodeType`.",
3245+
"type": "string"
3246+
},
3247+
"scaleOutSize": {
3248+
"description": "Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration.",
3249+
"format": "int32",
3250+
"type": "integer"
3251+
},
3252+
"storageThresholds": {
3253+
"$ref": "Thresholds",
3254+
"description": "Optional. Utilization thresholds pertaining to amount of consumed storage."
3255+
}
3256+
},
3257+
"type": "object"
3258+
},
3259+
"AutoscalingSettings": {
3260+
"description": "Autoscaling settings define the rules used by VMware Engine to automatically scale-out and scale-in the clusters in a private cloud.",
3261+
"id": "AutoscalingSettings",
3262+
"properties": {
3263+
"autoscalingPolicies": {
3264+
"additionalProperties": {
3265+
"$ref": "AutoscalingPolicy"
3266+
},
3267+
"description": "Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements: * Only contains 1-63 alphanumeric characters and hyphens * Begins with an alphabetical character * Ends with a non-hyphen character * Not formatted as a UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) Currently there map must contain only one element that describes the autoscaling policy for compute nodes.",
3268+
"type": "object"
3269+
},
3270+
"coolDownPeriod": {
3271+
"description": "Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).",
3272+
"format": "google-duration",
3273+
"type": "string"
3274+
},
3275+
"maxClusterNodeCount": {
3276+
"description": "Optional. Maximum number of nodes of any type in a cluster. If not specified the default limits apply.",
3277+
"format": "int32",
3278+
"type": "integer"
3279+
},
3280+
"minClusterNodeCount": {
3281+
"description": "Optional. Minimum number of nodes of any type in a cluster. If not specified the default limits apply.",
3282+
"format": "int32",
3283+
"type": "integer"
3284+
}
3285+
},
3286+
"type": "object"
3287+
},
32273288
"Binding": {
32283289
"description": "Associates `members`, or principals, with a `role`.",
32293290
"id": "Binding",
@@ -3250,6 +3311,10 @@
32503311
"description": "A cluster in a private cloud.",
32513312
"id": "Cluster",
32523313
"properties": {
3314+
"autoscalingSettings": {
3315+
"$ref": "AutoscalingSettings",
3316+
"description": "Optional. Configuration of the autoscaling applied to this cluster."
3317+
},
32533318
"createTime": {
32543319
"description": "Output only. Creation time of this resource.",
32553320
"format": "google-datetime",
@@ -5382,6 +5447,23 @@
53825447
},
53835448
"type": "object"
53845449
},
5450+
"Thresholds": {
5451+
"description": "Thresholds define the utilization of resources triggering scale-out and scale-in operations.",
5452+
"id": "Thresholds",
5453+
"properties": {
5454+
"scaleIn": {
5455+
"description": "Required. The utilization triggering the scale-in operation in percent.",
5456+
"format": "int32",
5457+
"type": "integer"
5458+
},
5459+
"scaleOut": {
5460+
"description": "Required. The utilization triggering the scale-out operation in percent.",
5461+
"format": "int32",
5462+
"type": "integer"
5463+
}
5464+
},
5465+
"type": "object"
5466+
},
53855467
"UndeletePrivateCloudRequest": {
53865468
"description": "Request message for VmwareEngine.UndeletePrivateCloud",
53875469
"id": "UndeletePrivateCloudRequest",

src/apis/vmwareengine/v1.ts

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,56 @@ export namespace vmwareengine_v1 {
150150
*/
151151
logType?: string | null;
152152
}
153+
/**
154+
* Autoscaling policy describes the behavior of the autoscaling with respect to the resource utilization. The scale-out operation is initiated if the utilization exceeds ANY of the respective thresholds. The scale-in operation is initiated if the utilization is below ALL of the respective thresholds.
155+
*/
156+
export interface Schema$AutoscalingPolicy {
157+
/**
158+
* Optional. Utilization thresholds pertaining to amount of consumed memory.
159+
*/
160+
consumedMemoryThresholds?: Schema$Thresholds;
161+
/**
162+
* Optional. Utilization thresholds pertaining to CPU utilization.
163+
*/
164+
cpuThresholds?: Schema$Thresholds;
165+
/**
166+
* Optional. Utilization thresholds pertaining to amount of granted memory.
167+
*/
168+
grantedMemoryThresholds?: Schema$Thresholds;
169+
/**
170+
* Required. The canonical identifier of the node type to add or remove. Corresponds to the `NodeType`.
171+
*/
172+
nodeTypeId?: string | null;
173+
/**
174+
* Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration.
175+
*/
176+
scaleOutSize?: number | null;
177+
/**
178+
* Optional. Utilization thresholds pertaining to amount of consumed storage.
179+
*/
180+
storageThresholds?: Schema$Thresholds;
181+
}
182+
/**
183+
* Autoscaling settings define the rules used by VMware Engine to automatically scale-out and scale-in the clusters in a private cloud.
184+
*/
185+
export interface Schema$AutoscalingSettings {
186+
/**
187+
* Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements: * Only contains 1-63 alphanumeric characters and hyphens * Begins with an alphabetical character * Ends with a non-hyphen character * Not formatted as a UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) Currently there map must contain only one element that describes the autoscaling policy for compute nodes.
188+
*/
189+
autoscalingPolicies?: {[key: string]: Schema$AutoscalingPolicy} | null;
190+
/**
191+
* Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).
192+
*/
193+
coolDownPeriod?: string | null;
194+
/**
195+
* Optional. Maximum number of nodes of any type in a cluster. If not specified the default limits apply.
196+
*/
197+
maxClusterNodeCount?: number | null;
198+
/**
199+
* Optional. Minimum number of nodes of any type in a cluster. If not specified the default limits apply.
200+
*/
201+
minClusterNodeCount?: number | null;
202+
}
153203
/**
154204
* Associates `members`, or principals, with a `role`.
155205
*/
@@ -171,6 +221,10 @@ export namespace vmwareengine_v1 {
171221
* A cluster in a private cloud.
172222
*/
173223
export interface Schema$Cluster {
224+
/**
225+
* Optional. Configuration of the autoscaling applied to this cluster.
226+
*/
227+
autoscalingSettings?: Schema$AutoscalingSettings;
174228
/**
175229
* Output only. Creation time of this resource.
176230
*/
@@ -1524,6 +1578,19 @@ export namespace vmwareengine_v1 {
15241578
*/
15251579
permissions?: string[] | null;
15261580
}
1581+
/**
1582+
* Thresholds define the utilization of resources triggering scale-out and scale-in operations.
1583+
*/
1584+
export interface Schema$Thresholds {
1585+
/**
1586+
* Required. The utilization triggering the scale-in operation in percent.
1587+
*/
1588+
scaleIn?: number | null;
1589+
/**
1590+
* Required. The utilization triggering the scale-out operation in percent.
1591+
*/
1592+
scaleOut?: number | null;
1593+
}
15271594
/**
15281595
* Request message for VmwareEngine.UndeletePrivateCloud
15291596
*/

0 commit comments

Comments
 (0)