Skip to content

Commit bef75f0

Browse files
yoshi-automationsofisl
authored andcommitted
feat(redis): update the API
#### redis:v1beta1 The following keys were added: - schemas.Cluster.properties.zoneDistributionConfig.$ref - schemas.Cluster.properties.zoneDistributionConfig.description - schemas.TypedValue.properties.boolValue.description - schemas.TypedValue.properties.doubleValue.description - schemas.TypedValue.properties.int64Value.description - schemas.TypedValue.properties.stringValue.description - schemas.ZoneDistributionConfig.description - schemas.ZoneDistributionConfig.id - schemas.ZoneDistributionConfig.properties.mode.description - schemas.ZoneDistributionConfig.properties.mode.enum - schemas.ZoneDistributionConfig.properties.mode.enumDescriptions - schemas.ZoneDistributionConfig.properties.mode.type - schemas.ZoneDistributionConfig.properties.zone.description - schemas.ZoneDistributionConfig.properties.zone.type - schemas.ZoneDistributionConfig.type The following keys were changed: - schemas.ObservabilityMetricData.properties.aggregationType.enum - schemas.ObservabilityMetricData.properties.aggregationType.enumDescriptions - schemas.ObservabilityMetricData.properties.metricType.enum - schemas.ObservabilityMetricData.properties.metricType.enumDescriptions #### redis:v1 The following keys were added: - schemas.Cluster.properties.zoneDistributionConfig.$ref - schemas.Cluster.properties.zoneDistributionConfig.description - schemas.TypedValue.properties.boolValue.description - schemas.TypedValue.properties.doubleValue.description - schemas.TypedValue.properties.int64Value.description - schemas.TypedValue.properties.stringValue.description - schemas.ZoneDistributionConfig.description - schemas.ZoneDistributionConfig.id - schemas.ZoneDistributionConfig.properties.mode.description - schemas.ZoneDistributionConfig.properties.mode.enum - schemas.ZoneDistributionConfig.properties.mode.enumDescriptions - schemas.ZoneDistributionConfig.properties.mode.type - schemas.ZoneDistributionConfig.properties.zone.description - schemas.ZoneDistributionConfig.properties.zone.type - schemas.ZoneDistributionConfig.type The following keys were changed: - schemas.ObservabilityMetricData.properties.aggregationType.enum - schemas.ObservabilityMetricData.properties.aggregationType.enumDescriptions - schemas.ObservabilityMetricData.properties.metricType.enum - schemas.ObservabilityMetricData.properties.metricType.enumDescriptions
1 parent 96053d3 commit bef75f0

File tree

4 files changed

+156
-12
lines changed

4 files changed

+156
-12
lines changed

discovery/redis-v1.json

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@
821821
}
822822
}
823823
},
824-
"revision": "20240524",
824+
"revision": "20240531",
825825
"rootUrl": "https://redis.googleapis.com/",
826826
"schemas": {
827827
"AOFConfig": {
@@ -1111,6 +1111,10 @@
11111111
"description": "Output only. System assigned, unique identifier for the cluster.",
11121112
"readOnly": true,
11131113
"type": "string"
1114+
},
1115+
"zoneDistributionConfig": {
1116+
"$ref": "ZoneDistributionConfig",
1117+
"description": "Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region."
11141118
}
11151119
},
11161120
"type": "object"
@@ -2801,11 +2805,17 @@
28012805
"description": "Required. Type of aggregation performed on the metric.",
28022806
"enum": [
28032807
"AGGREGATION_TYPE_UNSPECIFIED",
2804-
"MAXIMUM"
2808+
"PEAK",
2809+
"P99",
2810+
"P95",
2811+
"CURRENT"
28052812
],
28062813
"enumDescriptions": [
28072814
"Unspecified aggregation type.",
2808-
"Maximum aggregation type."
2815+
"PEAK aggregation type.",
2816+
"P99 aggregation type.",
2817+
"P95 aggregation type.",
2818+
"current aggregation type."
28092819
],
28102820
"type": "string"
28112821
},
@@ -2815,13 +2825,17 @@
28152825
"METRIC_TYPE_UNSPECIFIED",
28162826
"CPU_UTILIZATION",
28172827
"MEMORY_UTILIZATION",
2818-
"NETWORK_CONNECTIONS"
2828+
"NETWORK_CONNECTIONS",
2829+
"STORAGE_UTILIZATION",
2830+
"STORAGE_USED_BYTES"
28192831
],
28202832
"enumDescriptions": [
2821-
"",
2833+
"Unspecified metric type.",
28222834
"CPU utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
28232835
"Memory utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
2824-
"Number of network connections for a resource."
2836+
"Number of network connections for a resource.",
2837+
"Storage utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
2838+
"Sotrage used by a resource."
28252839
],
28262840
"type": "string"
28272841
},
@@ -3384,17 +3398,21 @@
33843398
"id": "TypedValue",
33853399
"properties": {
33863400
"boolValue": {
3401+
"description": "For boolean value",
33873402
"type": "boolean"
33883403
},
33893404
"doubleValue": {
3405+
"description": "For double value",
33903406
"format": "double",
33913407
"type": "number"
33923408
},
33933409
"int64Value": {
3410+
"description": "For integer value",
33943411
"format": "int64",
33953412
"type": "string"
33963413
},
33973414
"stringValue": {
3415+
"description": "For string value",
33983416
"type": "string"
33993417
}
34003418
},
@@ -3481,6 +3499,31 @@
34813499
}
34823500
},
34833501
"type": "object"
3502+
},
3503+
"ZoneDistributionConfig": {
3504+
"description": "Zone distribution config for allocation of cluster resources.",
3505+
"id": "ZoneDistributionConfig",
3506+
"properties": {
3507+
"mode": {
3508+
"description": "Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.",
3509+
"enum": [
3510+
"ZONE_DISTRIBUTION_MODE_UNSPECIFIED",
3511+
"MULTI_ZONE",
3512+
"SINGLE_ZONE"
3513+
],
3514+
"enumDescriptions": [
3515+
"Not Set. Default: MULTI_ZONE",
3516+
"Distribute all resources across 3 zones picked at random, within the region.",
3517+
"Distribute all resources in a single zone. The zone field must be specified, when this mode is selected."
3518+
],
3519+
"type": "string"
3520+
},
3521+
"zone": {
3522+
"description": "Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.",
3523+
"type": "string"
3524+
}
3525+
},
3526+
"type": "object"
34843527
}
34853528
},
34863529
"servicePath": "",

discovery/redis-v1beta1.json

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@
821821
}
822822
}
823823
},
824-
"revision": "20240524",
824+
"revision": "20240531",
825825
"rootUrl": "https://redis.googleapis.com/",
826826
"schemas": {
827827
"AOFConfig": {
@@ -1111,6 +1111,10 @@
11111111
"description": "Output only. System assigned, unique identifier for the cluster.",
11121112
"readOnly": true,
11131113
"type": "string"
1114+
},
1115+
"zoneDistributionConfig": {
1116+
"$ref": "ZoneDistributionConfig",
1117+
"description": "Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region."
11141118
}
11151119
},
11161120
"type": "object"
@@ -2808,11 +2812,17 @@
28082812
"description": "Required. Type of aggregation performed on the metric.",
28092813
"enum": [
28102814
"AGGREGATION_TYPE_UNSPECIFIED",
2811-
"MAXIMUM"
2815+
"PEAK",
2816+
"P99",
2817+
"P95",
2818+
"CURRENT"
28122819
],
28132820
"enumDescriptions": [
28142821
"Unspecified aggregation type.",
2815-
"Maximum aggregation type."
2822+
"PEAK aggregation type.",
2823+
"P99 aggregation type.",
2824+
"P95 aggregation type.",
2825+
"current aggregation type."
28162826
],
28172827
"type": "string"
28182828
},
@@ -2822,13 +2832,17 @@
28222832
"METRIC_TYPE_UNSPECIFIED",
28232833
"CPU_UTILIZATION",
28242834
"MEMORY_UTILIZATION",
2825-
"NETWORK_CONNECTIONS"
2835+
"NETWORK_CONNECTIONS",
2836+
"STORAGE_UTILIZATION",
2837+
"STORAGE_USED_BYTES"
28262838
],
28272839
"enumDescriptions": [
2828-
"",
2840+
"Unspecified metric type.",
28292841
"CPU utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
28302842
"Memory utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
2831-
"Number of network connections for a resource."
2843+
"Number of network connections for a resource.",
2844+
"Storage utilization for a resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).",
2845+
"Sotrage used by a resource."
28322846
],
28332847
"type": "string"
28342848
},
@@ -3391,17 +3405,21 @@
33913405
"id": "TypedValue",
33923406
"properties": {
33933407
"boolValue": {
3408+
"description": "For boolean value",
33943409
"type": "boolean"
33953410
},
33963411
"doubleValue": {
3412+
"description": "For double value",
33973413
"format": "double",
33983414
"type": "number"
33993415
},
34003416
"int64Value": {
3417+
"description": "For integer value",
34013418
"format": "int64",
34023419
"type": "string"
34033420
},
34043421
"stringValue": {
3422+
"description": "For string value",
34053423
"type": "string"
34063424
}
34073425
},
@@ -3488,6 +3506,31 @@
34883506
}
34893507
},
34903508
"type": "object"
3509+
},
3510+
"ZoneDistributionConfig": {
3511+
"description": "Zone distribution config for allocation of cluster resources.",
3512+
"id": "ZoneDistributionConfig",
3513+
"properties": {
3514+
"mode": {
3515+
"description": "Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.",
3516+
"enum": [
3517+
"ZONE_DISTRIBUTION_MODE_UNSPECIFIED",
3518+
"MULTI_ZONE",
3519+
"SINGLE_ZONE"
3520+
],
3521+
"enumDescriptions": [
3522+
"Not Set. Default: MULTI_ZONE",
3523+
"Distribute all resources across 3 zones picked at random, within the region.",
3524+
"Distribute all resources in a single zone. The zone field must be specified, when this mode is selected."
3525+
],
3526+
"type": "string"
3527+
},
3528+
"zone": {
3529+
"description": "Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.",
3530+
"type": "string"
3531+
}
3532+
},
3533+
"type": "object"
34913534
}
34923535
},
34933536
"servicePath": "",

src/apis/redis/v1.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ export namespace redis_v1 {
278278
* Output only. System assigned, unique identifier for the cluster.
279279
*/
280280
uid?: string | null;
281+
/**
282+
* Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
283+
*/
284+
zoneDistributionConfig?: Schema$ZoneDistributionConfig;
281285
}
282286
/**
283287
* Configuration of the persistence functionality.
@@ -1299,9 +1303,21 @@ export namespace redis_v1 {
12991303
* TypedValue represents the value of a metric type. It can either be a double, an int64, a string or a bool.
13001304
*/
13011305
export interface Schema$TypedValue {
1306+
/**
1307+
* For boolean value
1308+
*/
13021309
boolValue?: boolean | null;
1310+
/**
1311+
* For double value
1312+
*/
13031313
doubleValue?: number | null;
1314+
/**
1315+
* For integer value
1316+
*/
13041317
int64Value?: string | null;
1318+
/**
1319+
* For string value
1320+
*/
13051321
stringValue?: string | null;
13061322
}
13071323
/**
@@ -1349,6 +1365,19 @@ export namespace redis_v1 {
13491365
*/
13501366
startTime?: Schema$TimeOfDay;
13511367
}
1368+
/**
1369+
* Zone distribution config for allocation of cluster resources.
1370+
*/
1371+
export interface Schema$ZoneDistributionConfig {
1372+
/**
1373+
* Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
1374+
*/
1375+
mode?: string | null;
1376+
/**
1377+
* Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
1378+
*/
1379+
zone?: string | null;
1380+
}
13521381

13531382
export class Resource$Projects {
13541383
context: APIRequestContext;

src/apis/redis/v1beta1.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ export namespace redis_v1beta1 {
278278
* Output only. System assigned, unique identifier for the cluster.
279279
*/
280280
uid?: string | null;
281+
/**
282+
* Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
283+
*/
284+
zoneDistributionConfig?: Schema$ZoneDistributionConfig;
281285
}
282286
/**
283287
* Configuration of the persistence functionality.
@@ -1299,9 +1303,21 @@ export namespace redis_v1beta1 {
12991303
* TypedValue represents the value of a metric type. It can either be a double, an int64, a string or a bool.
13001304
*/
13011305
export interface Schema$TypedValue {
1306+
/**
1307+
* For boolean value
1308+
*/
13021309
boolValue?: boolean | null;
1310+
/**
1311+
* For double value
1312+
*/
13031313
doubleValue?: number | null;
1314+
/**
1315+
* For integer value
1316+
*/
13041317
int64Value?: string | null;
1318+
/**
1319+
* For string value
1320+
*/
13051321
stringValue?: string | null;
13061322
}
13071323
/**
@@ -1349,6 +1365,19 @@ export namespace redis_v1beta1 {
13491365
*/
13501366
startTime?: Schema$TimeOfDay;
13511367
}
1368+
/**
1369+
* Zone distribution config for allocation of cluster resources.
1370+
*/
1371+
export interface Schema$ZoneDistributionConfig {
1372+
/**
1373+
* Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
1374+
*/
1375+
mode?: string | null;
1376+
/**
1377+
* Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
1378+
*/
1379+
zone?: string | null;
1380+
}
13521381

13531382
export class Resource$Projects {
13541383
context: APIRequestContext;

0 commit comments

Comments
 (0)