Skip to content

Commit fb4d4b5

Browse files
feat(redis): update the api
#### redis:v1 The following keys were added: - schemas.Cluster.properties.zoneDistributionConfig.$ref (Total Keys: 1) - schemas.ZoneDistributionConfig (Total Keys: 4) #### redis:v1beta1 The following keys were added: - schemas.Cluster.properties.zoneDistributionConfig.$ref (Total Keys: 1) - schemas.ZoneDistributionConfig (Total Keys: 4)
1 parent 3349e84 commit fb4d4b5

File tree

4 files changed

+130
-12
lines changed

4 files changed

+130
-12
lines changed

docs/dyn/redis_v1.projects.locations.clusters.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ <h3>Method Details</h3>
168168
},
169169
&quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
170170
&quot;uid&quot;: &quot;A String&quot;, # Output only. System assigned, unique identifier for the cluster.
171+
&quot;zoneDistributionConfig&quot;: { # Zone distribution config for allocation of cluster resources. # Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
172+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
173+
&quot;zone&quot;: &quot;A String&quot;, # 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.
174+
},
171175
}
172176

173177
clusterId: string, Required. The logical name of the Redis cluster in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location
@@ -306,6 +310,10 @@ <h3>Method Details</h3>
306310
},
307311
&quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
308312
&quot;uid&quot;: &quot;A String&quot;, # Output only. System assigned, unique identifier for the cluster.
313+
&quot;zoneDistributionConfig&quot;: { # Zone distribution config for allocation of cluster resources. # Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
314+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
315+
&quot;zone&quot;: &quot;A String&quot;, # 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.
316+
},
309317
}</pre>
310318
</div>
311319

@@ -410,6 +418,10 @@ <h3>Method Details</h3>
410418
},
411419
&quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
412420
&quot;uid&quot;: &quot;A String&quot;, # Output only. System assigned, unique identifier for the cluster.
421+
&quot;zoneDistributionConfig&quot;: { # Zone distribution config for allocation of cluster resources. # Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
422+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
423+
&quot;zone&quot;: &quot;A String&quot;, # 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.
424+
},
413425
},
414426
],
415427
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
@@ -497,6 +509,10 @@ <h3>Method Details</h3>
497509
},
498510
&quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
499511
&quot;uid&quot;: &quot;A String&quot;, # Output only. System assigned, unique identifier for the cluster.
512+
&quot;zoneDistributionConfig&quot;: { # Zone distribution config for allocation of cluster resources. # Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
513+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
514+
&quot;zone&quot;: &quot;A String&quot;, # 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.
515+
},
500516
}
501517

502518
requestId: string, Idempotent request UUID.

docs/dyn/redis_v1beta1.projects.locations.clusters.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ <h3>Method Details</h3>
168168
},
169169
&quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
170170
&quot;uid&quot;: &quot;A String&quot;, # Output only. System assigned, unique identifier for the cluster.
171+
&quot;zoneDistributionConfig&quot;: { # Zone distribution config for allocation of cluster resources. # Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
172+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
173+
&quot;zone&quot;: &quot;A String&quot;, # 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.
174+
},
171175
}
172176

173177
clusterId: string, Required. The logical name of the Redis cluster in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location
@@ -306,6 +310,10 @@ <h3>Method Details</h3>
306310
},
307311
&quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
308312
&quot;uid&quot;: &quot;A String&quot;, # Output only. System assigned, unique identifier for the cluster.
313+
&quot;zoneDistributionConfig&quot;: { # Zone distribution config for allocation of cluster resources. # Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
314+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
315+
&quot;zone&quot;: &quot;A String&quot;, # 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.
316+
},
309317
}</pre>
310318
</div>
311319

@@ -410,6 +418,10 @@ <h3>Method Details</h3>
410418
},
411419
&quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
412420
&quot;uid&quot;: &quot;A String&quot;, # Output only. System assigned, unique identifier for the cluster.
421+
&quot;zoneDistributionConfig&quot;: { # Zone distribution config for allocation of cluster resources. # Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
422+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
423+
&quot;zone&quot;: &quot;A String&quot;, # 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.
424+
},
413425
},
414426
],
415427
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
@@ -497,6 +509,10 @@ <h3>Method Details</h3>
497509
},
498510
&quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
499511
&quot;uid&quot;: &quot;A String&quot;, # Output only. System assigned, unique identifier for the cluster.
512+
&quot;zoneDistributionConfig&quot;: { # Zone distribution config for allocation of cluster resources. # Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region.
513+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.
514+
&quot;zone&quot;: &quot;A String&quot;, # 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.
515+
},
500516
}
501517

502518
requestId: string, Idempotent request UUID.

googleapiclient/discovery_cache/documents/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": "20240604",
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 @@ false
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 @@ false
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 @@ false
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 @@ false
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": "",

googleapiclient/discovery_cache/documents/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": "20240604",
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 @@ false
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 @@ false
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 @@ false
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 @@ false
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": "",

0 commit comments

Comments
 (0)